Example #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["settings"])){settings();exit;}
	
	if(isset($_GET["whitelist"])){whitelist();exit;}
	if(isset($_GET["whitelist-list"])){whitelist_list();exit;}
	if(isset($_GET["whitelist-add"])){whitelist_add();exit;}
	if(isset($_GET["whitelist-del"])){whitelist_del();exit;}
	if(isset($_GET["SPF_PASS_1"])){SAVE_SCORES();exit;}
	
js();


function js(){
	$page=CurrentPageName();
	$tpl=new templates();
	
	$title=$tpl->_ENGINE_parse_body("{APP_SPF}");
	
	
	$html="
	
	function spamass_spf_load(){
			YahooWin2('650','$page?popup=yes','$title');
Example #2
0
    exit;
}
if (isset($_GET["whitelist-list"])) {
    whitelist_list();
    exit;
}
if (isset($_GET["whitelist-add"])) {
    whitelist_add();
    exit;
}
if (isset($_GET["whitelist-del"])) {
    whitelist_del();
    exit;
}
if (isset($_GET["SPF_PASS_1"])) {
    SAVE_SCORES();
    exit;
}
js();
function js()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $title = $tpl->_ENGINE_parse_body("{APP_SPF}");
    $html = "\n\t\n\tfunction spamass_spf_load(){\n\t\t\tYahooWin2('650','{$page}?popup=yes','{$title}');\n\t\t}\n\t\n\tspamass_spf_load();";
    echo $html;
}
function popup()
{
    $tpl = new templates();
    $page = CurrentPageName();