boinc/html/ops/logout.php

17 lines
306 B
PHP

<?php
require_once("../inc/util_ops.inc");
$user = get_logged_in_user_ops();
if ($user) {
clear_cookie('auth', true);
header("Location: index.php");
admin_page_head("Logged out");
echo "You are now logged out";
admin_page_tail();
} else {
admin_error_page("not logged in");
}
?>