diff --git a/dump.inc.php b/dump.inc.php index 1c64a7f8..b7c3b536 100644 --- a/dump.inc.php +++ b/dump.inc.php @@ -53,6 +53,3 @@ if (strlen($_GET["db"])) { } mysql_free_result($result); } - - -exit; diff --git a/index.php b/index.php index 22047246..5494cab2 100644 --- a/index.php +++ b/index.php @@ -10,42 +10,43 @@ include "./design.inc.php"; include "./auth.inc.php"; include "./connect.inc.php"; -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["dump"])) { +if (isset($_GET["dump"])) { include "./dump.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"])); - echo '
' . lang('Alter database') . "
\n"; - $result = mysql_query("SELECT * FROM information_schema.ROUTINES WHERE ROUTINE_SCHEMA = '" . mysql_real_escape_string($_GET["db"]) . "'"); - if (mysql_num_rows($result)) { - echo "" . htmlspecialchars($row["ROUTINE_TYPE"]) . " | "; - echo "" . htmlspecialchars($row["ROUTINE_NAME"]) . " | "; //! parameters from SHOW CREATE {PROCEDURE|FUNCTION} - echo "" . nl2br(htmlspecialchars($row["ROUTINE_DEFINITION"])) . " | "; - echo "
---|
" . htmlspecialchars($row["ROUTINE_TYPE"]) . " | "; + echo "" . htmlspecialchars($row["ROUTINE_NAME"]) . " | "; //! parameters from SHOW CREATE {PROCEDURE|FUNCTION} + echo "" . nl2br(htmlspecialchars($row["ROUTINE_DEFINITION"])) . " | "; + echo "
---|