mirror of
https://github.com/vrana/adminer.git
synced 2025-08-23 22:52:51 +02:00
Clear cache only for MySQL
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1520 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -2,11 +2,9 @@
|
||||
if ($_POST && !$error && !isset($_POST["add_x"])) { // add is an image and PHP changes add.x to add_x
|
||||
restart_session();
|
||||
if ($_POST["drop"]) {
|
||||
set_session("databases", null);
|
||||
queries_redirect(remove_from_uri("db|database"), lang('Database has been dropped.'), drop_databases(array(DB)));
|
||||
} elseif (DB !== $_POST["name"]) {
|
||||
// create or rename database
|
||||
set_session("databases", null); // clear cache
|
||||
if (DB != "") {
|
||||
queries_redirect(preg_replace('~db=[^&]*&~', '', ME) . "db=" . urlencode($_POST["name"]), lang('Database has been renamed.'), rename_database($_POST["name"], $_POST["collation"]));
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user