Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Show only errors with Webserver file

  • Loading branch information...
commit d9c2e801000c104d4baedeae39b70cf3993a9bbf 1 parent aa29b01
@vrana authored
Showing with 5 additions and 4 deletions.
  1. +3 −2 adminer/include/functions.inc.php
  2. +2 −2 adminer/sql.inc.php
View
5 adminer/include/functions.inc.php
@@ -859,10 +859,11 @@ function is_url($string) {
* @param string
* @param string
* @param bool
+* @param string
* @return null
*/
-function print_fieldset($id, $legend, $visible = false) {
- echo "<fieldset><legend><a href='#fieldset-$id' onclick=\"return !toggle('fieldset-$id');\">$legend</a></legend><div id='fieldset-$id'" . ($visible ? "" : " class='hidden'") . ">\n";
+function print_fieldset($id, $legend, $visible = false, $onclick = "") {
+ echo "<fieldset><legend><a href='#fieldset-$id' onclick=\"$onclick" . "return !toggle('fieldset-$id');\">$legend</a></legend><div id='fieldset-$id'" . ($visible ? "" : " class='hidden'") . ">\n";
}
/** Return class='active' if $bold is true
View
4 adminer/sql.inc.php
@@ -161,7 +161,7 @@
}
?>
-<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 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)) {
Please sign in to comment.
Something went wrong with that request. Please try again.