1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 10:04:07 +02:00

Show only errors with Webserver file

This commit is contained in:
Jakub Vrana
2011-06-14 11:37:02 +02:00
parent aa29b01724
commit d9c2e80100
2 changed files with 5 additions and 4 deletions

View File

@@ -161,7 +161,7 @@ if (!$error && $_POST) {
}
?>
<form action="" method="post" enctype="multipart/form-data">
<form action="" method="post" enctype="multipart/form-data" id="form">
<p><?php
$q = $_GET["sql"]; // overwrite $q from if ($_POST) to save memory
if ($_POST) {
@@ -186,7 +186,7 @@ echo "<p>" . (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";
print_fieldset("webfile", lang('From server'), $_POST["webfile"]);
print_fieldset("webfile", lang('From server'), $_POST["webfile"], "document.getElementById('form')['only_errors'].checked = true; ");
$compress = array();
foreach (array("gz" => "zlib", "bz2" => "bz2") as $key => $val) {
if (extension_loaded($val)) {