svn path=/trunk/boinc/; revision=13066
This commit is contained in:
Rytis Slatkevičius 2007-07-02 11:19:29 +00:00
parent 79ad608685
commit 05ac7c0903
1 changed files with 9 additions and 2 deletions

View File

@ -1,10 +1,16 @@
<?php
$cvs_version_tracker[]="\$Id$"; //Generated automatically - do not edit
include_once("../inc/db.inc");
include_once("../inc/util.inc");
if (isset($_COOKIE['auth'])) {
check_tokens($_COOKIE['auth']);
db_init();
$user = get_logged_in_user();
if ($user) {
check_tokens($user->authenticator);
session_start();
session_destroy();
setcookie('auth', "", time());
@ -14,4 +20,5 @@ if (isset($_COOKIE['auth'])) {
} else {
error_page("not logged in");
}
?>