예제 #1
0
    die("wrong privileges");
}
if (isset($_POST["DELETEALL"])) {
    DELETEALL();
    exit;
}
if (isset($_POST["COMMAND"])) {
    COMMANDS_SAVE();
    exit;
}
if (isset($_POST["zmd5"])) {
    save_service();
    exit;
}
if (isset($_GET["script"])) {
    echo echo_js();
    exit;
}
if (isset($_GET["main_page"])) {
    echo main_page();
    exit;
}
if (isset($_GET["service-info"])) {
    echo service_info();
    exit;
}
if (isset($_GET["add_option_service"])) {
    add_option_service();
    exit;
}
if (isset($_POST["del_option_service"])) {
예제 #2
0
<?php

include_once('ressources/class.main_cf.inc');

$usersmenus=new usersMenus();
if($usersmenus->AsPostfixAdministrator==true){}else{die("wrong privileges");}	


if(isset($_GET["service_key"])){save_service();exit;}
if(isset($_GET["main"])){main_switch();exit;}
if(isset($_GET["script"])){echo echo_js();exit;}
if(isset($_GET["main_page"])){echo main_page();exit;}
if(isset($_GET["service-info"])){echo service_info();exit;}
if(isset($_GET["add_option_service"])){add_option_service();exit;}
if(isset($_GET["del_option_service"])){del_option_service();exit;}
if(isset($_GET["del_service"])){del_service();exit;}
if(isset($_GET["service-ssl"])){main_ssl();exit;}
if(isset($_GET["enable_smtps"])){enable_smtps();exit;}
if(isset($_GET["RebuildMaster"])){rebuild_master();exit;}




die();




function script_ssl(){
	$page=CurrentPageName();
	$tpl=new templates();