Пример #1
0
	
	
$users=new usersMenus();
if(!$users->AsPostfixAdministrator){
	$tpl=new templates();
	$ERROR_NO_PRIVS=$tpl->javascript_parse_text("{ERROR_NO_PRIVS}");
	echo "alert('$ERROR_NO_PRIVS');";
	die();
	
}

	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["index"])){index();exit;}
	if(isset($_GET["settings"])){parameters();exit;}
	if(isset($_GET["dnsbl"])){dnsbl();exit;}
	if(isset($_GET["dnsbl-list"])){dnsbl_list();exit;}
	if(isset($_GET["dnsbl-add"])){dnsbl_add();exit;}
	if(isset($_GET["dnsbl-delete"])){dnsbl_delete();exit;}
	if(isset($_GET["postscreen_dnsbl_action"])){saveConfig();exit;}
	if(isset($_GET["postscreen_bare_newline_enable"])){saveConfig();exit;}
	
	
	
	if(isset($_GET["EnablePostScreen"])){EnablePostScreen_edit();exit;}

js();



function js(){
	$page=CurrentPageName();
Пример #2
0
    exit;
}
if (isset($_GET["index"])) {
    index();
    exit;
}
if (isset($_GET["settings"])) {
    parameters();
    exit;
}
if (isset($_GET["dnsbl"])) {
    dnsbl();
    exit;
}
if (isset($_GET["dnsbl-list"])) {
    dnsbl_list();
    exit;
}
if (isset($_GET["dnsbl-add"])) {
    dnsbl_add();
    exit;
}
if (isset($_GET["dnsbl-delete"])) {
    dnsbl_delete();
    exit;
}
if (isset($_GET["postscreen_dnsbl_action"])) {
    saveConfig();
    exit;
}
if (isset($_GET["postscreen_bare_newline_enable"])) {
Пример #3
0
function popup_dnsbl()
{
    $policy = new policydweight();
    $page = CurrentPageName();
    $form = "\n<div id='ffmpolicy2Div'>\n<form name='ffmpolicy2'>\n<table style='width:100%'>\n<tr>\n\t<td class=legend>{MAXDNSBLHITS}:</td>\n\t<td>" . Field_text("MAXDNSBLHITS", $policy->main_array["MAXDNSBLHITS"], "width:30px") . "</td>\n</tr>\n<tr>\n\t<td class=legend>{MAXDNSBLSCORE}:</td>\n\t<td>" . Field_text("MAXDNSBLSCORE", $policy->main_array["MAXDNSBLSCORE"], "width:30px") . "</td>\n</tr>\n<tr>\n\t<td colspan=2 align='right'>\n\t\t<hr>\n\t\t<input type='button' OnClick=\"javascript:ParseForm('ffmpolicy2','{$page}',false,false,false,'ffmpolicy2Div',null,x_ffmpolicy3);\" value='{apply}&nbsp;&raquo;'>\n\t</td>\n</tr>\n</table>\n</form>\n</div>\n";
    $form = RoundedLightWhite($form);
    $html = "<H1>{DNSBL_settings}</H1>\n\t{$form}<br>\n\t<div id='dnsbllistpolicd' style='width:100%;height:450px;overflow:auto'>\n\t" . dnsbl_list() . "</div>\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
Пример #4
0
function popup_dnsbl()
{
    $policy = new policydweight();
    $page = CurrentPageName();
    $html = "\n<div id='ffmpolicy2Div' style='width:98%' class=form>\n\t<form name='ffmpolicy2'>\n\t\t<table style='width:100%'>\n\t\t\t<tr>\n\t\t\t\t<td class=legend style='font-size:22px'>{MAXDNSBLHITS}:</td>\n\t\t\t\t<td>" . Field_text("MAXDNSBLHITS", $policy->main_array["MAXDNSBLHITS"], "width:110px;font-size:22px") . "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td class=legend style='font-size:22px'>{MAXDNSBLSCORE}:</td>\n\t\t\t\t<td>" . Field_text("MAXDNSBLSCORE", $policy->main_array["MAXDNSBLSCORE"], "width:110px;font-size:22px") . "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td colspan=2 align='right'>\n\t\t\t\t\t<hr>\n\t\t\t\t\t" . button("{apply}", "ParseForm('ffmpolicy2','{$page}',false,false,false,'ffmpolicy2Div',null,x_ffmpolicy3);", 42) . "\n\t\t\t\t\t\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t</table>\n\t</form>\n</div>\n\t\t\t\t\t\t\t\n<div id='dnsbllistpolicd' style='width:98%;height:850px;overflow:auto' classs=form>" . dnsbl_list() . "</div>\n<script>\nvar x_ffmpolicy3= function (obj) {\n\tvar results=obj.responseText;\n\talert(results);\n\tRefreshTab('main_policydaemon');\n\t}\n</script>\n";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}