mirror of
https://github.com/kleeja-official/kleeja.git
synced 2025-12-14 20:19:43 +01:00
32 lines
482 B
PHP
Executable File
32 lines
482 B
PHP
Executable File
<?php
|
|
/**
|
|
*
|
|
* @package adm
|
|
* @copyright (c) 2007 Kleeja.net
|
|
* @license ./docs/license.txt
|
|
*
|
|
*/
|
|
|
|
|
|
// not for directly open
|
|
if (! defined('IN_ADMIN'))
|
|
{
|
|
exit();
|
|
}
|
|
|
|
//check _GET Csrf token
|
|
if (! kleeja_check_form_key_get('GLOBAL_FORM_KEY'))
|
|
{
|
|
kleeja_admin_err($lang['INVALID_GET_KEY'], true, $lang['ERROR'], true, basename(ADMIN_PATH), 2);
|
|
}
|
|
|
|
|
|
//remove just the administator session
|
|
if ($usrcp->logout_cp())
|
|
{
|
|
redirect($config['siteurl']);
|
|
$SQL->close();
|
|
|
|
exit;
|
|
}
|