Ejemplo n.º 1
0
include_once 'ressources/class.ejabberd.inc';
if (!VerifyRights()) {
    if ($GLOBALS["VERBOSE"]) {
        echo "VerifyRights -> FALSE<br>\n";
    }
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . " : rights');";
    die;
    exit;
}
if (isset($_GET["remote-domain-add-js"])) {
    remote_domain_js();
    exit;
}
if (isset($_GET["remote-domain-popup"])) {
    remote_domain_popup();
    exit;
}
if (isset($_GET["remote-domain-form"])) {
    remote_domain_form();
    exit;
}
if (isset($_GET["organization-local-domain-list"])) {
    echo DOMAINSLIST($_GET["organization-local-domain-list"]);
    exit;
}
if (isset($_GET["organization-local-domain-list-search"])) {
    echo DOMAINSLIST_SEARCH();
    exit;
}
if (isset($_GET["organization-relay-domain-list"])) {
Ejemplo n.º 2
0
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.artica.inc');
	include_once('ressources/class.auto-aliases.inc');
	include_once('ressources/class.system.network.inc');
	include_once('ressources/class.auto-aliases.inc');
	include_once('ressources/class.mysql.inc');
	
	if(!VerifyRights()){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	
	
	if(isset($_GET["remote-domain-add-js"])){remote_domain_js();exit;}
	if(isset($_GET["remote-domain-popup"])){remote_domain_popup();exit;}
	if(isset($_GET["remote-domain-form"])){remote_domain_form();exit;}
	
	if(isset($_GET["organization-local-domain-list"])){echo DOMAINSLIST($_GET["organization-local-domain-list"]);exit;}
	if(isset($_GET["organization-relay-domain-list"])){echo RELAY_DOMAINS_LIST($_GET["organization-relay-domain-list"]);exit;}
	if(isset($_GET["AddNewInternetDomainDomainName"])){AddNewInternetDomain();exit;}
	if(isset($_GET["AddNewRelayDomainName"])){AddNewRelayDomain();exit;}
	if(isset($_GET["DeleteInternetDomain"])){DeleteInternetDomain();exit;}
	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;}