]> code.citadel.org Git - citadel.git/blobdiff - ctdlphp/do_login.php
* cleanup
[citadel.git] / ctdlphp / do_login.php
index 6e09432934095ad1422758143ebff2d8902b6ecc..8a9c2e77bc83c591b87aef5e7f62e6d04b9e7a0f 100644 (file)
@@ -12,13 +12,13 @@ include "ctdlheader.php";
 
 bbs_page_header();
 
-if ($_POST["action"] == "Login") {
+if ($_REQUEST["action"] == "Login") {
        list($retval, $msg) =
-               login_existing_user($_POST["user"], $_POST["pass"]);
+               login_existing_user($_REQUEST["user"], $_REQUEST["pass"]);
 }
-else if ($_POST["action"] == "New User") {
+else if ($_REQUEST["action"] == "New User") {
        list($retval, $msg) =
-               create_new_user($_POST["user"], $_POST["pass"]);
+               create_new_user($_REQUEST["user"], $_REQUEST["pass"]);
 }
 else {
        echo "uuuuhhhhhhhhh....<BR>\n" ;
@@ -31,7 +31,8 @@ if ($retval == FALSE) {
        echo "<a href=\"logout.php\">Log out</A><BR>\n" ;
 }
 else {
-       echo "<A HREF=\"welcome.php\">Logged in.  Click to continue.</a><BR>";
+       echo "<A HREF=\"welcome.php\">Logged in.  ";
+       echo "Click to continue if your browser does not refresh.</a><BR>";
        echo "<meta http-equiv=\"refresh\" content=\"0;url=welcome.php\">\n";
 }