]> git.joonet.de Git - adminer.git/commitdiff
Separate dump
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Thu, 5 Jul 2007 10:45:23 +0000 (10:45 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Thu, 5 Jul 2007 10:45:23 +0000 (10:45 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@36 7c3ca157-0c34-0410-bff1-cbf682f78f5c

dump.inc.php
index.php

index 1c64a7f834be2e0205b02cc7708e8c3fc92d41ef..b7c3b53608c5e82e49b28f1fe5e9fd082d3f266a 100644 (file)
@@ -53,6 +53,3 @@ if (strlen($_GET["db"])) {
        }
        mysql_free_result($result);
 }
-
-
-exit;
index 2204724669f55059b88aa72feb3fea5998fca3c0..5494cab2185f41b9e239e5746dafdab992e314f9 100644 (file)
--- 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 '<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"]) . "'");
-       if (mysql_num_rows($result)) {
-               echo "<h2>" . lang('Routines') . "</h2>\n";
-               echo "<table border='1' cellspacing='0' cellpadding='2'>\n";
-               while ($row = mysql_fetch_assoc($result)) {
-                       echo "<tr>";
-                       echo "<td>" . htmlspecialchars($row["ROUTINE_TYPE"]) . "</td>";
-                       echo "<th>" . htmlspecialchars($row["ROUTINE_NAME"]) . "</th>"; //! parameters from SHOW CREATE {PROCEDURE|FUNCTION}
-                       echo "<td>" . nl2br(htmlspecialchars($row["ROUTINE_DEFINITION"])) . "</td>";
-                       echo "</tr>\n";
-                       //! call, drop, replace
+       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"]));
+               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"]) . "'");
+               if (mysql_num_rows($result)) {
+                       echo "<h2>" . lang('Routines') . "</h2>\n";
+                       echo "<table border='1' cellspacing='0' cellpadding='2'>\n";
+                       while ($row = mysql_fetch_assoc($result)) {
+                               echo "<tr>";
+                               echo "<td>" . htmlspecialchars($row["ROUTINE_TYPE"]) . "</td>";
+                               echo "<th>" . htmlspecialchars($row["ROUTINE_NAME"]) . "</th>"; //! parameters from SHOW CREATE {PROCEDURE|FUNCTION}
+                               echo "<td>" . nl2br(htmlspecialchars($row["ROUTINE_DEFINITION"])) . "</td>";
+                               echo "</tr>\n";
+                               //! call, drop, replace
+                       }
+                       echo "</table>\n";
                }
-               echo "</table>\n";
+               mysql_free_result($result);
        }
-       mysql_free_result($result);
+       page_footer();
 }
-
-page_footer();