User ". $_SESSION['name'] ." has left the chat session.
");
fclose($fp);
session_destroy();
header("Location: index.php"); //Redirect the user
}
?>
';
}
// if(isset($_POST['enter'])){
// if($_POST['name'] != ""){
// $_SESSION['name'] = stripslashes(htmlspecialchars($_POST['name']));
// }
// else{
// echo 'Please type in a name';
// }
// }
//$name = $_POST['name'];
//$pass = $_POST['pwd'];
//$enter = $_POST['enter'];
if(isset($_POST['enter'])){
if($_POST['name'] != ""
&& $_POST['pwd'] == "101")
{
if($_POST['name'] == "TheHawk" || $_POST['name'] == "Drakon" || $_POST['name'] == "Beandog" || $_POST['name'] == "enbee03" || $_POST['name'] == "wiz"){
$_SESSION['name'] = stripslashes(htmlspecialchars($_POST['name']));
}
else
{
echo 'You are not authorized to view this page.';
}
}
else
{
echo 'Please type in a name or your password is incorrect.';
}
}
?>
Chat - Elite ONLY
Timestamps are in PST
Chat reset every day at midnight.
0){
$handle = fopen("log.html", "r");
$contents = fread($handle, filesize("log.html"));
fclose($handle);
echo $contents;
}
?>
Made by Bryant.