Exemplo n.º 1
0
    exit;
}
if (isset($_GET["roundrobin_ipaddress"])) {
    round_robin_save();
    exit;
}
if (isset($_GET["round-robin-popup"])) {
    round_robin_popup();
    exit;
}
if (isset($_GET["round-robin-list"])) {
    echo round_robin_list();
    exit;
}
if (isset($_GET["round-robin-delete"])) {
    round_robin_delete();
    exit;
}
INDEX();
function VerifyRights()
{
    if ($GLOBALS["VERBOSE"]) {
        $GLOBALS["DEBUG_PRIVS"] = true;
    }
    $usersmenus = new usersMenus();
    if ($usersmenus->AllowChangeDomains) {
        return true;
    }
    if ($usersmenus->AsOrgAdmin) {
        return true;
    }
Exemplo n.º 2
0
	if(isset($_GET["EditRelayDomainIP"])){EditRelayDomain();exit();}
	if(isset($_GET["DeleteRelayDomainName"])){DeleteRelayDomainName();exit;}
	if(isset($_GET["LocalDomainList"])){echo DOMAINSLIST($_GET["ou"]);exit;}
	if(isset($_GET["RelayDomainsList"])){echo RELAY_DOMAINS_LIST($_GET["ou"]);exit;}
	if(isset($_GET["EditInfosLocalDomain"])){echo EditInfosLocalDomain();exit;}
	if(isset($_GET["EditLocalDomain"])){EditLocalDomain();exit();}
	if(isset($_GET["duplicate_local_domain"])){COPY_DOMAINS_SAVE();exit;}
	
	if(isset($_GET["js"])){echo js_script();exit;}
	if(isset($_GET["ajax"])){echo js_popup();exit;}
	
	if(isset($_GET["round-robin"])){round_robin_js();exit;}
	if(isset($_GET["roundrobin_ipaddress"])){round_robin_save();exit;}
	if(isset($_GET["round-robin-popup"])){round_robin_popup();exit;}
	if(isset($_GET["round-robin-list"])){echo round_robin_list();exit;}
	if(isset($_GET["round-robin-delete"])){round_robin_delete();exit;}
	INDEX();
	
	
function VerifyRights(){
	$usersmenus=new usersMenus();
	if($usersmenus->AsMessagingOrg){return true;}
	if(!$usersmenus->AllowChangeDomains){return false;}
}
	
function round_robin_js(){
	$page=CurrentPageName();
	//&ou=$ou&domain=$num
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body('{roundrobin}');