mirror of
https://github.com/vrana/adminer.git
synced 2025-08-11 17:14:07 +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:
@@ -11,6 +11,15 @@ include "./include/bootstrap.inc.php";
|
|||||||
$enum_length = '\'(?:\'\'|[^\'\\\\]|\\\\.)*\'|"(?:""|[^"\\\\]|\\\\.)*"';
|
$enum_length = '\'(?:\'\'|[^\'\\\\]|\\\\.)*\'|"(?:""|[^"\\\\]|\\\\.)*"';
|
||||||
$inout = array("IN", "OUT", "INOUT");
|
$inout = array("IN", "OUT", "INOUT");
|
||||||
|
|
||||||
|
if (isset($_GET["select"]) && ($_POST["edit"] || $_POST["clone"]) && !$_POST["save"]) {
|
||||||
|
$_GET["edit"] = $_GET["select"];
|
||||||
|
}
|
||||||
|
if (isset($_GET["callf"])) {
|
||||||
|
$_GET["call"] = $_GET["callf"];
|
||||||
|
}
|
||||||
|
if (isset($_GET["function"])) {
|
||||||
|
$_GET["procedure"] = $_GET["function"];
|
||||||
|
}
|
||||||
if (isset($_GET["download"])) {
|
if (isset($_GET["download"])) {
|
||||||
include "./download.inc.php";
|
include "./download.inc.php";
|
||||||
} elseif (isset($_GET["table"])) {
|
} elseif (isset($_GET["table"])) {
|
||||||
@@ -21,17 +30,7 @@ if (isset($_GET["download"])) {
|
|||||||
include "./dump.inc.php";
|
include "./dump.inc.php";
|
||||||
} elseif (isset($_GET["privileges"])) {
|
} elseif (isset($_GET["privileges"])) {
|
||||||
include "./privileges.inc.php";
|
include "./privileges.inc.php";
|
||||||
} else {
|
} elseif (isset($_GET["sql"])) {
|
||||||
if (isset($_GET["select"]) && ($_POST["edit"] || $_POST["clone"]) && !$_POST["save"]) {
|
|
||||||
$_GET["edit"] = $_GET["select"];
|
|
||||||
}
|
|
||||||
if (isset($_GET["callf"])) {
|
|
||||||
$_GET["call"] = $_GET["callf"];
|
|
||||||
}
|
|
||||||
if (isset($_GET["function"])) {
|
|
||||||
$_GET["procedure"] = $_GET["function"];
|
|
||||||
}
|
|
||||||
if (isset($_GET["sql"])) {
|
|
||||||
include "./sql.inc.php";
|
include "./sql.inc.php";
|
||||||
} elseif (isset($_GET["edit"])) {
|
} elseif (isset($_GET["edit"])) {
|
||||||
include "./edit.inc.php";
|
include "./edit.inc.php";
|
||||||
@@ -64,7 +63,6 @@ if (isset($_GET["download"])) {
|
|||||||
} else {
|
} 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
|
// each page calls its own page_header(), if the footer should not be called then the page exits
|
||||||
page_footer();
|
page_footer();
|
||||||
|
@@ -8,20 +8,18 @@
|
|||||||
|
|
||||||
include "../adminer/include/bootstrap.inc.php";
|
include "../adminer/include/bootstrap.inc.php";
|
||||||
|
|
||||||
if (isset($_GET["download"])) {
|
|
||||||
include "../adminer/download.inc.php";
|
|
||||||
} else {
|
|
||||||
if (isset($_GET["select"]) && ($_POST["edit"] || $_POST["clone"]) && !$_POST["save"]) {
|
if (isset($_GET["select"]) && ($_POST["edit"] || $_POST["clone"]) && !$_POST["save"]) {
|
||||||
$_GET["edit"] = $_GET["select"];
|
$_GET["edit"] = $_GET["select"];
|
||||||
}
|
}
|
||||||
if (isset($_GET["edit"])) {
|
if (isset($_GET["download"])) {
|
||||||
|
include "../adminer/download.inc.php";
|
||||||
|
} elseif (isset($_GET["edit"])) {
|
||||||
include "../adminer/edit.inc.php";
|
include "../adminer/edit.inc.php";
|
||||||
} elseif (isset($_GET["select"])) {
|
} elseif (isset($_GET["select"])) {
|
||||||
include "../adminer/select.inc.php";
|
include "../adminer/select.inc.php";
|
||||||
} else {
|
} 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
|
// each page calls its own page_header(), if the footer should not be called then the page exits
|
||||||
page_footer();
|
page_footer();
|
||||||
|
Reference in New Issue
Block a user