\n"); print("\n"); print("
Login
Error: username and password do not match. Please click back and try again.
\n"); SQL_close($db_link); include $inc_dir . "footer.php3"; exit; } } $cookie_name = eregi_replace(" ", "_", $site_name); if ($cusername) { if (ereg("^4", phpversion())) { SetCookie("$cookie_name-username", "", time() - 31536000, "", "$site_domain"); SetCookie("$cookie_name-username", $cusername, time() + 31536000, "", "$site_domain"); } else { SetCookie("$cookie_name-username", $cusername, time() + 31536000, "", "$site_domain"); SetCookie("$cookie_name-username", "", time() - 31536000, "", "$site_domain"); } } if ($cpassword) { if (ereg("^4", phpversion())) { SetCookie("$cookie_name-password", "", time() - 31536000, "", "$site_domain"); SetCookie("$cookie_name-password", $cpassword, time() + 31536000, "", "$site_domain"); } else { SetCookie("$cookie_name-password", $cpassword, time() + 31536000, "", "$site_domain"); SetCookie("$cookie_name-password", "", time() - 31536000, "", "$site_domain"); } } if ($cusername || $cpassword) { Header("Location: $site_url"); } if ($HTTP_COOKIE_VARS["$cookie_name-username"]) { $title = "Logged in to $site_name"; } else { $title = "Login to $site_name"; } include $inc_dir . "header.php3"; top_bar(); print("
"); print("
\n"); print("\n"); if ($HTTP_COOKIE_VARS["$cookie_name-username"]) { print("
Log In
You are now logged in.
\n"); } else { print("Enter username to save the username, or username and password to be able to post without entering your password. Note that this will allow anyone using your PC to be able to post, etc., as you.\n"); print("Username\n"); print("Password\n"); print("\n"); } include $inc_dir . "footer.php3"; ?>