Clear database cache on homepage
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@154 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
635abcc4e1
commit
50b85f04eb
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
if (!(strlen($_GET["db"]) ? $mysql->select_db($_GET["db"]) : isset($_GET["sql"]) || isset($_GET["dump"]) || isset($_GET["database"]))) {
|
||||
unset($_SESSION["databases"]);
|
||||
page_header(lang('Select database'));
|
||||
if (strlen($_GET["db"])) {
|
||||
echo "<p class='error'>" . lang('Invalid database.') . "</p>\n";
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
if ($_POST && !$error) {
|
||||
if ($_POST["drop"]) {
|
||||
if ($mysql->query("DROP DATABASE " . idf_escape($_GET["db"]))) {
|
||||
unset($_SESSION["databases"]);
|
||||
redirect(substr(preg_replace('~db=[^&]*&~', '', $SELF), 0, -1), lang('Database has been dropped.'));
|
||||
}
|
||||
} elseif ($_GET["db"] !== $_POST["name"]) {
|
||||
|
|
Loading…
Reference in a new issue