Пример #1
0
    exit;
}
if (isset($_GET["query"])) {
    echo quarantine_query();
    exit;
}
if (isset($_GET["SuperAdmin"])) {
    SuperAdmin();
    exit;
}
if (isset($_GET["SuperAdminQuery"])) {
    SuperAdminQuery();
    exit;
}
if (isset($_GET["quarantine-settings"])) {
    quarantine_ou_settings();
    exit;
}
if (isset($_GET["OuSendQuarantineReports"])) {
    quarantine_ou_settings_save();
    exit;
}
if (isset($_GET["delete-message-id"])) {
    delete_message();
    exit;
}
function GetRights()
{
    $users = new usersMenus();
    if ($users->AsMessagingOrg) {
        return true;
Пример #2
0
if(!GetRights()){
			$tpl=new templates();
			$error="{ERROR_NO_PRIVS}";
			echo $tpl->_ENGINE_parse_body("alert('$error')");
			die();
	}
	
	
if(isset($_GET["js"])){echo quarantine_script();exit;}
if(isset($_GET["popup"])){echo quarantine_index();exit;}
if(isset($_GET["query"])){echo quarantine_query();exit;}


if(isset($_GET["SuperAdmin"])){SuperAdmin();exit;}
if(isset($_GET["SuperAdminQuery"])){SuperAdminQuery();exit;}
if(isset($_GET["quarantine-settings"])){quarantine_ou_settings();exit;}
if(isset($_GET["OuSendQuarantineReports"])){quarantine_ou_settings_save();exit;}

if(isset($_GET["delete-message-id"])){delete_message();exit;}

function GetRights(){
	$users=new usersMenus();
	if($users->AsMessagingOrg){return true;}
	if($users->AsQuarantineAdministrator){return true;}
	return false;
}

function delete_js(){
	$tpl=new templates();
	$page=CurrentPageName();
	$are_you_sure_to_delete=$tpl->javascript_parse_text("{are_you_sure_to_delete}");