mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 03:24:01 +02:00
Simpler index.php structure
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1043 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -8,19 +8,17 @@
|
||||
|
||||
include "../adminer/include/bootstrap.inc.php";
|
||||
|
||||
if (isset($_GET["select"]) && ($_POST["edit"] || $_POST["clone"]) && !$_POST["save"]) {
|
||||
$_GET["edit"] = $_GET["select"];
|
||||
}
|
||||
if (isset($_GET["download"])) {
|
||||
include "../adminer/download.inc.php";
|
||||
} elseif (isset($_GET["edit"])) {
|
||||
include "../adminer/edit.inc.php";
|
||||
} elseif (isset($_GET["select"])) {
|
||||
include "../adminer/select.inc.php";
|
||||
} else {
|
||||
if (isset($_GET["select"]) && ($_POST["edit"] || $_POST["clone"]) && !$_POST["save"]) {
|
||||
$_GET["edit"] = $_GET["select"];
|
||||
}
|
||||
if (isset($_GET["edit"])) {
|
||||
include "../adminer/edit.inc.php";
|
||||
} elseif (isset($_GET["select"])) {
|
||||
include "../adminer/select.inc.php";
|
||||
} else {
|
||||
include "./db.inc.php";
|
||||
}
|
||||
include "./db.inc.php";
|
||||
}
|
||||
|
||||
// each page calls its own page_header(), if the footer should not be called then the page exits
|
||||
|
Reference in New Issue
Block a user