* * * * This script displays the contents for the 'Login' page. Don't forget the * * forget the 12 space indent for all content pages. * * * * Last modified : September 13th, 2002 (JJS) * \******************************************************************************/ /* Run this stuff so people can't call this file directly */ $file_name = "login.php"; /* Get the negative length of $file_name */ $file_name_length = -(strlen($file_name)); /* Check if the values match, if so, redirect */ if (substr($_SERVER['SCRIPT_NAME'], $file_name_length) == $file_name) header("Location: ../index.php"); /* If the user performed a bad login, then tell them */ if ($login == "failed") echo "
Bad login credentials, try again.

"; /* Display the top part of the form */ echo "
\n" . " \n" . " \n" . " \n" . " \n" . " \n" . " \n" . " \n" . "
Login
\n" . " \n" . " \n" . " \n" . " \n" . " \n" . " \n" . " \n" . " \n" . " \n" . " \n" . " \n" . " \n" . " \n" . " \n" . "
\n" . " Username: \n" . " \n" . " \n" . "
\n" . " Password: \n" . " \n" . " \n" . "
\n" . " \n" . "
\n" . " Forgot Password?\n" . "
\n"; /* If $destination isn't NULL, then put it on the form */ if ($destination != "") echo " \n"; /* Same with the $forum_id */ if ($forum_id != "") echo " \n"; /* Same with the $thread_id */ if ($thread_id != "") echo " \n"; /* Let's close off the form */ echo "
\n" . "
\n"; ?>