Added a comma after each msgnum exported. The parser was globbing them all together...
[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 include "ctdlheader.php";
11
12 bbs_page_header();
13
14 if ($_REQUEST["action"] == "Login") {
15         list($retval, $msg) =
16                 login_existing_user($_REQUEST["user"], $_REQUEST["pass"]);
17 }
18 else if ($_REQUEST["action"] == "New User") {
19         list($retval, $msg) =
20                 create_new_user($_REQUEST["user"], $_REQUEST["pass"]);
21 }
22 else {
23         echo "uuuuhhhhhhhhh....<BR>\n" ;
24 }
25
26
27 if ($retval == FALSE) {
28         echo "<DIV ALIGN=CENTER>", $msg, "<BR><BR>\n" ;
29         echo "<a href=\"login.php\">Try again</A><BR>\n" ;
30         echo "<a href=\"logout.php\">Log out</A><BR>\n" ;
31 }
32 else {
33         echo "<A HREF=\"welcome.php\">Logged in.  ";
34         echo "Click to continue if your browser does not refresh.</a><BR>";
35         echo "<meta http-equiv=\"refresh\" content=\"15;url=welcome.php\">\n";
36 }
37
38 bbs_page_footer();
39
40 ?>
41