Separate dump
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@36 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
a5a6d3b381
commit
aeee74d7c7
|
@ -53,6 +53,3 @@ if (strlen($_GET["db"])) {
|
||||||
}
|
}
|
||||||
mysql_free_result($result);
|
mysql_free_result($result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
exit;
|
|
||||||
|
|
39
index.php
39
index.php
|
@ -10,25 +10,26 @@ include "./design.inc.php";
|
||||||
include "./auth.inc.php";
|
include "./auth.inc.php";
|
||||||
include "./connect.inc.php";
|
include "./connect.inc.php";
|
||||||
|
|
||||||
if (isset($_GET["sql"])) {
|
if (isset($_GET["dump"])) {
|
||||||
include "./sql.inc.php";
|
|
||||||
} elseif (isset($_GET["table"])) {
|
|
||||||
include "./table.inc.php";
|
|
||||||
} elseif (isset($_GET["select"])) {
|
|
||||||
include "./select.inc.php";
|
|
||||||
} elseif (isset($_GET["edit"])) {
|
|
||||||
include "./edit.inc.php";
|
|
||||||
} elseif (isset($_GET["create"])) {
|
|
||||||
include "./create.inc.php";
|
|
||||||
} elseif (isset($_GET["indexes"])) {
|
|
||||||
include "./indexes.inc.php";
|
|
||||||
} elseif (isset($_GET["dump"])) {
|
|
||||||
include "./dump.inc.php";
|
include "./dump.inc.php";
|
||||||
} elseif (isset($_GET["view"])) {
|
|
||||||
include "./view.inc.php";
|
|
||||||
} elseif (isset($_GET["database"])) {
|
|
||||||
include "./database.inc.php";
|
|
||||||
} else {
|
} else {
|
||||||
|
if (isset($_GET["sql"])) {
|
||||||
|
include "./sql.inc.php";
|
||||||
|
} elseif (isset($_GET["table"])) {
|
||||||
|
include "./table.inc.php";
|
||||||
|
} elseif (isset($_GET["select"])) {
|
||||||
|
include "./select.inc.php";
|
||||||
|
} elseif (isset($_GET["edit"])) {
|
||||||
|
include "./edit.inc.php";
|
||||||
|
} elseif (isset($_GET["create"])) {
|
||||||
|
include "./create.inc.php";
|
||||||
|
} elseif (isset($_GET["indexes"])) {
|
||||||
|
include "./indexes.inc.php";
|
||||||
|
} elseif (isset($_GET["view"])) {
|
||||||
|
include "./view.inc.php";
|
||||||
|
} elseif (isset($_GET["database"])) {
|
||||||
|
include "./database.inc.php";
|
||||||
|
} else {
|
||||||
page_header(htmlspecialchars(lang('Database') . ": " . $_GET["db"]));
|
page_header(htmlspecialchars(lang('Database') . ": " . $_GET["db"]));
|
||||||
echo '<p><a href="' . htmlspecialchars($SELF) . 'database=">' . lang('Alter database') . "</a></p>\n";
|
echo '<p><a href="' . htmlspecialchars($SELF) . 'database=">' . lang('Alter database') . "</a></p>\n";
|
||||||
$result = mysql_query("SELECT * FROM information_schema.ROUTINES WHERE ROUTINE_SCHEMA = '" . mysql_real_escape_string($_GET["db"]) . "'");
|
$result = mysql_query("SELECT * FROM information_schema.ROUTINES WHERE ROUTINE_SCHEMA = '" . mysql_real_escape_string($_GET["db"]) . "'");
|
||||||
|
@ -46,6 +47,6 @@ if (isset($_GET["sql"])) {
|
||||||
echo "</table>\n";
|
echo "</table>\n";
|
||||||
}
|
}
|
||||||
mysql_free_result($result);
|
mysql_free_result($result);
|
||||||
|
}
|
||||||
|
page_footer();
|
||||||
}
|
}
|
||||||
|
|
||||||
page_footer();
|
|
||||||
|
|
Loading…
Reference in a new issue