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

17 lines
308 B
PHP

<?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";
}
}
?>