session_destroy();
$_SESSION = array();
echo "<div class=\"message\"><span class=\"bigger\">You are now logged out!</span><br />\n".
- "(<a href=\"$host\">This will take you back to the home-page</a>)</div>";
+ "(<a href=\"$INDEX\">This will take you back to the home-page</a>)</div>";
}
/* user status page */
else if( isset($_SESSION["name"]) )
$email = DB_get_email_by_name($name);
$password = DB_get_passwd_by_name($name);
-
/* verify password and email */
if(strlen($password)!=32)
$password = md5($password);
if($ok)
{
- DB_get_PREF($myid);
-
- $time = DB_get_user_timestamp($myid);
- $unixtime = strtotime($time);
+ output_status();
- $offset = DB_get_user_timezone($myid);
- $zone = return_timezone($offset);
- date_default_timezone_set($zone);
-
- output_status($name);
-
- echo "<div class=\"lastlogin\">last login: ".date("r",$unixtime)."</div>";
+ DB_get_PREF($myid);
DB_update_user_timestamp($myid);
{
/* send them back to the login page */
echo "<div class=\"message\"><span class=\"bigger\">You need to log in!</span><br />\n".
- "(<a href=\"$host\">This will take you back to the login-page</a>)</div>";
+ "(<a href=\"$INDEX\">This will take you back to the login-page</a>)</div>";
}
output_footer();