mirror of https://github.com/BOINC/boinc.git
parent
79ad608685
commit
05ac7c0903
|
@ -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");
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue