Example #1
0
    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"])) {
    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;
}
if (isset($_POST["SQUID_PORT_CONTENT"])) {
Example #2
0
	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');";
	echo $html;