コード例 #1
0
ファイル: smtp.rules.php プロジェクト: brucewu16899/artica
<?php

session_start();
include_once 'ressources/class.templates.inc';
include_once "ressources/class.main_cf_filtering.inc";
$users = new usersMenus();
if ($users->AsPostfixAdministrator == false) {
    header('location:users.index.php');
    exit;
}
if (isset($_GET["check_client_access_add"])) {
    check_client_access_add();
    exit;
}
if (isset($_GET["check_client_access_del"])) {
    check_client_access_del();
    exit;
}
if (isset($_GET["import_headers_regex"])) {
    import_headers_regex();
    exit;
}
if (isset($_GET["edit_postfix_regex_rule"])) {
    echo postfix_regex_rule_edit();
    exit;
}
if (isset($_POST["EditPostfixRegexRule"])) {
    postfix_regex_rule_save();
    exit;
}
if (isset($_GET["PostfixRegexDelete"])) {
コード例 #2
0
ファイル: smtp.rules.php プロジェクト: brucewu16899/1.6.x
<?php
session_start();
include_once('ressources/class.templates.inc');
include_once("ressources/class.main_cf_filtering.inc");
$users=new usersMenus();
if($users->AsPostfixAdministrator==false){header('location:users.index.php');exit();}
if(isset($_GET["check_client_access_add"])){check_client_access_add();exit;}
if(isset($_GET["check_client_access_del"])){check_client_access_del();exit;}
if(isset($_GET["import_headers_regex"])){import_headers_regex();exit;}
if(isset($_GET["edit_postfix_regex_rule"])){echo postfix_regex_rule_edit();exit;}
if(isset($_POST["EditPostfixRegexRule"])){postfix_regex_rule_save();exit;}
if(isset($_GET["PostfixRegexDelete"])){postfix_regex_rule_delete();exit;}
if(isset($_GET["delete_headers_regex"])){postfix_regex_rule_deleteall();exit();}
if(isset($_GET["quick_deny_domains"])){macros_quick_deny_domains();exit;}
if(isset($_GET["postfix_regex"])){echo postfix_regex();exit;}
if(isset($_GET["blockips"])){echo postfix_check_client_access();exit;}
if(isset($_GET["ruleform"])){echo rulesdatas();exit;}
if(isset($_GET["ajax"])){echo js();exit;}
if(isset($_GET["load"])){switchpage();exit;}
if(isset($_GET["ajax-page"])){echo mainpage();exit;}

page();


function js(){
$page=CurrentPageName();	
$tpl=new templates();
$title=$tpl->_ENGINE_parse_body('{global_smtp_rules}');
$html="
var hostname_mem;
var innerMem='';