exit;
}
if (isset($_GET["rulemd5"])) {
    main_rule();
    exit;
}
if (isset($_GET["items-rules"])) {
    items();
    exit;
}
if (isset($_GET["diclaimers-rule"])) {
    disclaimer_rule();
    exit;
}
if (isset($_POST["mailfrom"])) {
    rule_add();
    exit;
}
if (isset($_POST["del-zmd5"])) {
    rule_delete();
    exit;
}
js();
function js()
{
    header("content-type: application/x-javascript");
    $tpl = new templates();
    $page = CurrentPageName();
    $title = $tpl->javascript_parse_text("{alternate_servers}");
    echo "YahooWin2(990,'{$page}?popup=yes','{$title}')";
}
Exemple #2
0
     } elseif ($cmd == 'rf_inst') {
         rule_file_insert($_POST, $db);
         rule_file_list($tmp, $pages[$sub_menu]);
     } elseif ($cmd == 'rf_edit') {
         rule_file_edit($_POST, $db);
         rule_file_list($tmp, $pages[$sub_menu]);
     } elseif ($cmd == 'rf_deleted') {
         rule_file_deleted($_GET['id'], $db);
         rule_file_list($tmp, $pages[$sub_menu]);
     } else {
         rule_file_list($tmp, $pages[$sub_menu]);
     }
     break;
 case "rule":
     if ($cmd == 'rule_add') {
         rule_add($tmp, $pages[$cmd], $_GET['id']);
     } elseif ($cmd == 'validity') {
         $db->setRuleValidity($_GET['id'], $_GET['v']);
         rule_list($tmp, $pages[$sub_menu]);
     } elseif ($cmd == 'rule_inst') {
         rule_insert($_POST, $db);
         rule_list($tmp, $pages[$sub_menu]);
     } elseif ($cmd == 'rule_edit') {
         rule_edit($_POST, $db);
         rule_list($tmp, $pages[$sub_menu]);
     } elseif ($cmd == 'rule_deleted') {
         rule_deleted($_GET['id'], $db);
         rule_list($tmp, $pages[$sub_menu]);
     } else {
         rule_list($tmp, $pages[$sub_menu]);
     }