mirror of
https://github.com/vrana/adminer.git
synced 2026-01-04 14:50:56 +01:00
Use $_SESSION['database']
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@181 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -6,7 +6,7 @@ if ($_POST && !$error) {
|
||||
}
|
||||
} elseif ($_GET["db"] !== $_POST["name"]) {
|
||||
if ($mysql->query("CREATE DATABASE " . idf_escape($_POST["name"]) . ($_POST["collation"] ? " COLLATE '" . $mysql->escape_string($_POST["collation"]) . "'" : ""))) {
|
||||
unset($_SESSION[$_GET["server"]]["databases"]);
|
||||
unset($_SESSION["databases"][$_GET["server"]]);
|
||||
if (!strlen($_GET["db"])) {
|
||||
redirect(preg_replace('~db=[^&]*&~', '', $SELF) . "db=" . urlencode($_POST["name"]), lang('Database has been created.'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user