mirror of
https://github.com/vrana/adminer.git
synced 2026-01-03 14:20:41 +01:00
Move error output to page_header()
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@386 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -3,11 +3,9 @@ if (isset($_POST["query"])) {
|
||||
setcookie("highlight", $_POST["highlight"], strtotime("+1 month"), preg_replace('~\\?.*~', '', $_SERVER["REQUEST_URI"]));
|
||||
$_COOKIE["highlight"] = $_POST["highlight"];
|
||||
}
|
||||
page_header(lang('SQL command'));
|
||||
page_header(lang('SQL command'), $error);
|
||||
|
||||
if ($error) {
|
||||
echo "<p class='error'>" . htmlspecialchars($error) . "</p>\n";
|
||||
} elseif ($_POST && is_string($query = (isset($_POST["query"]) ? $_POST["query"] : get_file("sql_file")))) {
|
||||
if (!$error && $_POST && is_string($query = (isset($_POST["query"]) ? $_POST["query"] : get_file("sql_file")))) {
|
||||
$delimiter = ";";
|
||||
$offset = 0;
|
||||
$empty = true;
|
||||
|
||||
Reference in New Issue
Block a user