示例#1
0
	
	
	
	$user=new usersMenus();
	if($user->AsPostfixAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["events"])){events();exit;}
	if(isset($_GET["status"])){status();exit;}
	if(isset($_GET["status-service"])){status_service();exit;}
	if(isset($_GET["settings"])){settings();exit;}
	if(isset($_GET["backend-form-add"])){backend_form_add();exit;}
	if(isset($_GET["servername"])){backend_add();exit;}
	if(isset($_GET["delete-servername"])){backend_delete();exit;}
	if(isset($_GET["backends-servers"])){backend_list();exit;}
	if(isset($_GET["EnableCrossRoads"])){SAVECONF();exit;}
	if(isset($_GET["cross-events"])){events_details();exit;}
	if(isset($_GET["cross-notify"])){cross_notify();exit;}
js();	
	
	
function js(){
$page=CurrentPageName();
$users=new usersMenus();
$tpl=new templates();
$title=$tpl->_ENGINE_parse_body('{APP_CROSSROADS}');
$add_backend_server=$tpl->_ENGINE_parse_body('{add_backend_server}');
示例#2
0
    exit;
}
if (isset($_GET["status"])) {
    status();
    exit;
}
if (isset($_GET["status-service"])) {
    status_service();
    exit;
}
if (isset($_GET["settings"])) {
    settings();
    exit;
}
if (isset($_GET["backend-form-add"])) {
    backend_form_add();
    exit;
}
if (isset($_GET["servername"])) {
    backend_add();
    exit;
}
if (isset($_GET["delete-servername"])) {
    backend_delete();
    exit;
}
if (isset($_GET["backends-servers"])) {
    backend_list();
    exit;
}
if (isset($_GET["EnableCrossRoads"])) {