Файл: adultscript-2.0.3-pro/files/admin/logout.php
Строк: 22
<?php
define('_VALID', true);
define('_ADMIN', true);
require realpath('../libraries/bootstrap.php');
if (VAuth::loggedin()) {
unset($_SESSION['user_id']);
unset($_SESSION['group_id']);
unset($_SESSION['username']);
unset($_SESSION['password']);
unset($_SESSION['email']);
unset($_SESSION['name']);
unset($_SESSION['status']);
unset($_SESSION['gender']);
unset($_SESSION['avatar']);
unset($_SESSION['login_date']);
VCookie::delete('username');
VCookie::delete('password');
VF::factory('session')->regenerate();
}
VF::redirect(ADMIN_URL.'/index.php');
?>