Feature #506106: Read compressed dump.

This commit is contained in:
Alexander M. Turek
2002-11-18 06:00:34 +00:00
parent c251129105
commit 7d7ab0ccf9
93 changed files with 236 additions and 57 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$
$Source$
2002-11-17 Alexander M. Turek <rabus@users.sourceforge.net>
* db_details.php3, read_dump.php3, tbl_query_box.php3, lang/*.inc.php3:
Feature #506106: Read compressed dump.
2002-11-16 Marc Delisle <lem9@users.sourceforge.net>
* libraries/build_dump.lib.php3: fix for old MySQL, thanks to
Flavio Poletti (flavio at polettix.it)
@@ -20,7 +24,7 @@ $Source$
* lang/hindi update, thanks to Girish Nair (girish_nair)
2002-11-16 Robin Johnson <robbat2@users.sourceforge.net>
* lib/sqlparser.data.php3: Bug #639291 fixed
* libraries/sqlparser.data.php3: Bug #639291 fixed
2002-11-16 Alexander M. Turek <rabus@users.sourceforge.net>
* tbl_indexes.php3: Fixed bug #638321 (FULLTEXT is not detected correctly

View File

@@ -97,9 +97,25 @@ if ($is_upload) {
}
echo '>' . $temp_charset . '</option>' . "\n";
}
echo ' </select>';
echo ' </select><br />' . "\n" . ' ';
} // end if (recoding)
echo "\n";
$is_gzip = ($cfg['GZipDump'] && @function_exists('gzopen'));
$is_bzip = ($cfg['BZipDump'] && @function_exists('bzdecompress'));
if ($is_bzip || $is_gzip) {
echo ' ' . $strCompression . ':' . "\n"
. ' <input type="radio" id="radio_sql_file_compression_plain" name="sql_file_compression" value="text/plain" checked="checked" />' . "\n"
. ' <label for="radio_sql_file_compression_plain">' . $strNone . '</label>&nbsp;&nbsp;&nbsp;' . "\n";
if ($is_gzip) {
echo ' <input type="radio" id="radio_sql_file_compression_gzip" name="sql_file_compression" value="application/x-gzip" />' . "\n"
. ' <label for="radio_sql_file_compression_gzip">' . $strGzip . '</label>&nbsp;&nbsp;&nbsp;' . "\n";
}
if ($is_bzip) {
echo ' <input type="radio" id="radio_sql_file_compression_bzip" name="sql_file_compression" value="application/x-bzip" />' . "\n"
. ' <label for="radio_sql_file_compression_bzip">' . $strBzip . '</label>&nbsp;&nbsp;&nbsp;' . "\n";
}
} else {
echo ' <input type="hidden" name="sql_file_compression" value="text/plain" />' . "\n";
}
?>
</div>
<?php

View File

@@ -439,4 +439,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -440,4 +440,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -439,6 +439,7 @@ $strWrongUser = 'Emri i p
$strYes = ' Po ';
$strZip = '"kompresuar me zip"';
// To translate
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -440,6 +440,7 @@ $strWrongUser = 'Emri i përdoruesit apo password i gabuar. Ndalohet hyrja.';
$strYes = ' Po ';
$strZip = '"kompresuar me zip"';
// To translate
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -454,4 +454,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -453,4 +453,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -453,4 +453,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -454,4 +454,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -453,4 +453,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -454,4 +454,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -453,4 +453,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -431,6 +431,7 @@ $strWrongUser = 'Usuari i/o clau erronis. Acc
$strYes = 'Si';
$strZip = '"comprimit amb zip"';
// To translate
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -432,6 +432,7 @@ $strWrongUser = 'Usuari i/o clau erronis. Accés denegat.';
$strYes = 'Si';
$strZip = '"comprimit amb zip"';
// To translate
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -437,6 +437,7 @@ $strWrongUser = '錯誤的使用者名稱或密碼,拒絕存取';
$strYes = ' 是 ';
$strZip = '"zipped"';
// To translate
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -436,6 +436,7 @@ $strWrongUser = '
$strYes = ' <20>O ';
$strZip = '"zipped"';
// To translate
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -435,6 +435,7 @@ $strWrongUser = '密码错误,访问被拒绝。';
$strYes = '是';
$strZip = '"zipped"';
// To translate
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -434,6 +434,7 @@ $strWrongUser = '
$strYes = '<27><>';
$strZip = '"zipped"';
// To translate
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -452,4 +452,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -453,4 +453,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -452,4 +452,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -436,6 +436,7 @@ $strWrongUser = '
$strYes = 'Ano';
$strZip = '"zazipov<6F>no"';
// To translate
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -437,6 +437,7 @@ $strWrongUser = 'Špatné uživatelské jméno/heslo. Přístup odepřen.';
$strYes = 'Ano';
$strZip = '"zazipováno"';
// To translate
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -436,6 +436,7 @@ $strWrongUser = '
$strYes = 'Ano';
$strZip = '"zazipov<6F>no"';
// To translate
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -447,4 +447,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -448,4 +448,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -288,7 +288,7 @@ $strPrimaryKey = 'Primaire sleutel';
$strPrimaryKeyHasBeenDropped = 'De primaire sleutel is vervallen';
$strPrimaryKeyName = 'De naam van de primaire sleutel moet PRIMARY zijn!';
$strPrimaryKeyWarning = '("PRIMARY" <b>moet</b> de naam van en <b>alleen van</b> een primaire sleutel zijn!)';
$strPrint = 'Afdrukken';
$strPrint = 'Afdrukken';
$strPrintView = 'Printopmaak';
$strPrivileges = 'Rechten';
$strProperties = 'Eigenschappen';
@@ -435,6 +435,7 @@ $strWrongUser = 'Verkeerde gebruikersnaam/wachtwoord. Toegang geweigerd.';
$strYes = 'Ja';
$strZip = '"Gezipt"';
// To translate
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -289,7 +289,7 @@ $strPrimaryKey = 'Primaire sleutel';
$strPrimaryKeyHasBeenDropped = 'De primaire sleutel is vervallen';
$strPrimaryKeyName = 'De naam van de primaire sleutel moet PRIMARY zijn!';
$strPrimaryKeyWarning = '("PRIMARY" <b>moet</b> de naam van en <b>alleen van</b> een primaire sleutel zijn!)';
$strPrint = 'Afdrukken';
$strPrint = 'Afdrukken';
$strPrintView = 'Printopmaak';
$strPrivileges = 'Rechten';
$strProperties = 'Eigenschappen';
@@ -436,6 +436,7 @@ $strWrongUser = 'Verkeerde gebruikersnaam/wachtwoord. Toegang geweigerd.';
$strYes = 'Ja';
$strZip = '"Gezipt"';
// To translate
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -81,6 +81,7 @@ $strColumn = 'Column';
$strColumnNames = 'Column names';
$strComments = 'Comments';
$strCompleteInserts = 'Complete inserts';
$strCompression = 'Compression';
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.';
$strConfigureTableCoord = 'Please configure the coordinates for table %s';
$strConfirm = 'Do you really want to do it?';

View File

@@ -82,6 +82,7 @@ $strColumn = 'Column';
$strColumnNames = 'Column names';
$strComments = 'Comments';
$strCompleteInserts = 'Complete inserts';
$strCompression = 'Compression';
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.';
$strConfigureTableCoord = 'Please configure the coordinates for table %s';
$strConfirm = 'Do you really want to do it?';

View File

@@ -433,4 +433,5 @@ $strZip = '"zipitud"';
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -434,4 +434,5 @@ $strZip = '"zipitud"';
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -436,4 +436,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -437,4 +437,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -431,6 +431,7 @@ $strWrongUser = 'Erreur d\'utilisateur/mot de passe. Acc
$strYes = 'Oui';
$strZip = '"zipp<70>"';
// To translate
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -432,6 +432,7 @@ $strWrongUser = 'Erreur d\'utilisateur/mot de passe. Accès refusé';
$strYes = 'Oui';
$strZip = '"zippé"';
// To translate
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -437,4 +437,5 @@ $strZip = 'comprimido no formato "zipped"';
// To translate
$strImportDocSQL = 'Import docSQL Files'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -438,4 +438,5 @@ $strZip = 'comprimido no formato "zipped"';
// To translate
$strImportDocSQL = 'Import docSQL Files'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -452,4 +452,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -89,6 +89,7 @@ $strColumn = 'Spalte';
$strColumnNames = 'Spaltennamen';
$strComments = 'Kommentare';
$strCompleteInserts = 'Vollst<73>ndige \'INSERT\'s';
$strCompression = 'Kompression';
$strConfigFileError = 'phpMyAdmin konnte Ihre Konfigurationsdatei nicht verarbeiten!<br />Dies kann passieren, wenn der PHP-Parser Syntaxfehler in ihr findet oder sie nicht existiert.<br />Bitte rufen Sie die Konfigurationsdatei <20>ben den unteren Link direkt auf und lesen Sie die PHP-Fehlermeldungen, die Sie erhalten. Meistens fehlt blo<6C> irgendwo ein Anf<6E>hrungszeichen oder Semikolon.<br />Wenn Sie eine leere Seite erhalten, ist Ihre Konfigurationsdatei in Ordnung.';
$strConfigureTableCoord = 'Bitte konfigurieren Sie die Koordinaten f<>r die Tabelle %s';
$strConfirm = 'Sind Sie wirklich sicher?';
@@ -439,6 +440,5 @@ $strWrongUser = 'Falscher Benutzername/Kennwort. Zugriff verweigert.';
$strYes = 'Ja';
$strZip = 'Zip-komprimiert';
// To translate
?>

View File

@@ -90,6 +90,7 @@ $strColumn = 'Spalte';
$strColumnNames = 'Spaltennamen';
$strComments = 'Kommentare';
$strCompleteInserts = 'Vollständige \'INSERT\'s';
$strCompression = 'Kompression';
$strConfigFileError = 'phpMyAdmin konnte Ihre Konfigurationsdatei nicht verarbeiten!<br />Dies kann passieren, wenn der PHP-Parser Syntaxfehler in ihr findet oder sie nicht existiert.<br />Bitte rufen Sie die Konfigurationsdatei üben den unteren Link direkt auf und lesen Sie die PHP-Fehlermeldungen, die Sie erhalten. Meistens fehlt bloß irgendwo ein Anführungszeichen oder Semikolon.<br />Wenn Sie eine leere Seite erhalten, ist Ihre Konfigurationsdatei in Ordnung.';
$strConfigureTableCoord = 'Bitte konfigurieren Sie die Koordinaten für die Tabelle %s';
$strConfirm = 'Sind Sie wirklich sicher?';
@@ -440,6 +441,5 @@ $strWrongUser = 'Falscher Benutzername/Kennwort. Zugriff verweigert.';
$strYes = 'Ja';
$strZip = 'Zip-komprimiert';
// To translate
?>

View File

@@ -451,4 +451,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -452,4 +452,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -449,4 +449,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -269,6 +269,7 @@ $strCarriage = 'Carriage return: \\r'; //to translate
$strChangeDisplay = 'Choose Field to display'; //to translate
$strCharsetOfFile = 'Character set of the file:'; //to translate
$strColComFeat = 'Displaying Column Comments'; //to translate
$strCompression = 'Compression'; //to translate
$strConfigFileError = 'phpMyAdmin was unable to read your configuration file!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strConfigureTableCoord = 'Please configure the coordinates for table %s'; //to translate
$strCookiesRequired = 'Cookies must be enabled past this point.'; //to translate

View File

@@ -437,4 +437,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -438,4 +438,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -435,4 +435,5 @@ $strZip = '"Dikompress dengan Zip"';
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -436,4 +436,5 @@ $strZip = '"Dikompress dengan Zip"';
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -437,6 +437,7 @@ $strWrongUser = 'Nome utente o password errati. Accesso negato.';
$strYes = ' Si ';
$strZip = '"compresso con zip"';
// To translate
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -438,6 +438,7 @@ $strWrongUser = 'Nome utente o password errati. Accesso negato.';
$strYes = ' Si ';
$strZip = '"compresso con zip"';
// To translate
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -442,4 +442,6 @@ $strYes = '
$strZip = '"zip<69><70><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"';
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -442,4 +442,6 @@ $strYes = '
$strZip = '"zip<69><70><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"';
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -442,4 +442,6 @@ $strYes = 'はい';
$strZip = '"zipされる"';
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -215,7 +215,7 @@ $strPageNumber = '
$strPassword = '<27><>ȣ';
$strPasswordEmpty = '<27><>ȣ<EFBFBD><C8A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>!';
$strPasswordNotSame = '<27><>ȣ<EFBFBD><C8A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʽ<EFBFBD><CABD>ϴ<EFBFBD>!';
$strPdfDbSchema = '"%s" <20><><EFBFBD><EFBFBD>Ÿ<EFBFBD><C5B8><EFBFBD>̽<EFBFBD><CCBD><EFBFBD> <20><>Ŵ(<28><><EFBFBD><EFBFBD>) - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> %s';
$strPdfDbSchema = '"%s" <20><><EFBFBD><EFBFBD>Ÿ<EFBFBD><C5B8><EFBFBD>̽<EFBFBD><CCBD><EFBFBD> <20><>Ŵ(<28><><EFBFBD><EFBFBD>) - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> %s';
$strPdfInvalidPageNum = 'PDF <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ȣ<EFBFBD><C8A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʾҽ<CABE><D2BD>ϴ<EFBFBD>!';
$strPdfInvalidTblName = '"%s" <20><><EFBFBD>̺<EFBFBD><CCBA><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʽ<EFBFBD><CABD>ϴ<EFBFBD>!';
$strPdfNoTables = '<27><><EFBFBD>̺<EFBFBD><CCBA><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>';
@@ -376,6 +376,7 @@ $strCharsetOfFile = '
$strChoosePage = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>'; //to translate
$strColComFeat = <><C4AE> <20>ڸ<EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD>'; //to translate
$strComments = 'Comments'; //to translate
$strCompression = 'Compression'; //to translate
$strConfigFileError = 'phpMyAdmin<69><6E> ȯ<><EFBFBD><E6BCB3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>!<br />This might happen if php finds a parse error in it or php cannot find the file.<br />Please call the configuration file directly using the link below and read the php error message(s) that you recieve. In most cases a quote or a semicolon is missing somewhere.<br />If you recieve a blank page, everything is fine.'; //to translate
$strConfigureTableCoord = 'Please configure the coordinates for table %s'; //to translate
$strCookiesRequired = '<27><>Ű <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD> <20>մϴ<D5B4> past this point.'; // To translate

View File

@@ -453,4 +453,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -452,4 +452,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -432,6 +432,7 @@ $strWrongUser = 'Neteisingas vartotojo vardas arba slaptažodis. Priėjimas užd
$strYes = 'Taip';
$strZip = '"zip"';
//to translate:
// To translate:
$strCompression = 'Compression'; //to translate
?>

View File

@@ -431,6 +431,7 @@ $strWrongUser = 'Neteisingas vartotojo vardas arba slapta
$strYes = 'Taip';
$strZip = '"zip"';
//to translate:
//To translate:
$strCompression = 'Compression'; //to translate
?>

View File

@@ -117,7 +117,7 @@ $strCreatePdfFeat = 'Ciptaan bagi PDF';
$strCriteria = 'Kriteria';
$strData = 'Data';
$strDataDict = 'Kamus Data';
$strDataDict = 'Kamus Data';
$strDataOnly = 'Data sahaja';
$strDatabase = 'Pangkalan Data ';
$strDatabaseHasBeenDropped = 'angkalan data %s telah digugurkan.';
@@ -197,7 +197,7 @@ $strHostEmpty = 'Nama hos adalah kosong!';
$strIdxFulltext = 'Tekspenuh';
$strIfYouWish = 'Jika anda ingin hanya memuat sesetengah kolum jadual, nyatakan senarai medan dipisahi koma.';
$strIgnore = 'Abai';
$strImportDocSQL = 'Import Fail docSQL';
$strImportDocSQL = 'Import Fail docSQL';
$strInUse = 'sedang digunakan';
$strIndex = 'Indeks';
$strIndexHasBeenDropped = 'Indeks %s telah digugurkan';
@@ -373,7 +373,7 @@ $strSelectFields = 'Pilih medan (sekurang-kurangnya satu):';
$strSelectNumRows = 'pada kueri';
$strSelectTables = 'Pilih Jadual';
$strSend = 'Simpan sebagai fail';
$strServer = 'Pelayan %s';
$strServer = 'Pelayan %s';
$strServerChoice = 'Pilihan Pelayan';
$strServerVersion = 'Versi Pelayan';
$strSetEnumVal = 'Jika jenis medan ialah "enum" atau "set", sila masukkan nilai menggunakan format: \'a\',\'b\',\'c\'...<br />Jika Anda ingin menggunakan backslash ("\") atau single quote ("\'") didalam nilai tersebut, backslashes kan ia (cth \'\\\\xyz\' or \'a\\\'b\').';
@@ -437,7 +437,7 @@ $strUserName = 'Kata Pengenalan';
$strUsers = 'Pengguna-Pengguna';
$strValidateSQL = 'Mengesahkan SQL';
$strValidatorError = 'Pengesahan SQL tidak dapat disahkan. Sila semak sama ada anda telah memasang sambungan php seperti yang tercatitit di %sdocumentation%s.';
$strValidatorError = 'Pengesahan SQL tidak dapat disahkan. Sila semak sama ada anda telah memasang sambungan php seperti yang tercatitit di %sdocumentation%s.';
$strValue = 'Nilai';
$strViewDump = 'Lihat longgokan (skema) pangkalan data';
$strViewDumpDB = 'View dump (schema) of database';
@@ -452,4 +452,6 @@ $strYes = 'Ya';
$strZip = '"zipped"';
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -118,7 +118,7 @@ $strCreatePdfFeat = 'Ciptaan bagi PDF';
$strCriteria = 'Kriteria';
$strData = 'Data';
$strDataDict = 'Kamus Data';
$strDataDict = 'Kamus Data';
$strDataOnly = 'Data sahaja';
$strDatabase = 'Pangkalan Data ';
$strDatabaseHasBeenDropped = 'angkalan data %s telah digugurkan.';
@@ -198,7 +198,7 @@ $strHostEmpty = 'Nama hos adalah kosong!';
$strIdxFulltext = 'Tekspenuh';
$strIfYouWish = 'Jika anda ingin hanya memuat sesetengah kolum jadual, nyatakan senarai medan dipisahi koma.';
$strIgnore = 'Abai';
$strImportDocSQL = 'Import Fail docSQL';
$strImportDocSQL = 'Import Fail docSQL';
$strInUse = 'sedang digunakan';
$strIndex = 'Indeks';
$strIndexHasBeenDropped = 'Indeks %s telah digugurkan';
@@ -374,7 +374,7 @@ $strSelectFields = 'Pilih medan (sekurang-kurangnya satu):';
$strSelectNumRows = 'pada kueri';
$strSelectTables = 'Pilih Jadual';
$strSend = 'Simpan sebagai fail';
$strServer = 'Pelayan %s';
$strServer = 'Pelayan %s';
$strServerChoice = 'Pilihan Pelayan';
$strServerVersion = 'Versi Pelayan';
$strSetEnumVal = 'Jika jenis medan ialah "enum" atau "set", sila masukkan nilai menggunakan format: \'a\',\'b\',\'c\'...<br />Jika Anda ingin menggunakan backslash ("\") atau single quote ("\'") didalam nilai tersebut, backslashes kan ia (cth \'\\\\xyz\' or \'a\\\'b\').';
@@ -438,7 +438,7 @@ $strUserName = 'Kata Pengenalan';
$strUsers = 'Pengguna-Pengguna';
$strValidateSQL = 'Mengesahkan SQL';
$strValidatorError = 'Pengesahan SQL tidak dapat disahkan. Sila semak sama ada anda telah memasang sambungan php seperti yang tercatitit di %sdocumentation%s.';
$strValidatorError = 'Pengesahan SQL tidak dapat disahkan. Sila semak sama ada anda telah memasang sambungan php seperti yang tercatitit di %sdocumentation%s.';
$strValue = 'Nilai';
$strViewDump = 'Lihat longgokan (skema) pangkalan data';
$strViewDumpDB = 'View dump (schema) of database';
@@ -453,4 +453,6 @@ $strYes = 'Ya';
$strZip = '"zipped"';
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -437,5 +437,5 @@ $strYes = 'Ja';
$strZip = 'Komprimert (zip)';
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -438,4 +438,5 @@ $strYes = 'Ja';
$strZip = 'Komprimert (zip)';
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -431,6 +431,7 @@ $strWrongUser = 'B
$strYes = 'Tak';
$strZip = '".zip"';
// To translate
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -432,6 +432,7 @@ $strWrongUser = 'Błędne pola użytkownik/hasło. Brak dostępu.';
$strYes = 'Tak';
$strZip = '".zip"';
// To translate
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -444,4 +444,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -445,4 +445,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -431,6 +431,7 @@ $strWrongUser = 'Nume de utilizator/Parola incorecta. Accesul interzis.';
$strYes = 'Da';
$strZip = '"arhivat"';
// To translate
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -432,6 +432,7 @@ $strWrongUser = 'Nume de utilizator/Parola incorecta. Accesul interzis.';
$strYes = 'Da';
$strZip = '"arhivat"';
// To translate
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -443,4 +443,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -444,4 +444,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -443,4 +443,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -455,4 +455,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -454,4 +454,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -433,6 +433,7 @@ $strWrongUser = 'Zl
$strYes = '<27>no';
$strZip = '"zo zipovan<61>"';
// To translate
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -434,6 +434,7 @@ $strWrongUser = 'Zlé používateľské meno alebo heslo. Prístup zamietnutý.'
$strYes = 'Áno';
$strZip = '"zo zipované"';
// To translate
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -433,6 +433,7 @@ $strWrongUser = 'Zl
$strYes = '<27>no';
$strZip = '"zo zipovan<61>"';
// To translate
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -435,6 +435,7 @@ $strWrongUser = 'Napa
$strYes = 'Da';
$strZip = '"zipano"';
// To translate
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -436,6 +436,7 @@ $strWrongUser = 'Napačno uporabniško ime/geslo. Dostop zavrnjen.';
$strYes = 'Da';
$strZip = '"zipano"';
// To translate
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -435,6 +435,7 @@ $strWrongUser = 'Napa
$strYes = 'Da';
$strZip = '"zipano"';
// To translate
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -262,7 +262,7 @@ $strOptions = 'Opciones';
$strOr = 'O';
$strOverhead = 'Residuo a depurar';
$strPHP40203 = 'Usted est<73> usando PHP 4.2.3, el cual tiene un error de codificaci<63>n en cuanto a los "strings multi-byte" (mbstring). Lea el reporte 19404 de PHP. Esta versi<73>n de PHP no est<73> recomendada para ser usada con phpMyAdmin.';
$strPHP40203 = 'Usted est<73> usando PHP 4.2.3, el cual tiene un error de codificaci<63>n en cuanto a los "strings multi-byte" (mbstring). Lea el reporte 19404 de PHP. Esta versi<73>n de PHP no est<73> recomendada para ser usada con phpMyAdmin.';
$strPHPVersion = 'Versi<73>n de PHP';
$strPageNumber = 'N<>mero de p<>gina:';
$strPartialText = 'Textos parciales';
@@ -283,7 +283,7 @@ $strPrimaryKey = 'Clave Primaria';
$strPrimaryKeyHasBeenDropped = 'La clave primaria ha sido eliminada';
$strPrimaryKeyName = 'El nombre de la clave primaria debe ser... <20>PRIMARY!';
$strPrimaryKeyWarning = '("PRIMARY" <b>debe</b> ser el nombre de y <b><3E>nicamente de</b> <20>una clave primaria!)';
$strPrint = 'Imprimir';
$strPrint = 'Imprimir';
$strPrintView = 'Vista de impresi<73>n';
$strPrivileges = 'Privilegios';
$strProperties = 'Propiedades';
@@ -431,4 +431,6 @@ $strYes = 'S
$strZip = '"comprimido con zip"';
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -263,7 +263,7 @@ $strOptions = 'Opciones';
$strOr = 'O';
$strOverhead = 'Residuo a depurar';
$strPHP40203 = 'Usted está usando PHP 4.2.3, el cual tiene un error de codificación en cuanto a los "strings multi-byte" (mbstring). Lea el reporte 19404 de PHP. Esta versión de PHP no está recomendada para ser usada con phpMyAdmin.';
$strPHP40203 = 'Usted está usando PHP 4.2.3, el cual tiene un error de codificación en cuanto a los "strings multi-byte" (mbstring). Lea el reporte 19404 de PHP. Esta versión de PHP no está recomendada para ser usada con phpMyAdmin.';
$strPHPVersion = 'Versión de PHP';
$strPageNumber = 'Número de página:';
$strPartialText = 'Textos parciales';
@@ -284,7 +284,7 @@ $strPrimaryKey = 'Clave Primaria';
$strPrimaryKeyHasBeenDropped = 'La clave primaria ha sido eliminada';
$strPrimaryKeyName = 'El nombre de la clave primaria debe ser... ¡PRIMARY!';
$strPrimaryKeyWarning = '("PRIMARY" <b>debe</b> ser el nombre de y <b>únicamente de</b> ¡una clave primaria!)';
$strPrint = 'Imprimir';
$strPrint = 'Imprimir';
$strPrintView = 'Vista de impresión';
$strPrivileges = 'Privilegios';
$strProperties = 'Propiedades';
@@ -432,4 +432,6 @@ $strYes = 'Sí';
$strZip = '"comprimido con zip"';
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -432,6 +432,7 @@ $strWrongUser = 'Fel anv
$strYes = 'Ja';
$strZip = '"zippad"';
// To translate
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -435,4 +435,5 @@ $strYes = 'Ja';
$strZip = '"zippad"';
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -437,4 +437,5 @@ $strYes = '
$strZip = '"<22>١<EFBFBD>պ<EFBFBD>Ѵ<EFBFBD><D1B4><EFBFBD><EFBFBD> (zip)"';
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -438,4 +438,5 @@ $strYes = 'ใช่';
$strZip = '"ถูกบีบอัดอยู่ (zip)"';
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -440,4 +440,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -441,4 +441,5 @@ $strImportDocSQL = 'Import docSQL Files'; //to translate
$strDataDict = 'Data Dictionary'; //to translate
$strPrint = 'Print'; //to translate
$strPHP40203 = 'You are using PHP 4.2.3, which has a serious bug with multi-byte strings (mbstring). See PHP bug report 19404. This version of PHP is not recommended for use with phpMyAdmin.'; //to translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -432,6 +432,7 @@ $strWrongUser = 'Невірний логін/пароль. Доступ не д
$strYes = 'Так';
$strZip = 'запакувати в "zip"';
// To translate
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -433,4 +433,5 @@ $strYes = '
$strZip = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> "zip"';
// To translate
$strCompression = 'Compression'; //to translate
?>

View File

@@ -164,6 +164,56 @@ if (!function_exists('is_uploaded_file')) {
} // end of the 'is_uploaded_file()' emulated function
} // end if
/**
* Reads (and decompresses) a (compressed) file into a string
*
* @param string the path to the file
* @param string the MIME type of the file
*
* @global array the phpMyAdmin configuration
*
* @return string the content of the file or
* boolean FALSE in case of an error.
*/
function PMA_readFile($path, $mime = 'text/plain') {
global $cfg;
switch ($mime) {
case 'text/plain':
$file = fopen($path, 'rb');
$content = fread($file, filesize($path));
fclose($file);
break;
case 'application/x-gzip':
if ($cfg['GZipDump'] && @function_exists('gzopen')) {
$file = gzopen($path, 'rb');
$content = '';
while (!gzeof($file)) {
$content .= gzgetc($file);
}
gzclose($file);
} else {
return FALSE;
}
break;
case 'application/x-bzip':
if ($cfg['BZipDump'] && @function_exists('bzdecompress')) {
$file = fopen($path, 'rb');
$content = fread($file, filesize($path));
fclose($file);
$content = bzdecompress($content);
} else {
return FALSE;
}
break;
default:
return FALSE;
}
if (!file_exists($path)) {
return FALSE;
}
return $content;
}
/**
@@ -260,7 +310,7 @@ if ($sql_file != 'none') {
// may only be a prefix), force the error and let PHP reports
// it
error_reporting(E_ALL);
$sql_query = fread(fopen($sql_file, 'r'), filesize($sql_file));
$sql_query = PMA_readFile($sql_file, $sql_file_compression);
}
else {
$sql_file_new = (PMA_IS_WINDOWS ? '.\\tmp\\' : './tmp/')
@@ -270,13 +320,13 @@ if ($sql_file != 'none') {
} else {
move_uploaded_file($sql_file, $sql_file_new);
}
$sql_query = fread(fopen($sql_file_new, 'r'), filesize($sql_file_new));
$sql_query = PMA_readFile($sql_file_new, $sql_file_compression);
unlink($sql_file_new);
}
}
else {
// read from the normal upload dir
$sql_query = fread(fopen($sql_file, 'r'), filesize($sql_file));
$sql_query = PMA_readFile($sql_file, $sql_file_compression);
}
if (get_magic_quotes_runtime() == 1) {

View File

@@ -115,9 +115,25 @@ if ($is_upload) {
}
echo '>' . $temp_charset . '</option>' . "\n";
} // end while
echo ' </select>';
echo ' </select><br />' . "\n" . ' ';
} // end if
echo "\n";
$is_gzip = ($cfg['GZipDump'] && @function_exists('gzopen'));
$is_bzip = ($cfg['BZipDump'] && @function_exists('bzdecompress'));
if ($is_bzip || $is_gzip) {
echo ' ' . $strCompression . ':' . "\n"
. ' <input type="radio" id="radio_sql_file_compression_plain" name="sql_file_compression" value="text/plain" checked="checked" />' . "\n"
. ' <label for="radio_sql_file_compression_plain">' . $strNone . '</label>&nbsp;&nbsp;&nbsp;' . "\n";
if ($is_gzip) {
echo ' <input type="radio" id="radio_sql_file_compression_gzip" name="sql_file_compression" value="application/x-gzip" />' . "\n"
. ' <label for="radio_sql_file_compression_gzip">' . $strGzip . '</label>&nbsp;&nbsp;&nbsp;' . "\n";
}
if ($is_bzip) {
echo ' <input type="radio" id="radio_sql_file_compression_bzip" name="sql_file_compression" value="application/x-bzip" />' . "\n"
. ' <label for="radio_sql_file_compression_bzip">' . $strBzip . '</label>&nbsp;&nbsp;&nbsp;' . "\n";
}
} else {
echo ' <input type="hidden" name="sql_file_compression" value="text/plain" />' . "\n";
}
?>
</div>
<?php