Пример #1
0
{
	include ($ari->module->admindir() . DIRECTORY_SEPARATOR  . "login_ajax.php");
	
}
break;

case "logout": 
{

	
	if (!is_a($ari->user, 'oob_user'))
	{
		header( "Location: " . $ari->get("adminaddress") . '/');
		exit; 
	}
	admin_session_state::clear_tab_cache();	 	
	$ari->user->logout();	
	
}	
break;
case "logoutsave": 
{

	
	if (!is_a($ari->user, 'oob_user'))
	{
		header( "Location: " . $ari->get("adminaddress") . '/');
		exit; 
	}	
	$ari->user->logout();	
	
Пример #2
0
<?php

global $ari;
$ari->popup = 1;
if (!isset($_POST['tab_id'])) {
    throw new OOB_Exception_400("La variable [tab_id] no esta definida");
}
$tab_id = $_POST['tab_id'];
if ($tab_cache = new admin_session_state()) {
    if ($tab_cache->clear_tab_cache($tab_id)) {
        echo true;
    } else {
        echo false;
    }
}