mirror of
https://github.com/vrana/adminer.git
synced 2026-07-20 06:31:00 +02:00
Redirect function
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@15 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -23,9 +23,7 @@ if ($_POST) {
|
||||
}
|
||||
}
|
||||
if (mysql_query($query)) {
|
||||
$_SESSION["message"] = $message;
|
||||
header("Location: " . ($_POST["drop"] ? substr($SELF, 0, -1) : $SELF . "table=" . urlencode($_POST["name"])) . (SID ? "&" . SID : ""));
|
||||
exit;
|
||||
redirect(($_POST["drop"] ? substr($SELF, 0, -1) : $SELF . "table=" . urlencode($_POST["name"])), $message);
|
||||
}
|
||||
$error = mysql_error();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user