Redirect function

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@15 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2007-07-03 06:48:18 +00:00
parent 01f528efe5
commit 42bc448e3c
6 changed files with 19 additions and 23 deletions

View File

@@ -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();
}