]> git.joonet.de Git - adminer.git/commitdiff
Display upload_max_filesize
authorJakub Vrana <jakub@vrana.cz>
Thu, 3 Feb 2011 09:21:07 +0000 (10:21 +0100)
committerJakub Vrana <jakub@vrana.cz>
Thu, 3 Feb 2011 09:21:07 +0000 (10:21 +0100)
adminer/sql.inc.php

index 5e18eb32499fef8084db75ab5937b43c3369ab02..2ffb4eea11881e70aeef4acab9c363b4606e925f 100644 (file)
@@ -153,7 +153,7 @@ if ($_POST) {
 }
 textarea("query", $q, 20);
 echo ($_POST ? "" : "<script type='text/javascript'>document.getElementsByTagName('textarea')[0].focus();</script>\n");
-echo "<p>" . (ini_bool("file_uploads") ? lang('File upload') . ': <input type="file" name="sql_file">' : lang('File uploads are disabled.'));
+echo "<p>" . (ini_bool("file_uploads") ? lang('File upload') . ': <input type="file" name="sql_file"> (&lt; ' . ini_get("upload_max_filesize") . 'B)' : lang('File uploads are disabled.')); // ignore post_max_size because it is for all form fields together and bytes computing would be necessary
 
 ?>
 <p>