<?PHP
/*
A "test" home page.
Note how auth.php is included. This gets the authentication started.
*/
include 'auth.php';
echo "hi!";
echo '<a href="'.$_SERVER['PHP_SELF'].'?logout">logout</a>';
if(isset($_GET['logout'])) {
/*
Used for logging out.
Note, we may call AuthKill() without the class being instantiated, as it's just killing sessions.
*/
Authentication::AuthKill();
echo "logged out";
}
?>
|