示例#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["instances-tabs"])){tabs();exit;}
	
	if(isset($_GET["instances-list"])){instances_list();exit;}
	if(isset($_GET["instances-search"])){instances_search();exit;}
	
	if(isset($_GET["crossroads-list"])){crossroads_list();exit;}
	if(isset($_GET["crossroads-search"])){crossroads_search();exit;}
	if(isset($_GET["crossroads-delete"])){crossroads_delete();exit;}
	
	
	if(isset($_GET["instance-duplicate-form"])){instances_duplicate_form();exit;}
	if(isset($_GET["add-new-instance"])){instances_duplicate_perform();exit;}
	if(isset($_GET["status-instance"])){instance_status();exit;}
	if(isset($_GET["delete"])){instance_delete();exit;}
	if(isset($_GET["rebuild-instances"])){rebuild_instances();exit;}
	js();
	
	
function js(){
	$page=CurrentPageName();
		echo"document.getElementById('BodyContent').innerHTML='<center><img src=img/wait_verybig.gif></center>';
		$('#BodyContent').load('$page?instances-tabs=yes');";	
}
    exit;
}
if (isset($_GET["instances-search"])) {
    instances_search();
    exit;
}
if (isset($_GET["crossroads-list"])) {
    crossroads_list();
    exit;
}
if (isset($_GET["crossroads-search"])) {
    crossroads_search();
    exit;
}
if (isset($_GET["crossroads-delete"])) {
    crossroads_delete();
    exit;
}
if (isset($_POST["delete-system-instance"])) {
    instance_system_delete();
    exit;
}
if (isset($_POST["DisableInstance"])) {
    instance_system_disable();
    exit;
}
if (isset($_GET["instance-duplicate-form"])) {
    instances_duplicate_form();
    exit;
}
if (isset($_GET["add-new-instance"])) {