2009-07-03 06:26:01 +00:00
|
|
|
<?php
|
2010-04-21 12:01:32 +00:00
|
|
|
/** Adminer Editor - Compact database editor
|
2009-07-03 06:26:01 +00:00
|
|
|
* @link http://www.adminer.org/
|
2010-10-28 22:26:47 +00:00
|
|
|
* @author Jakub Vrana, http://www.vrana.cz/
|
2009-07-03 06:26:01 +00:00
|
|
|
* @copyright 2009 Jakub Vrana
|
|
|
|
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
|
2010-11-09 11:59:51 +00:00
|
|
|
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
|
2009-07-03 06:26:01 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
include "../adminer/include/bootstrap.inc.php";
|
2010-04-21 12:01:32 +00:00
|
|
|
$drivers[DRIVER] = lang('Login');
|
2009-07-03 06:26:01 +00:00
|
|
|
|
2009-08-29 13:52:25 +00:00
|
|
|
if (isset($_GET["select"]) && ($_POST["edit"] || $_POST["clone"]) && !$_POST["save"]) {
|
|
|
|
$_GET["edit"] = $_GET["select"];
|
|
|
|
}
|
2009-07-03 06:26:01 +00:00
|
|
|
if (isset($_GET["download"])) {
|
|
|
|
include "../adminer/download.inc.php";
|
2009-08-29 13:52:25 +00:00
|
|
|
} elseif (isset($_GET["edit"])) {
|
|
|
|
include "../adminer/edit.inc.php";
|
|
|
|
} elseif (isset($_GET["select"])) {
|
|
|
|
include "../adminer/select.inc.php";
|
2009-07-16 14:06:33 +00:00
|
|
|
} else {
|
2009-08-29 13:52:25 +00:00
|
|
|
include "./db.inc.php";
|
2009-07-03 06:26:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// each page calls its own page_header(), if the footer should not be called then the page exits
|
|
|
|
page_footer();
|