From: Jakub Vrana Date: Wed, 24 Jul 2013 01:43:36 +0000 (-0700) Subject: Execute query by Tab + Enter X-Git-Tag: v4.0.0~95 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=cbd690dd71bcabc62efc17237599e1a6aa07dcf4;p=adminer.git Execute query by Tab + Enter --- diff --git a/adminer/sql.inc.php b/adminer/sql.inc.php index b434e84f..505d8627 100644 --- a/adminer/sql.inc.php +++ b/adminer/sql.inc.php @@ -196,13 +196,6 @@ if ($_POST) { textarea("query", $q, 20); echo ($_POST ? "" : "\n"); -echo "

" . (ini_bool("file_uploads") - ? lang('File upload') . ': (< ' . ini_get("upload_max_filesize") . 'B)' // ignore post_max_size because it is for all form fields together and bytes computing would be necessary - : lang('File uploads are disabled.') -); - ?>

@@ -210,6 +203,13 @@ echo "

" . (ini_bool("file_uploads") echo checkbox("error_stops", 1, $_POST["error_stops"], lang('Stop on error')) . "\n"; echo checkbox("only_errors", 1, $_POST["only_errors"], lang('Show only errors')) . "\n"; +echo "

" . (ini_bool("file_uploads") + ? lang('File upload') . ': (< ' . ini_get("upload_max_filesize") . 'B)' // ignore post_max_size because it is for all form fields together and bytes computing would be necessary + : lang('File uploads are disabled.') +); + print_fieldset("webfile", lang('From server'), $_POST["webfile"], "document.getElementById('form')['only_errors'].checked = true; "); echo lang('Webserver file %s', "adminer.sql" . (extension_loaded("zlib") ? "[.gz]" : "") . ""); echo ' ';