include_once('ressources/class.maincf.multi.inc'); $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(){
sa_update_check(); die; } x_headers(); x_bounce(); if ($argv[1] == '--spf') { spf(); die; } if ($argv[1] == '--dkim') { dkim(); amavis_reload(); die; } if ($argv[1] == '--dnsbl') { dnsbl(); die; } if ($argv[1] == '--DecodeShortURLs') { DecodeShortURLs(); amavis_reload(); die; } if ($argv[1] == '--trusted') { TrustedNetworks(); amavis_reload(); die; } if ($argv[1] == '--whitelist') { SaveConf(); amavis_reload();
$user=new usersMenus(); if(!$user->spamassassin_installed){ write_syslog("want to change spamassassin settings but not installed",__FILE__); die(); } if(!is_file($user->spamassassin_conf_path)){ write_syslog("want to change spamassassin settings but could not stat main configuration file",__FILE__); } x_headers(); x_bounce(); if($argv[1]=='--spf'){spf();die();} if($argv[1]=='--dkim'){dkim();amavis_reload();die();} if($argv[1]=='--dnsbl'){dnsbl();die();} if($argv[1]=='--DecodeShortURLs'){DecodeShortURLs();amavis_reload();die();} if($argv[1]=='--trusted'){TrustedNetworks();amavis_reload();die();} if($argv[1]=='--whitelist'){SaveConf();amavis_reload();die();} if($argv[1]=='--spam-tests'){SpamTests($argv[2]);die();} echo "Starting......: spamassassin starting building configuration\n"; SaveConf(); echo "Starting......: Check Relay Country plugin\n"; RelayCountryPlugin(); echo "Starting......: Check Decode Short urls\n"; DecodeShortURLs(); echo "Starting......: Check Trusted networks\n"; TrustedNetworks(); WrongMX(); FuzzyOcr();