Clear database cache with drop
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@246 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
09b7ebed34
commit
dbe69dc9ea
|
@ -2,6 +2,7 @@
|
||||||
if ($_POST && !$error) {
|
if ($_POST && !$error) {
|
||||||
if ($_POST["drop"]) {
|
if ($_POST["drop"]) {
|
||||||
if ($mysql->query("DROP DATABASE " . idf_escape($_GET["db"]))) {
|
if ($mysql->query("DROP DATABASE " . idf_escape($_GET["db"]))) {
|
||||||
|
unset($_SESSION["databases"][$_GET["server"]]);
|
||||||
redirect(substr(preg_replace('~db=[^&]*&~', '', $SELF), 0, -1), lang('Database has been dropped.'));
|
redirect(substr(preg_replace('~db=[^&]*&~', '', $SELF), 0, -1), lang('Database has been dropped.'));
|
||||||
}
|
}
|
||||||
} elseif ($_GET["db"] !== $_POST["name"]) {
|
} elseif ($_GET["db"] !== $_POST["name"]) {
|
||||||
|
|
Loading…
Reference in a new issue