2009-07-03 06:26:01 +00:00
|
|
|
<?php
|
2024-10-22 23:49:57 +02:00
|
|
|
/**
|
|
|
|
|
* Adminer Editor - Compact database editor for end-users
|
|
|
|
|
*
|
|
|
|
|
* @link https://github.com/pematon/adminer
|
|
|
|
|
* @author Jakub Vrana (https://www.vrana.cz/)
|
|
|
|
|
* @author Peter Knut
|
|
|
|
|
* @copyright 2009-2021 Jakub Vrana, 2024 Peter Knut
|
|
|
|
|
* @license Apache License, Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0)
|
|
|
|
|
* @license GNU General Public License, version 2 (https://www.gnu.org/licenses/gpl-2.0.html)
|
|
|
|
|
*/
|
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"];
|
|
|
|
|
}
|
2013-05-01 18:28:04 -07:00
|
|
|
|
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";
|
2011-05-04 15:53:26 +02:00
|
|
|
} elseif (isset($_GET["script"])) {
|
|
|
|
|
include "./script.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();
|