Code: Select all
/*
* Function used to conduct admin session duties
* Added as of 1.0.8
* Deperciated 1.1
*/
function initSessionAdmin($option, $task) {
global $_VERSION, $mosConfig_admin_expired;
// logout check
if ($option == 'logout') {
require $GLOBALS['mosConfig_absolute_path'] .'/administrator/logout.php';
exit();
}
$site = $GLOBALS['mosConfig_live_site'];