Move query to connect.inc.php
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@443 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
a65c0f1bdd
commit
a21a0e4311
|
@ -75,4 +75,3 @@ if (!isset($username) || !$mysql->connect($_GET["server"], $username, $_SESSION[
|
||||||
auth_error();
|
auth_error();
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
$mysql->query("SET SQL_QUOTE_SHOW_CREATE=1");
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
$mysql->query("SET SQL_QUOTE_SHOW_CREATE=1");
|
||||||
if (!(strlen($_GET["db"]) ? $mysql->select_db($_GET["db"]) : isset($_GET["sql"]) || isset($_GET["dump"]) || isset($_GET["database"]) || isset($_GET["processlist"]) || isset($_GET["privileges"]) || isset($_GET["user"]))) {
|
if (!(strlen($_GET["db"]) ? $mysql->select_db($_GET["db"]) : isset($_GET["sql"]) || isset($_GET["dump"]) || isset($_GET["database"]) || isset($_GET["processlist"]) || isset($_GET["privileges"]) || isset($_GET["user"]))) {
|
||||||
if (strlen($_GET["db"])) {
|
if (strlen($_GET["db"])) {
|
||||||
unset($_SESSION["databases"][$_GET["server"]]);
|
unset($_SESSION["databases"][$_GET["server"]]);
|
||||||
|
|
Loading…
Reference in a new issue