2007-07-02 05:51:26 +00:00
|
|
|
<?php
|
2007-07-10 13:30:42 +00:00
|
|
|
if (!(strlen($_GET["db"]) ? $mysql->select_db($_GET["db"]) : isset($_GET["sql"]) || isset($_GET["dump"]) || isset($_GET["database"]))) {
|
2007-07-06 08:47:20 +00:00
|
|
|
page_header(lang('Select database'));
|
2007-07-02 05:51:26 +00:00
|
|
|
if (strlen($_GET["db"])) {
|
|
|
|
echo "<p class='error'>" . lang('Invalid database.') . "</p>\n";
|
2007-07-02 20:21:30 +00:00
|
|
|
} else {
|
|
|
|
echo '<a href="' . htmlspecialchars($SELF) . 'database=">' . lang('Create new database') . '</a>';
|
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");
|