Esempio n. 1
0
if ($user->SQUID_INSTALLED == false) {
    if (!$user->WEBSTATS_APPLIANCE) {
        $tpl = new templates();
        echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
        die;
        exit;
    }
}
if ($user->AsSquidAdministrator == false) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    die;
    exit;
}
if (isset($_GET["x-save-plugins"])) {
    x_save_plugins();
    exit;
}
if (isset($_POST["positive_dns_ttl"])) {
    dns_popup_cache_save();
    exit;
}
if ($_GET["script"] == "network") {
    echo network_js();
    exit;
}
if ($_GET["script"] == "listen_port") {
    echo listen_port_js();
    exit;
}
if ($_GET["script"] == "visible_hostname") {
Esempio n. 2
0
	$user=new usersMenus();

	if($user->SQUID_INSTALLED==false){
		if(!$user->WEBSTATS_APPLIANCE){
			$tpl=new templates();
			echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
			die();exit();
		}
	}
	
	if($user->AsSquidAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}	
	if(isset($_GET["x-save-plugins"])){x_save_plugins();exit;}
	if(isset($_POST["positive_dns_ttl"])){dns_popup_cache_save();exit;}
	if($_GET["script"]=="network"){echo network_js();exit;}
	if($_GET["script"]=="listen_port"){echo listen_port_js();exit;}
	if($_GET["script"]=="visible_hostname"){echo visible_hostname_js();exit;}
	if($_GET["script"]=="ldap"){echo ldap_js();exit;}
	if($_GET["script"]=="dns"){echo dns_js();exit;}
	
	
	//plugins
	if($_GET["script"]=="plugins"){echo plugins_js();exit;}
	if($_GET["content"]=="plugins"){echo plugins_popup();exit;}
	if(isset($_GET["enable_plugins"])){plugins_save();exit;}
	
	
	if($_GET["script"]=="url_regex"){echo url_regex_js();exit;}