From e428843f80967b3b98285d97b7cefa0ef68a1fd8 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 27 Jun 2009 18:31:34 +0000 Subject: [PATCH] patch #2805828 [export] PHP array export plugin --- ChangeLog | 2 + lang/afrikaans-utf-8.inc.php | 1 + lang/albanian-utf-8.inc.php | 1 + lang/arabic-utf-8.inc.php | 1 + lang/azerbaijani-utf-8.inc.php | 1 + lang/bangla-utf-8.inc.php | 1 + lang/basque-utf-8.inc.php | 1 + lang/belarusian_cyrillic-utf-8.inc.php | 1 + lang/belarusian_latin-utf-8.inc.php | 1 + lang/bosnian-utf-8.inc.php | 1 + lang/brazilian_portuguese-utf-8.inc.php | 1 + lang/bulgarian-utf-8.inc.php | 1 + lang/catalan-utf-8.inc.php | 1 + lang/chinese_simplified-utf-8.inc.php | 1 + lang/chinese_traditional-utf-8.inc.php | 1 + lang/croatian-utf-8.inc.php | 1 + lang/czech-utf-8.inc.php | 1 + lang/danish-utf-8.inc.php | 1 + lang/dutch-utf-8.inc.php | 1 + lang/english-utf-8.inc.php | 3 +- lang/estonian-utf-8.inc.php | 1 + lang/finnish-utf-8.inc.php | 1 + lang/french-utf-8.inc.php | 1 + lang/galician-utf-8.inc.php | 1 + lang/georgian-utf-8.inc.php | 1 + lang/german-utf-8.inc.php | 1 + lang/greek-utf-8.inc.php | 1 + lang/hebrew-utf-8.inc.php | 1 + lang/hindi-utf-8.inc.php | 1 + lang/hungarian-utf-8.inc.php | 1 + lang/indonesian-utf-8.inc.php | 1 + lang/italian-utf-8.inc.php | 1 + lang/japanese-utf-8.inc.php | 1 + lang/korean-utf-8.inc.php | 1 + lang/latvian-utf-8.inc.php | 1 + lang/lithuanian-utf-8.inc.php | 1 + lang/macedonian_cyrillic-utf-8.inc.php | 1 + lang/malay-utf-8.inc.php | 1 + lang/mongolian-utf-8.inc.php | 1 + lang/norwegian-utf-8.inc.php | 1 + lang/persian-utf-8.inc.php | 1 + lang/polish-utf-8.inc.php | 1 + lang/portuguese-utf-8.inc.php | 1 + lang/romanian-utf-8.inc.php | 1 + lang/russian-utf-8.inc.php | 1 + lang/serbian_cyrillic-utf-8.inc.php | 1 + lang/serbian_latin-utf-8.inc.php | 1 + lang/sinhala-utf-8.inc.php | 1 + lang/slovak-utf-8.inc.php | 1 + lang/slovenian-utf-8.inc.php | 1 + lang/spanish-utf-8.inc.php | 1 + lang/swedish-utf-8.inc.php | 1 + lang/tatarish-utf-8.inc.php | 1 + lang/thai-utf-8.inc.php | 1 + lang/turkish-utf-8.inc.php | 1 + lang/ukrainian-utf-8.inc.php | 1 + libraries/export/php_array.php | 192 ++++++++++++++++++++++++ 57 files changed, 250 insertions(+), 1 deletion(-) create mode 100644 libraries/export/php_array.php diff --git a/ChangeLog b/ChangeLog index 8f52671c2..047caf69f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -14,6 +14,8 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA thanks to nullbarriere - nullbarriere - bug [display] handle NavigationBarIconic as documented for navi buttons + rfe #2726479 [export] Export tables preselect ++ patch #2805828 [export] PHP array export plugin, + thanks to Geoffray Warnants - amnsk 3.2.1.0 (not yet released) - bug #2799009 Login with ipv6 IP address breaks redirect diff --git a/lang/afrikaans-utf-8.inc.php b/lang/afrikaans-utf-8.inc.php index 66bdb84a0..814884c66 100644 --- a/lang/afrikaans-utf-8.inc.php +++ b/lang/afrikaans-utf-8.inc.php @@ -1486,4 +1486,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/albanian-utf-8.inc.php b/lang/albanian-utf-8.inc.php index 438bf2445..ee7afd778 100644 --- a/lang/albanian-utf-8.inc.php +++ b/lang/albanian-utf-8.inc.php @@ -1485,4 +1485,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/arabic-utf-8.inc.php b/lang/arabic-utf-8.inc.php index 4f6accf44..205e605fd 100644 --- a/lang/arabic-utf-8.inc.php +++ b/lang/arabic-utf-8.inc.php @@ -1487,4 +1487,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/azerbaijani-utf-8.inc.php b/lang/azerbaijani-utf-8.inc.php index 8ec45a514..436c5f8a6 100644 --- a/lang/azerbaijani-utf-8.inc.php +++ b/lang/azerbaijani-utf-8.inc.php @@ -1482,4 +1482,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/bangla-utf-8.inc.php b/lang/bangla-utf-8.inc.php index 5f1d6e846..6f299b56f 100644 --- a/lang/bangla-utf-8.inc.php +++ b/lang/bangla-utf-8.inc.php @@ -1461,4 +1461,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/basque-utf-8.inc.php b/lang/basque-utf-8.inc.php index 13775db9d..6f9f677f1 100644 --- a/lang/basque-utf-8.inc.php +++ b/lang/basque-utf-8.inc.php @@ -1479,4 +1479,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/belarusian_cyrillic-utf-8.inc.php b/lang/belarusian_cyrillic-utf-8.inc.php index 85aedae08..3e70d236b 100644 --- a/lang/belarusian_cyrillic-utf-8.inc.php +++ b/lang/belarusian_cyrillic-utf-8.inc.php @@ -1461,4 +1461,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/belarusian_latin-utf-8.inc.php b/lang/belarusian_latin-utf-8.inc.php index ec17ba28f..979f5e89f 100644 --- a/lang/belarusian_latin-utf-8.inc.php +++ b/lang/belarusian_latin-utf-8.inc.php @@ -1469,4 +1469,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/bosnian-utf-8.inc.php b/lang/bosnian-utf-8.inc.php index d8af6e229..bc6ed253b 100644 --- a/lang/bosnian-utf-8.inc.php +++ b/lang/bosnian-utf-8.inc.php @@ -1485,4 +1485,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/brazilian_portuguese-utf-8.inc.php b/lang/brazilian_portuguese-utf-8.inc.php index 92bbab34c..a0838805a 100644 --- a/lang/brazilian_portuguese-utf-8.inc.php +++ b/lang/brazilian_portuguese-utf-8.inc.php @@ -1459,4 +1459,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/bulgarian-utf-8.inc.php b/lang/bulgarian-utf-8.inc.php index fae9708d8..334075aac 100644 --- a/lang/bulgarian-utf-8.inc.php +++ b/lang/bulgarian-utf-8.inc.php @@ -1482,4 +1482,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/catalan-utf-8.inc.php b/lang/catalan-utf-8.inc.php index 213d27ead..f5fb7f1ad 100644 --- a/lang/catalan-utf-8.inc.php +++ b/lang/catalan-utf-8.inc.php @@ -1456,4 +1456,5 @@ $strZeroRemovesTheLimit = 'Nota: Es treu el limit establint aquestes opcions a 0 $strZip = '"comprimit amb zip"'; $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/chinese_simplified-utf-8.inc.php b/lang/chinese_simplified-utf-8.inc.php index 744b92591..b0323ef9f 100644 --- a/lang/chinese_simplified-utf-8.inc.php +++ b/lang/chinese_simplified-utf-8.inc.php @@ -1469,4 +1469,5 @@ $strZeroRemovesTheLimit = '注意:若将这些选项设为 0(零) 即不限制 $strZip = 'zip 压缩'; $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/chinese_traditional-utf-8.inc.php b/lang/chinese_traditional-utf-8.inc.php index 6f5faed69..3894a703c 100644 --- a/lang/chinese_traditional-utf-8.inc.php +++ b/lang/chinese_traditional-utf-8.inc.php @@ -1466,4 +1466,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/croatian-utf-8.inc.php b/lang/croatian-utf-8.inc.php index 214c537ad..881a719fd 100644 --- a/lang/croatian-utf-8.inc.php +++ b/lang/croatian-utf-8.inc.php @@ -1463,4 +1463,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/czech-utf-8.inc.php b/lang/czech-utf-8.inc.php index def2d3b47..247860212 100644 --- a/lang/czech-utf-8.inc.php +++ b/lang/czech-utf-8.inc.php @@ -1465,4 +1465,5 @@ $strSetupZipDump_desc = 'Enable [a@http://en.wikipedia.org/wiki/ZIP_(file_format $strSetupZipDumpExportWarning = '[a@?page=form&formset=features#tab_Import_export]Zip compression[/a] requires functions (%s) which are unavailable on this system.'; //to translate $strSetupZipDumpImportWarning = '[a@?page=form&formset=features#tab_Import_export]Zip decompression[/a] requires functions (%s) which are unavailable on this system.'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/danish-utf-8.inc.php b/lang/danish-utf-8.inc.php index a1967d073..0566bd6ef 100644 --- a/lang/danish-utf-8.inc.php +++ b/lang/danish-utf-8.inc.php @@ -1461,4 +1461,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/dutch-utf-8.inc.php b/lang/dutch-utf-8.inc.php index 138e3a2c7..895e44034 100644 --- a/lang/dutch-utf-8.inc.php +++ b/lang/dutch-utf-8.inc.php @@ -1466,4 +1466,5 @@ $strZeroRemovesTheLimit = 'Opmerking: Het instellen van deze waarden op 0 (nul) $strZip = '"Gezipt"'; $strNavTableFilter = 'Filter'; +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/english-utf-8.inc.php b/lang/english-utf-8.inc.php index f23c096be..5a7398be5 100644 --- a/lang/english-utf-8.inc.php +++ b/lang/english-utf-8.inc.php @@ -290,7 +290,6 @@ $strErrorRelationAdded = 'Error: Relation not added.'; $strErrorRelationExists = 'Error: relation already exists.'; $strErrorRenamingTable = 'Error renaming table %1$s to %2$s'; $strErrorSaveTable = 'Error saving coordinates for Designer.'; -$strRemoveCRLF = 'Remove CRLF characters within fields'; $strEscapeWildcards = 'Wildcards _ and % should be escaped with a \ to use them literally'; $strEsperanto = 'Esperanto'; $strEstonian = 'Estonian'; @@ -616,6 +615,7 @@ $strPerMinute = 'per minute'; $strPerSecond = 'per second'; $strPersian = 'Persian'; $strPhoneBook = 'phone book'; +$strPhpArray = 'PHP array'; $strPhp = 'Create PHP Code'; $strPHPExtension = 'PHP extension'; $strPHPVersion = 'PHP Version'; @@ -711,6 +711,7 @@ $strRelationView = 'Relation view'; $strReloadingThePrivileges = 'Reloading the privileges'; $strReloadPrivileges = 'Reload privileges'; $strReload = 'Reload'; +$strRemoveCRLF = 'Remove CRLF characters within fields'; $strRemovePartitioning = 'Remove partitioning'; $strRemoveSelectedUsers = 'Remove selected users'; $strRenameDatabaseOK = 'Database %s has been renamed to %s'; diff --git a/lang/estonian-utf-8.inc.php b/lang/estonian-utf-8.inc.php index ff4fd79c4..f53cd8780 100644 --- a/lang/estonian-utf-8.inc.php +++ b/lang/estonian-utf-8.inc.php @@ -1467,4 +1467,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/finnish-utf-8.inc.php b/lang/finnish-utf-8.inc.php index 063b4458a..27bbb30ec 100644 --- a/lang/finnish-utf-8.inc.php +++ b/lang/finnish-utf-8.inc.php @@ -1462,4 +1462,5 @@ $strZeroRemovesTheLimit = 'Huom: Näiden valintojen asettaminen nollaksi (0) poi $strZip = '"zip-pakattu"'; $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/french-utf-8.inc.php b/lang/french-utf-8.inc.php index 502df61da..266dff7a6 100644 --- a/lang/french-utf-8.inc.php +++ b/lang/french-utf-8.inc.php @@ -612,6 +612,7 @@ $strPerMinute = 'par minute'; $strPerSecond = 'par seconde'; $strPersian = 'perse'; $strPhoneBook = 'annuaire téléphonique'; +$strPhpArray = 'Tableau PHP'; $strPhp = 'Créer source PHP'; $strPHPExtension = 'Extension PHP'; $strPHPVersion = 'Version de PHP'; diff --git a/lang/galician-utf-8.inc.php b/lang/galician-utf-8.inc.php index 2f275a323..6e527d23f 100644 --- a/lang/galician-utf-8.inc.php +++ b/lang/galician-utf-8.inc.php @@ -1460,4 +1460,5 @@ $strReplicationStatusInfo = 'Este servidor de MySQL server funciona como %s en p $strReplicationStatus_master = 'Estado do mestre'; $strReplicationStatus_slave = 'Estado do escravo'; $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/georgian-utf-8.inc.php b/lang/georgian-utf-8.inc.php index 964b8cba3..9f291ea66 100644 --- a/lang/georgian-utf-8.inc.php +++ b/lang/georgian-utf-8.inc.php @@ -1466,4 +1466,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/german-utf-8.inc.php b/lang/german-utf-8.inc.php index d6d4bfefc..4ca8edc7b 100644 --- a/lang/german-utf-8.inc.php +++ b/lang/german-utf-8.inc.php @@ -1480,4 +1480,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/greek-utf-8.inc.php b/lang/greek-utf-8.inc.php index d0ec0a59a..6d97781a9 100644 --- a/lang/greek-utf-8.inc.php +++ b/lang/greek-utf-8.inc.php @@ -1484,4 +1484,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/hebrew-utf-8.inc.php b/lang/hebrew-utf-8.inc.php index 5cc83bec2..9593860e0 100644 --- a/lang/hebrew-utf-8.inc.php +++ b/lang/hebrew-utf-8.inc.php @@ -1479,4 +1479,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/hindi-utf-8.inc.php b/lang/hindi-utf-8.inc.php index f8496c3d5..2be6221bb 100644 --- a/lang/hindi-utf-8.inc.php +++ b/lang/hindi-utf-8.inc.php @@ -1487,4 +1487,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/hungarian-utf-8.inc.php b/lang/hungarian-utf-8.inc.php index 10f39a6cd..e14dfa445 100644 --- a/lang/hungarian-utf-8.inc.php +++ b/lang/hungarian-utf-8.inc.php @@ -1463,4 +1463,5 @@ $strYes = 'Igen'; $strZeroRemovesTheLimit = 'Megjegyzés: Ezen beállítások 0-ra (nulla) állítása eltávolítja a korlátozást.'; $strZip = '"zip tömörítés"'; $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/indonesian-utf-8.inc.php b/lang/indonesian-utf-8.inc.php index 4a11f490b..f935dd573 100644 --- a/lang/indonesian-utf-8.inc.php +++ b/lang/indonesian-utf-8.inc.php @@ -1477,4 +1477,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/italian-utf-8.inc.php b/lang/italian-utf-8.inc.php index af9026973..f1a0f1f57 100644 --- a/lang/italian-utf-8.inc.php +++ b/lang/italian-utf-8.inc.php @@ -1466,4 +1466,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/japanese-utf-8.inc.php b/lang/japanese-utf-8.inc.php index f35387b93..076f74d59 100644 --- a/lang/japanese-utf-8.inc.php +++ b/lang/japanese-utf-8.inc.php @@ -1467,4 +1467,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/korean-utf-8.inc.php b/lang/korean-utf-8.inc.php index a8d94bf0c..6eaeb6abc 100644 --- a/lang/korean-utf-8.inc.php +++ b/lang/korean-utf-8.inc.php @@ -1482,4 +1482,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/latvian-utf-8.inc.php b/lang/latvian-utf-8.inc.php index 3ea3e08ca..a35ae50c9 100644 --- a/lang/latvian-utf-8.inc.php +++ b/lang/latvian-utf-8.inc.php @@ -1484,4 +1484,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/lithuanian-utf-8.inc.php b/lang/lithuanian-utf-8.inc.php index 0c56fc03a..31ac2180f 100644 --- a/lang/lithuanian-utf-8.inc.php +++ b/lang/lithuanian-utf-8.inc.php @@ -1476,4 +1476,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/macedonian_cyrillic-utf-8.inc.php b/lang/macedonian_cyrillic-utf-8.inc.php index d1f486579..54548626d 100644 --- a/lang/macedonian_cyrillic-utf-8.inc.php +++ b/lang/macedonian_cyrillic-utf-8.inc.php @@ -1462,4 +1462,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/malay-utf-8.inc.php b/lang/malay-utf-8.inc.php index e701f755a..015f19b7d 100644 --- a/lang/malay-utf-8.inc.php +++ b/lang/malay-utf-8.inc.php @@ -1499,4 +1499,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/mongolian-utf-8.inc.php b/lang/mongolian-utf-8.inc.php index b9e34bd86..af4f0bcc1 100644 --- a/lang/mongolian-utf-8.inc.php +++ b/lang/mongolian-utf-8.inc.php @@ -1482,4 +1482,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/norwegian-utf-8.inc.php b/lang/norwegian-utf-8.inc.php index 517a6ecf5..efb177281 100644 --- a/lang/norwegian-utf-8.inc.php +++ b/lang/norwegian-utf-8.inc.php @@ -1459,4 +1459,5 @@ $strZeroRemovesTheLimit = 'Merk: Ved å sette disse til 0 (null) fjernes begrens $strZip = 'Komprimert (zip)'; $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/persian-utf-8.inc.php b/lang/persian-utf-8.inc.php index 8a5cfec61..b179cbc8a 100644 --- a/lang/persian-utf-8.inc.php +++ b/lang/persian-utf-8.inc.php @@ -1513,4 +1513,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/polish-utf-8.inc.php b/lang/polish-utf-8.inc.php index b8a2d3a77..4250df70b 100644 --- a/lang/polish-utf-8.inc.php +++ b/lang/polish-utf-8.inc.php @@ -1455,4 +1455,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/portuguese-utf-8.inc.php b/lang/portuguese-utf-8.inc.php index eea4dd755..22d7a2f7f 100644 --- a/lang/portuguese-utf-8.inc.php +++ b/lang/portuguese-utf-8.inc.php @@ -1488,4 +1488,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/romanian-utf-8.inc.php b/lang/romanian-utf-8.inc.php index 40b1527bd..da219bab8 100644 --- a/lang/romanian-utf-8.inc.php +++ b/lang/romanian-utf-8.inc.php @@ -1468,4 +1468,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/russian-utf-8.inc.php b/lang/russian-utf-8.inc.php index 13893633c..56cc2363e 100644 --- a/lang/russian-utf-8.inc.php +++ b/lang/russian-utf-8.inc.php @@ -1472,4 +1472,5 @@ $strReplicationStatus = 'Replication status'; //to translate $strReplicationStatusInfo = 'This MySQL server works as %s in replication process. For further information about replication status on the server, please visit the replication section.'; //to translate $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/serbian_cyrillic-utf-8.inc.php b/lang/serbian_cyrillic-utf-8.inc.php index 3973bd17a..0793dcede 100644 --- a/lang/serbian_cyrillic-utf-8.inc.php +++ b/lang/serbian_cyrillic-utf-8.inc.php @@ -1461,4 +1461,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/serbian_latin-utf-8.inc.php b/lang/serbian_latin-utf-8.inc.php index e1aa7f8be..30c341f74 100644 --- a/lang/serbian_latin-utf-8.inc.php +++ b/lang/serbian_latin-utf-8.inc.php @@ -1461,4 +1461,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/sinhala-utf-8.inc.php b/lang/sinhala-utf-8.inc.php index 701cdd6f4..825ec8db4 100644 --- a/lang/sinhala-utf-8.inc.php +++ b/lang/sinhala-utf-8.inc.php @@ -1464,4 +1464,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/slovak-utf-8.inc.php b/lang/slovak-utf-8.inc.php index 705383fb6..31ce2096f 100644 --- a/lang/slovak-utf-8.inc.php +++ b/lang/slovak-utf-8.inc.php @@ -1462,4 +1462,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/slovenian-utf-8.inc.php b/lang/slovenian-utf-8.inc.php index 0bab93f21..b67c86a63 100644 --- a/lang/slovenian-utf-8.inc.php +++ b/lang/slovenian-utf-8.inc.php @@ -1481,4 +1481,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/spanish-utf-8.inc.php b/lang/spanish-utf-8.inc.php index 39abe0742..897ce6735 100644 --- a/lang/spanish-utf-8.inc.php +++ b/lang/spanish-utf-8.inc.php @@ -1459,4 +1459,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/swedish-utf-8.inc.php b/lang/swedish-utf-8.inc.php index 1e19793a7..891d5e5f4 100644 --- a/lang/swedish-utf-8.inc.php +++ b/lang/swedish-utf-8.inc.php @@ -1459,4 +1459,5 @@ $strZeroRemovesTheLimit = 'Anm: Genom att sätta dessa alternativ till 0 (noll) $strZip = '"zippad"'; $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/tatarish-utf-8.inc.php b/lang/tatarish-utf-8.inc.php index dfc135704..2c6d535ac 100644 --- a/lang/tatarish-utf-8.inc.php +++ b/lang/tatarish-utf-8.inc.php @@ -1472,4 +1472,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/thai-utf-8.inc.php b/lang/thai-utf-8.inc.php index c722c4493..0c56fd8d7 100644 --- a/lang/thai-utf-8.inc.php +++ b/lang/thai-utf-8.inc.php @@ -1483,4 +1483,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/turkish-utf-8.inc.php b/lang/turkish-utf-8.inc.php index 69048c670..0c7722689 100644 --- a/lang/turkish-utf-8.inc.php +++ b/lang/turkish-utf-8.inc.php @@ -1465,4 +1465,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/lang/ukrainian-utf-8.inc.php b/lang/ukrainian-utf-8.inc.php index 57a6a9b07..0d920b8b4 100644 --- a/lang/ukrainian-utf-8.inc.php +++ b/lang/ukrainian-utf-8.inc.php @@ -1481,4 +1481,5 @@ $strReplicationStatusInfo = 'This MySQL server works as %s in replication $strReplicationStatus_master = 'Master status'; //to translate $strReplicationStatus_slave = 'Slave status'; //to translate $strNavTableFilter = 'Filter'; //to translate +$strPhpArray = 'PHP array'; //to translate ?> diff --git a/libraries/export/php_array.php b/libraries/export/php_array.php new file mode 100644 index 000000000..d33e1e9e6 --- /dev/null +++ b/libraries/export/php_array.php @@ -0,0 +1,192 @@ + + * @version 0.1b (20090610) + */ +if (! defined('PHPMYADMIN')) { + exit; +} + +/** + * + */ +if (isset($plugin_list)) { + $plugin_list['php_array'] = array( + 'text' => 'strPhpArray', + 'extension' => 'php', + 'mime_type' => 'text/plain', + 'options' => array( + array( + 'type' => 'hidden', + 'name' => 'data', + ), + ), + 'options_text' => 'strOptions', + ); +} else { + +/** + * Set of functions used to build exports of tables + */ + +/** + * Outputs comment + * + * @param string Text of comment + * + * @return bool Whether it suceeded + */ +function PMA_exportComment($text) +{ + PMA_exportOutputHandler('// ' . $text . $GLOBALS['crlf']); + return true; +} + +/** + * Outputs export footer + * + * @return bool Whether it suceeded + * + * @access public + */ +function PMA_exportFooter() +{ + return true; +} + +/** + * Outputs export header + * + * @return bool Whether it suceeded + * + * @access public + */ +function PMA_exportHeader() +{ + PMA_exportOutputHandler( + '= $columns_cnt); + + $column = $columns[$i]; + + if (is_null($record[$i])) { + $buffer .= "'".$column."'=>null".(!$isLastLine?',':''); + } elseif (is_numeric($record[$i])) { + $buffer .= "'".$column."'=>".$record[$i] . (!$isLastLine?',':''); + } else { + $buffer .= "'".$column."'=>'".addslashes($record[$i]) . "'" . (!$isLastLine?',':''); + } + } + + $buffer .= ')'; + } + + $buffer .= $crlf.');'.$crlf; + if (!PMA_exportOutputHandler($buffer)) { + return FALSE; + } + + PMA_DBI_free_result($result); + + return true; +} + +}