This repository has been archived on 2024-07-18. You can view files and clone it, but cannot push or open issues or pull requests.
lwb5/scripts/site/main/handlers/logout.inc

18 lines
308 B
PHP
Raw Normal View History

2016-01-10 11:01:49 +01:00
<?php
class page_handler
{
var $needsAuth = false;
var $ajax = array();
function handle($input) {
if (!is_null($_SESSION) && !is_null($_SESSION['userid'])) {
l::notice("Player '{$_SESSION['login']}' (#{$_SESSION['userid']}) logged out");
}
session::kill();
$this->output = "logout";
}
}
?>