150) {
print "
error - field length exceeds max length of 150 characters. Please reduce the size of your input.
";
die("Max length of 150 characters on field input exceeded");
}
if (trim($_GET["login"]) == "prep"){
if (!isset($_SESSION['user'])) {
$_SESSION['user'] = $_SERVER["PHP_AUTH_USER"];
}
$_SESSION['LoginMsgDisplayed'] = "0";
print "";
// print "
Login Successful.
Return to Cape Cod Belt.";
// print "
Login Successful.
Return to Cape Cod Belt.";
// header( 'Location: ../index.html' ) ;
} else {
if (trim($_GET["toggle"]) == "LOGOUT"){
$_SESSION['LoginMsgDisplayed'] = "0";
unset($_SESSION['user']);
print "";
} else {
print "
Invalid Login
Please click the Back button on your browser to return.";
}
}
?>