319347de38597ed8fa50e87aad69e69239b82881
[citadel.git] / ctdlphp / do_login.php
1 <?PHP
2
3 // $Id$
4 //
5 // The login form displayed in login.php submits to this page.
6 // 
7 // Copyright (c) 2003 by Art Cancro <ajc@uncensored.citadel.org>
8 // This program is released under the terms of the GNU General Public License.
9 //
10
11         include "ctdlheader.php";
12         bbs_page_header();
13
14
15         if ($_POST["action"] == "Login") {
16                 list($retval, $msg) =
17                         login_existing_user($_POST["user"], $_POST["pass"]);
18                         echo $msg, "<BR>\n";
19         }
20         if ($_POST["action"] == "New User") {
21                 list($retval, $msg) =
22                         create_new_user($_POST["user"], $_POST["pass"]);
23                         echo $msg, "<BR>\n";
24         }
25         else {
26                 echo "uuuuhhhhhhhh....<BR>\n";
27         }
28
29 ?>
30
31
32 <a href="page2.php">Page Two</a><BR>
33 <a href="page3.php">Page Three</a><BR>
34
35 <?PHP
36         bbs_page_footer();
37 ?>
38