]> git.joonet.de Git - adminer.git/commitdiff
Comments
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Mon, 16 Jul 2007 11:41:25 +0000 (11:41 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Mon, 16 Jul 2007 11:41:25 +0000 (11:41 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@180 7c3ca157-0c34-0410-bff1-cbf682f78f5c

index.php

index 9a069497dbb1f4709d6120a5d416e6aff630626b..7fed27a3b35f6cd2166deb245489c689694260c7 100644 (file)
--- a/index.php
+++ b/index.php
@@ -16,7 +16,7 @@ if (isset($_GET["dump"])) {
        include "./dump.inc.php";
 } elseif (isset($_GET["download"])) {
        include "./download.inc.php";
-} else {
+} else { // outputs footer
        $on_actions = array("RESTRICT", "CASCADE", "SET NULL", "NO ACTION");
        $types = array(
                "tinyint" => 3, "smallint" => 5, "mediumint" => 8, "int" => 10, "bigint" => 20,
@@ -36,7 +36,7 @@ if (isset($_GET["dump"])) {
                include "./select.inc.php";
        } elseif (isset($_GET["view"])) {
                include "./view.inc.php";
-       } else {
+       } else { // uses CSRF token
                if ($_POST) {
                        $error = (in_array($_POST["token"], (array) $TOKENS) ? "" : lang('Invalid CSRF token. Send the form again.'));
                }