mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 07:36:44 +02:00
Show only errors with Webserver file
This commit is contained in:
@@ -859,10 +859,11 @@ function is_url($string) {
|
|||||||
* @param string
|
* @param string
|
||||||
* @param string
|
* @param string
|
||||||
* @param bool
|
* @param bool
|
||||||
|
* @param string
|
||||||
* @return null
|
* @return null
|
||||||
*/
|
*/
|
||||||
function print_fieldset($id, $legend, $visible = false) {
|
function print_fieldset($id, $legend, $visible = false, $onclick = "") {
|
||||||
echo "<fieldset><legend><a href='#fieldset-$id' onclick=\"return !toggle('fieldset-$id');\">$legend</a></legend><div id='fieldset-$id'" . ($visible ? "" : " class='hidden'") . ">\n";
|
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
|
/** Return class='active' if $bold is true
|
||||||
|
@@ -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
|
<p><?php
|
||||||
$q = $_GET["sql"]; // overwrite $q from if ($_POST) to save memory
|
$q = $_GET["sql"]; // overwrite $q from if ($_POST) to save memory
|
||||||
if ($_POST) {
|
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("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 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();
|
$compress = array();
|
||||||
foreach (array("gz" => "zlib", "bz2" => "bz2") as $key => $val) {
|
foreach (array("gz" => "zlib", "bz2" => "bz2") as $key => $val) {
|
||||||
if (extension_loaded($val)) {
|
if (extension_loaded($val)) {
|
||||||
|
Reference in New Issue
Block a user