git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@293 7c3ca157-0c34-0410-bff1-cbf682f78f5c
19 lines
992 B
PHP
19 lines
992 B
PHP
<?php
|
|
if (!(strlen($_GET["db"]) ? $mysql->select_db($_GET["db"]) : isset($_GET["sql"]) || isset($_GET["dump"]) || isset($_GET["database"]) || isset($_GET["processlist"]))) {
|
|
if (strlen($_GET["db"])) {
|
|
unset($_SESSION["databases"][$_GET["server"]]);
|
|
}
|
|
if (strlen($_GET["db"])) {
|
|
page_header(lang('Database') . ": " . htmlspecialchars($_GET["db"]), false);
|
|
echo "<p class='error'>" . lang('Invalid database.') . "</p>\n";
|
|
} else {
|
|
page_header(lang('Select database'), null);
|
|
echo '<p><a href="' . htmlspecialchars($SELF) . 'database=">' . lang('Create new database') . "</a></p>\n";
|
|
echo '<p><a href="' . htmlspecialchars($SELF) . 'processlist=">' . lang('Process list') . "</a></p>\n";
|
|
echo "<p>" . lang('MySQL version') . ": <b>$mysql->server_info</b> " . lang('through PHP extension') . " <b>" . (extension_loaded("mysqli") ? "MySQLi" : (extension_loaded("mysql") ? "MySQL" : "PDO")) . "</b></p>\n";
|
|
}
|
|
page_footer("db");
|
|
exit;
|
|
}
|
|
$mysql->query("SET CHARACTER SET utf8");
|