mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 11:34:10 +02:00
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:
@@ -2,6 +2,7 @@
|
||||
if ($_POST && !$error) {
|
||||
if ($_POST["drop"]) {
|
||||
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.'));
|
||||
}
|
||||
} elseif ($_GET["db"] !== $_POST["name"]) {
|
||||
|
Reference in New Issue
Block a user