Example #1
0
	if(isset($_GET["ApplyDansGuardianSettings"])){main_rules_apply_conf();exit;}
	if(isset($_GET["deleteMasterRule"])){main_rules_delete();exit;}
	if(isset($_GET["find-rule"])){xfindrule();exit;}
	
	
	if(isset($_GET["js"])){popup_js();exit;}
	if(isset($_GET["dansguardian-popup"])){popup_tabs();exit;}
	if(isset($_GET["popup-index"])){popup_dansguardian_main();exit;}
	
	
	if(isset($_GET["popup-databases"])){popup_databases();exit;}
	
	
	if(isset($_GET["popup-rules"])){popup_rules();exit;}
	if(isset($_GET["pop-rules-list"])){echo popup_rules_list();exit;}
	if(isset($_GET["popup-rules-list"])){echo popup_rules_list();exit;}
	
	if(isset($_GET["popup-authentication"])){popup_authentication();exit;}
	
	
	if(isset($_GET["popup-restrictions"])){echo popup_rules_restrictions();exit;}
	if(isset($_GET["popup-files"])){echo popup_rules_files();exit;}
	if(isset($_GET["CompilePolicies"])){echo compile_js();exit;}
	if(isset($_GET["dansguardian-compile"])){echo compile_page();exit;}
	if(isset($_GET["compile-policies-1"])){compile_policies_1();EXIT;}
	if(isset($_GET["compile-policies-2"])){compile_policies_2();EXIT;}
	
	if(isset($_GET["popup-group-ip"])){ip_group_page();exit;}
	
	if(isset($_GET["add-address-step1"])){ip_group_wizard();exit;}
	if(isset($_GET["add-address-js"])){ip_group_js();exit;}
Example #2
0
    exit;
}
if (isset($_GET["popup-databases"])) {
    popup_databases();
    exit;
}
if (isset($_GET["popup-rules"])) {
    popup_rules();
    exit;
}
if (isset($_GET["pop-rules-list"])) {
    echo popup_rules_list();
    exit;
}
if (isset($_GET["popup-rules-list"])) {
    echo popup_rules_list();
    exit;
}
if (isset($_GET["popup-authentication"])) {
    popup_authentication();
    exit;
}
if (isset($_GET["popup-restrictions"])) {
    echo popup_rules_restrictions();
    exit;
}
if (isset($_GET["popup-files"])) {
    echo popup_rules_files();
    exit;
}
if (isset($_GET["CompilePolicies"])) {
function popup_rules()
{
    $rules = popup_rules_list();
    $html = "\n\t<input type='hidden' id='dans_add_rule_text' value='{dans_add_rule_text}'>\n\t<div style='text-align:right;width:100%'>\n\t" . button("{add_rule}", "javascript:dansguardian_addrule('{$hostname}');") . "\n\t</div>\n\t<div id='dans_rules_content'>\n\t</div>\n\t<div id='rules_lists' style='width:100%;height:300px;overflow:auto'>\n\t{$rules}\n\t\n\t</div>\n\t<div style='text-align:right;width:100%'>\n\t" . button("{add_rule}", "javascript:dansguardian_addrule('{$hostname}');") . "\n\t\n\t</div>\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}