remove_from_uri()

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@277 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2007-07-27 11:43:44 +00:00
parent ea1bb7dd5b
commit d41d44606e
5 changed files with 11 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ if ($_POST && !$error) {
if ($mysql->query("CREATE DATABASE " . idf_escape($_POST["name"]) . ($_POST["collation"] ? " COLLATE '" . $mysql->escape_string($_POST["collation"]) . "'" : ""))) {
unset($_SESSION["databases"][$_GET["server"]]);
if (!strlen($_GET["db"])) {
redirect(preg_replace('~db=[^&]*&~', '', $SELF) . "db=" . urlencode($_POST["name"]), lang('Database has been created.'));
redirect($SELF . "db=" . urlencode($_POST["name"]), lang('Database has been created.'));
}
$result = $mysql->query("SHOW TABLES");
while ($row = $result->fetch_row()) {