示例#1
0
文件: rules.php 项目: AviMoto/webekci
     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]);
     }
     break;
 case "rdfile":
     if ($cmd == 'rdf_add') {
         rule_data_file_add($tmp, $pages[$cmd], $_GET['id']);
     } elseif ($cmd == 'validity') {
         $db->setDataFileValidity($_GET['id'], $_GET['v']);
         rule_data_file_list($tmp, $pages[$sub_menu]);
     } elseif ($cmd == 'rdf_inst') {
         rule_data_file_insert($_POST, $db);
         rule_data_file_list($tmp, $pages[$sub_menu]);
     } elseif ($cmd == 'rdf_edit') {
         rule_data_file_edit($_POST, $db);
         rule_data_file_list($tmp, $pages[$sub_menu]);
     } elseif ($cmd == 'rdf_deleted') {
示例#2
0
include_once $dirname . '/ressources/class.squid.inc';
include_once $dirname . '/ressources/class.ActiveDirectory.inc';
if (isset($_GET["rule-js"])) {
    rule_js();
    exit;
}
if (isset($_GET["rule-tab"])) {
    rule_tab();
    exit;
}
if (isset($_GET["rule-popup"])) {
    rule_popup();
    exit;
}
if (isset($_GET["rule-items-list"])) {
    rule_list();
    exit;
}
if (isset($_GET["rule-categories"])) {
    categories();
    exit;
}
if (isset($_GET["categories-list"])) {
    categories_list();
    exit;
}
if (isset($_GET["delete-js"])) {
    delete_js();
    exit;
}
if (isset($_GET["enable-js"])) {