Example #1
0
    exit;
}
if (isset($_GET["ports"])) {
    ports();
    exit;
}
if (isset($_GET["ssl"])) {
    ssl();
    exit;
}
if (isset($_GET["meta"])) {
    meta();
    exit;
}
if (isset($_GET["acls"])) {
    acls();
    exit;
}
if (isset($_GET["acls-extern"])) {
    acls_extern();
    exit;
}
if (isset($_GET["caches"])) {
    caches();
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_GET["show-content-group-js"])) {
Example #2
0
	header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
	header("Cache-Control: no-cache, must-revalidate");
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');

	
	
	$user=new usersMenus();
	if($user->AsSquidAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}	
	
	if(isset($_GET["tabs"])){tabs();exit;}
	if(isset($_GET["acls"])){acls();exit;}
	if(isset($_GET["caches"])){caches();exit;}
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["show-content-group-js"])){show_content_group_js();exit;}
	if(isset($_GET["show-content-group"])){show_content_group();exit;}
	if(isset($_POST["DenySquidWriteConf"])){DenySquidWriteConf();exit;}
	if(isset($_POST["SQUID_CONTENT"])){SQUID_CONTENT();exit;}
	js();
	
	
function js(){
	$page=CurrentPageName();
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body("{APP_SQUID}::{configuration_file}");
	header("content-type: application/x-javascript");
	$html="YahooWin4('1200','$page?tabs=yes','$title');";