Beispiel #1
0
if ($user->AsSquidAdministrator == false) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    die;
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_GET["edit-proxy-parent"])) {
    parent_config();
    exit;
}
if (isset($_GET["SaveParentProxy"])) {
    parent_save();
    exit;
}
if (isset($_GET["edit-proxy-parent-options"])) {
    parent_options_popup();
    exit;
}
if (isset($_GET["edit-proxy-parent-options-explain"])) {
    parent_options_explain();
    exit;
}
if (isset($_GET["extract-options"])) {
    extract_options();
    exit;
}
if (isset($_POST["AddSquidParentOptionOrginal"])) {
	$user=new usersMenus();
	
	if($user->AsSquidAdministrator==false){
		$tpl=new templates();
		echo "<H1>". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."<H1>";
		die();exit();
	}	
	
	
	if(isset($_GET["js"])){js();exit;}
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["edit-proxy-parent-js"])){parent_config_js();exit;}
	if(isset($_GET["edit-proxy-parent"])){parent_config();exit;}
	if(isset($_GET["edit-proxy-parent-tab"])){parent_tab();exit;}
	if(isset($_GET["edit-proxy-parent-table"])){parent_options_table();exit;}
	if(isset($_GET["SaveParentProxy"])){parent_save();exit;}
	if(isset($_GET["edit-proxy-parent-options"])){parent_options_popup();exit;}
	if(isset($_GET["edit-proxy-parent-options-explain"])){parent_options_explain();exit;}
	if(isset($_GET["extract-options"])){extract_options();exit;}
	if(isset($_POST["AddSquidParentOptionOrginal"])){construct_options();exit;}
	if(isset($_POST["DeleteSquidOption"])){delete_options();exit;}
	if(isset($_GET["parent-list"])){popup_list();exit;}
	if(isset($_GET["DeleteSquidParent"])){parent_delete();exit;}
	if(isset($_GET["EnableParentProxy"])){EnableParentProxy();exit;}
	if(isset($_GET["prefer_direct"])){prefer_direct();exit;}
	if(isset($_GET["nonhierarchical_direct"])){nonhierarchical_direct();exit;}
	if(isset($_GET["parent-list-options"])){extract_options();exit;}
	if(isset($_GET["ActionRun"])){ActionRun();exit;}
	if(isset($_GET["peer_infos"])){$GLOBALS["VERBOSE"]=true;peer_infos();exit;}
popup();