Exemplo n.º 1
0
	include_once('ressources/class.cron.inc');
	include_once('ressources/class.squid.bandwith.inc');
	
	
	$user=new usersMenus();
	if($user->AsDansGuardianAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	
	if(isset($_GET["js"])){js();exit;}

	if(isset($_POST["choose-acl-rule"])){browse_acl_rule_save();exit;}
	
	if(isset($_GET["BandExplainRuleClass"])){bandwith_rule_class_explain();exit;}
	if(isset($_GET["rules"])){rules_popup();exit;}
	if(isset($_GET["rules-add"])){rules_add();exit;}
	if(isset($_GET["rules-del"])){rules_del();exit;}
	if(isset($_GET["rule_name"])){rules_save();exit;}
	if(isset($_GET["rule-id"])){rule_panel();exit;}
	
	
	if(isset($_GET["bandwith-rules-list"])){bandwith_rules_list();exit;}
	if(isset($_GET["bandwith-rule-js"])){bandwith_rule_js();exit;}
	if(isset($_GET["bandwith-rule-tabs"])){bandwith_rule_tabs();exit;}
	if(isset($_GET["bandwith-rule-parameters"])){rules_add();exit;}
	
	if(isset($_GET["bandwith-rule-networks"])){acl_net_popup();exit;}
	if(isset($_GET["bandwith-rule-websites"])){acl_www_popup();exit;}
	if(isset($_GET["bandwith-rule-files"])){acl_file_popup();exit;}
Exemplo n.º 2
0
if ($user->AsDansGuardianAdministrator == false) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    die;
    exit;
}
if (isset($_GET["js"])) {
    js();
    exit;
}
if (isset($_POST["choose-acl-rule"])) {
    browse_acl_rule_save();
    exit;
}
if (isset($_GET["BandExplainRuleClass"])) {
    bandwith_rule_class_explain();
    exit;
}
if (isset($_GET["rules"])) {
    rules_popup();
    exit;
}
if (isset($_GET["rules-add"])) {
    rules_add();
    exit;
}
if (isset($_GET["rules-del"])) {
    rules_del();
    exit;
}
if (isset($_POST["rule_name"])) {