Files
Kleeja/includes/adm/b_lgoutcp.php

32 lines
482 B
PHP
Raw Permalink Normal View History

2018-01-09 02:09:07 +03:00
<?php
/**
*
* @package adm
2020-04-11 22:45:48 +02:00
* @copyright (c) 2007 Kleeja.net
2018-01-09 02:09:07 +03:00
* @license ./docs/license.txt
*
*/
// not for directly open
2019-05-03 23:52:08 +03:00
if (! defined('IN_ADMIN'))
2018-01-09 02:09:07 +03:00
{
2019-05-03 23:52:08 +03:00
exit();
2018-01-09 02:09:07 +03:00
}
//check _GET Csrf token
2019-05-03 23:52:08 +03:00
if (! kleeja_check_form_key_get('GLOBAL_FORM_KEY'))
2018-01-09 02:09:07 +03:00
{
2019-05-03 23:52:08 +03:00
kleeja_admin_err($lang['INVALID_GET_KEY'], true, $lang['ERROR'], true, basename(ADMIN_PATH), 2);
2018-01-09 02:09:07 +03:00
}
//remove just the administator session
if ($usrcp->logout_cp())
{
2019-05-03 23:52:08 +03:00
redirect($config['siteurl']);
$SQL->close();
exit;
2018-01-09 02:09:07 +03:00
}