Пример #1
0
    exit;
}
if (isset($_GET["syslog-query"])) {
    SYSLOG_QUERY();
    exit;
}
if (isset($_GET["aptcheck"])) {
    aptcheck();
    exit;
}
if (isset($_GET["SetServerTime"])) {
    SetServerTime();
    exit;
}
if (isset($_GET["CompileSSHDRules"])) {
    CompileSSHDRules();
    exit;
}
if (isset($_GET["ou-ldap-import-execute"])) {
    LDAP_IMPORT_EXEC();
    exit;
}
if (isset($_GET["sys-sync-paquages"])) {
    SysSyncPaquages();
    exit;
}
if (isset($_GET["LaunchRemoteInstall"])) {
    LaunchRemoteInstall();
    exit;
}
if (isset($_GET["restart-web-server"])) {
Пример #2
0
if(isset($_GET["PostfixAutoBlockLoadFW"])){firewall_popup();exit;}
if(isset($_GET["PostfixAutoBlockLoadFWRules"])){echo firewall_rules();exit;}
if(isset($_GET["PostfixEnableFwRule"])){PostfixEnableFwRule();exit;}
if(isset($_GET["PostfixEnableLog"])){PostfixEnableLog();exit;}
if(isset($_GET["compile"])){PostfixAutoBlockCompile();exit;}
if(isset($_GET["compileCheck"])){PostfixAutoBlockCompileCheck();exit;}
if(isset($_GET["DeleteSMTPIptableRule"])){firewall_delete_rule();exit;}
if(isset($_GET["popup-white"])){popup_white();exit;}
if(isset($_GET["DeleteSMTPAllIptableRules"])){firewall_delete_all_rules();exit;}
if(isset($_GET["PostfixAutoBlockParameters"])){popup_parameters();exit;}
if(isset($_GET["PostfixAutoBlockParametersSave"])){popup_parameters_save();exit;}
if(isset($_GET["DeleteAllIpTablesRules"])){DeleteAllIpTablesRules();exit;}
if(isset($_GET["InstantIptablesEventAll"])){InstantIptablesEventAll();exit;}
if(isset($_GET["EventDisableIpTables"])){EventDisableIpTables();exit;}
if(isset($_GET["firewall-rules-list"])){firewall_rules();exit;}
if(isset($_GET["CompileSSHDRules"])){CompileSSHDRules();exit;}
js();


function InstantIpTablesInLeftMenu(){
	$sock=new sockets();
	$sock->SET_INFO("InstantIpTablesInLeftMenu",$_GET["InstantIpTablesInLeftMenu"]);
}

function firewall_delete_rule(){
	$users=new usersMenus();
	$tpl=new templates();
	if(!$users->AsPostfixAdministrator){
		$error=$tpl->javascript_parse_text("{ERROR_NO_PRIVS}");
		echo "$error";
		die();