X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=ctdlphp%2Fdo_login.php;h=4d0751d000a6ff7a6926e436718eb2f3632d5ab5;hb=d2f01e044da76bf55d068f20beb2e12e8939fbe3;hp=319347de38597ed8fa50e87aad69e69239b82881;hpb=e1822b173e750dbe4e495fe7031cadf4c9ee00e1;p=citadel.git diff --git a/ctdlphp/do_login.php b/ctdlphp/do_login.php index 319347de3..4d0751d00 100644 --- a/ctdlphp/do_login.php +++ b/ctdlphp/do_login.php @@ -8,31 +8,34 @@ // This program is released under the terms of the GNU General Public License. // - include "ctdlheader.php"; - bbs_page_header(); - - - if ($_POST["action"] == "Login") { - list($retval, $msg) = - login_existing_user($_POST["user"], $_POST["pass"]); - echo $msg, "
\n"; - } - if ($_POST["action"] == "New User") { - list($retval, $msg) = - create_new_user($_POST["user"], $_POST["pass"]); - echo $msg, "
\n"; - } - else { - echo "uuuuhhhhhhhh....
\n"; - } +include "ctdlheader.php"; + +bbs_page_header(); + +if ($_POST["action"] == "Login") { + list($retval, $msg) = + login_existing_user($_POST["user"], $_POST["pass"]); +} +else if ($_POST["action"] == "New User") { + list($retval, $msg) = + create_new_user($_POST["user"], $_POST["pass"]); +} +else { + echo "uuuuhhhhhhhhh....
\n" ; +} + + +if ($retval == FALSE) { + echo "
", $msg, "

\n" ; + echo "Try again
\n" ; + echo "Log out
\n" ; +} +else { + echo "Hi there. You're online.
\n" ; + echo "Page Two
\n" ; +} + +bbs_page_footer(); ?> - -Page Two
-Page Three
- - -