示例#1
0
include_once 'ressources/class.groups.inc';
include_once 'ressources/class.squid.inc';
include_once 'ressources/class.blackboxes.inc';
$usersmenus = new usersMenus();
if (!$usersmenus->AsAnAdministratorGeneric) {
    $tpl = new templates();
    $alert = $tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
    echo "alert('{$alert}');";
    die;
}
if (isset($_POST["visible_hostname"])) {
    visible_hostname_save();
    exit;
}
if (isset($_GET["visible-hostname-js"])) {
    visible_hostname_js();
    exit;
}
if (isset($_POST["reconfigure-squid"])) {
    reconfigure_squid();
    exit;
}
if (isset($_POST["restart-squid"])) {
    restart_squid();
    exit;
}
if (isset($_POST["reconf-squid"])) {
    reconf_squid();
    exit;
}
if (isset($_GET["filters-specific"])) {
示例#2
0
			$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;}
	if(isset($_GET["url_regex_list"])){echo url_regex_popup_list();exit;}
	
	
	if($_GET["script"]=="user-agent-ban"){echo user_agent_ban_js();exit;}