diff --git a/adminer/lang/cs.inc.php b/adminer/lang/cs.inc.php index 09d46211..7bb63102 100644 --- a/adminer/lang/cs.inc.php +++ b/adminer/lang/cs.inc.php @@ -256,4 +256,5 @@ $translations = array( 'Type has been created.' => 'Typ byl vytvořen.', 'Alter type' => 'Pozměnit typ', 'Search data in tables' => 'Vyhledat data v tabulkách', + 'From server' => 'Ze serveru', ); diff --git a/adminer/sql.inc.php b/adminer/sql.inc.php index dc8eb49a..91389ea7 100644 --- a/adminer/sql.inc.php +++ b/adminer/sql.inc.php @@ -18,7 +18,7 @@ if (!$error && $_POST) { : "compress.bzip2://adminer.sql.bz2" )), "rb"); $query = ($fp ? fread($fp, 1e6) : false); - } elseif ($_POST["file"]) { + } elseif ($_FILES["sql_file"]["error"] != 4) { // 4 - UPLOAD_ERR_NO_FILE $query = get_file("sql_file", true); } if (is_string($query)) { // get_file() returns error as number, fread() as false @@ -143,16 +143,10 @@ textarea("query", $q, 20); -
-: - - +echo "
" . (ini_bool("file_uploads") ? lang('File upload') . ': ' : lang('File uploads are disabled.')); -
"zlib", "bz2" => "bz2") as $key => $val) {
if (extension_loaded($val)) {
@@ -160,9 +154,9 @@ foreach (array("gz" => "zlib", "bz2" => "bz2") as $key => $val) {
}
}
echo lang('Webserver file %s', "adminer.sql" . ($compress ? "[" . implode("|", $compress) . "]" : "") . "
");
-?>
+echo ' ';
+echo "\n";
- $val) {