5 // The login form displayed in login.php submits to this page.
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.
10 include "ctdlheader.php";
14 if ($_REQUEST["action"] == "Login") {
16 login_existing_user($_REQUEST["user"], $_REQUEST["pass"]);
18 else if ($_REQUEST["action"] == "New User") {
20 create_new_user($_REQUEST["user"], $_REQUEST["pass"]);
23 echo "uuuuhhhhhhhhh....<BR>\n" ;
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" ;
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";