Beispiel #1
0
    exit;
}
if (isset($_POST["aclrulename"])) {
    acl_main_rule_edit();
    exit;
}
if (isset($_POST["ApplySquid"])) {
    squid_compile();
    exit;
}
if (isset($_GET["csv"])) {
    output_scv();
    exit;
}
if (isset($_POST["EnableSquidPortsRestrictions"])) {
    EnableSquidPortsRestrictions();
    exit;
}
if (isset($_POST["SquidAllowSmartPhones"])) {
    SquidAllowSmartPhones();
    exit;
}
page();
function acl_group_js()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $q = new mysql_squid_builder();
    header("content-type: application/x-javascript");
    $ID = $_GET["ID"];
    if (!is_numeric($ID)) {
	if(isset($_GET["acls-list"])){acl_list();exit;}
	if(isset($_GET["Addacl-js"])){acl_js();exit;}
	if(isset($_GET["Addacl-group"])){acl_group_js();exit;}
	if(isset($_GET["acl-rule-settings-group"])){acl_group_settings();exit;}
	if(isset($_GET["acl-rule-group"])){page();exit;}
	
	if(isset($_GET["acl-rule-tabs"])){acl_rule_tab();exit;}
	if(isset($_GET["acl-rule-settings"])){acl_rule_settings();exit;}
	if(isset($_POST["acl-rule-delete"])){acl_rule_delete();exit;}
	if(isset($_POST["acl-rule-enable"])){acl_rule_enable();exit;}
	if(isset($_POST["acl-rule-move"])){acl_rule_move();exit;}
	if(isset($_POST["acl-rule-order"])){acl_rule_order();exit;}
	if(isset($_POST["aclrulename"])){acl_main_rule_edit();exit;}
	if(isset($_POST["ApplySquid"])){squid_compile();exit;}
	if(isset($_GET["csv"])){output_scv();exit;}
	if(isset($_POST["EnableSquidPortsRestrictions"])){EnableSquidPortsRestrictions();exit;}
	if(isset($_POST["SquidAllowSmartPhones"])){SquidAllowSmartPhones();exit;}
	
	page();

	
function acl_group_js(){
	$page=CurrentPageName();
	$tpl=new templates();
	$q=new mysql_squid_builder();
	header("content-type: application/x-javascript");
	$ID=$_GET["ID"];
	if(!is_numeric($ID)){$ID=-1;}
	if($ID<1){
		$title=$tpl->javascript_parse_text("{new_rule}");
	}else{