diff --git a/index.php b/index.php index 847d84ba..2e6ecf17 100644 --- a/index.php +++ b/index.php @@ -13,41 +13,53 @@ include "./connect.inc.php"; if (isset($_GET["dump"])) { include "./dump.inc.php"; } else { - if (isset($_GET["sql"])) { - include "./sql.inc.php"; - } elseif (isset($_GET["table"])) { + if (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"])); - echo '
' . lang('Alter database') . "
\n"; - if (mysql_get_server_info() >= 5) { - $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 "" . htmlspecialchars($row["ROUTINE_DEFINITION"]) . " | ";
- echo "
---|
" . htmlspecialchars($row["ROUTINE_TYPE"]) . " | "; + echo "" . htmlspecialchars($row["ROUTINE_NAME"]) . " | "; //! parameters from SHOW CREATE {PROCEDURE|FUNCTION} + echo "" . htmlspecialchars($row["ROUTINE_DEFINITION"]) . " | ";
+ echo "
---|