2007-07-02 05:51:26 +00:00
|
|
|
<?php
|
2007-08-09 15:03:39 +00:00
|
|
|
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"]))) {
|
2007-07-25 20:06:21 +00:00
|
|
|
if (strlen($_GET["db"])) {
|
|
|
|
unset($_SESSION["databases"][$_GET["server"]]);
|
|
|
|
}
|
2007-07-02 05:51:26 +00:00
|
|
|
if (strlen($_GET["db"])) {
|
2007-08-04 19:37:08 +00:00
|
|
|
page_header(lang('Database') . ": " . htmlspecialchars($_GET["db"]), false);
|
2007-07-02 05:51:26 +00:00
|
|
|
echo "<p class='error'>" . lang('Invalid database.') . "</p>\n";
|
2007-07-02 20:21:30 +00:00
|
|
|
} else {
|
2007-08-04 19:37:08 +00:00
|
|
|
page_header(lang('Select database'), null);
|
2007-07-16 13:26:37 +00:00
|
|
|
echo '<p><a href="' . htmlspecialchars($SELF) . 'database=">' . lang('Create new database') . "</a></p>\n";
|
2007-08-08 16:26:30 +00:00
|
|
|
echo '<p><a href="' . htmlspecialchars($SELF) . 'privileges=">' . lang('Privileges') . "</a></p>\n";
|
2007-07-16 13:26:37 +00:00
|
|
|
echo '<p><a href="' . htmlspecialchars($SELF) . 'processlist=">' . lang('Process list') . "</a></p>\n";
|
2008-03-18 10:49:19 +00:00
|
|
|
echo "<p>" . lang('MySQL version: %s through PHP extension %s', "<b>$mysql->server_info</b>", "<b>" . (extension_loaded("mysqli") ? "MySQLi" : (extension_loaded("mysql") ? "MySQL" : "PDO")) . "</b>") . "</p>\n";
|
2007-07-02 05:51:26 +00:00
|
|
|
}
|
2007-07-06 08:47:20 +00:00
|
|
|
page_footer("db");
|
2007-07-02 05:51:26 +00:00
|
|
|
exit;
|
|
|
|
}
|
2007-07-10 13:30:42 +00:00
|
|
|
$mysql->query("SET CHARACTER SET utf8");
|