示例#1
0
    exit;
}
if (isset($_GET["multidomains"])) {
    echo multidomains_popup();
    exit;
}
if (isset($_GET["orangefr"])) {
    echo orangefr_popup();
    exit;
}
if (isset($_GET["popup-antispam"])) {
    antispam_popup();
    exit;
}
if (isset($_GET["popup-milter-behavior"])) {
    milter_behavior_popup();
    exit;
}
if (isset($_GET["popup-backup-behavior"])) {
    backup_popup();
    exit;
}
if (isset($_GET["enable_as_modules"])) {
    antispam_popup_save();
    exit;
}
if (isset($_GET["enable_milter"])) {
    milter_behavior_save();
    exit;
}
if (isset($_GET["popup-auth"])) {
示例#2
0
	include_once('ressources/class.users.menus.inc');
	
	
$usersmenus=new usersMenus();
if(!$usersmenus->AsAnAdministratorGeneric){
	$tpl=new templates();
	$alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
	echo "alert('$alert');";
	die();	
}

if(isset($_GET["js"])){popup_js();exit;}
if(isset($_GET["popup"])){popup_index();exit;}
if(isset($_GET["main"])){main_switch();exit;}
if(isset($_GET["status"])){services_status();exit;}
if(isset($_GET["popup-milter-behavior"])){milter_behavior_popup();exit;}
if(isset($_GET["enable_as_modules"])){antispam_popup_save();exit;}
if(isset($_GET["enable_milter"])){milter_behavior_save();exit;}
if(isset($_GET["smb-status"])){services_status();exit;}

die("wrong query");



function popup_js(){
	if(GET_CACHED(__FILE__,__FUNCTION__,null)){return true;}
	$page=CurrentPageName();
	$js1=file_get_contents("js/samba.js");
	$js2=file_get_contents("js/json.js");
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body('{APP_SAMBA}');