Example #1
0
header("Expires: 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';
include_once 'ressources/class.tcpip.inc';
include_once dirname(__FILE__) . "/ressources/class.stats-appliance.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-all"])) {
    tabs_all();
    exit;
}
if (isset($_GET["list"])) {
    access_list();
    exit;
}
page();
function tabs_all()
{
    $fontsize = 16;
    $tpl = new templates();
    $page = CurrentPageName();
    $sock = new sockets();
    $AsMaster = true;
    $SquidAsMasterPeer = intval($sock->GET_INFO("SquidAsMasterPeer"));
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');
	include_once('ressources/class.tcpip.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-all"])){tabs_all();exit;}
	if(isset($_GET["list"])){access_list();exit;}
	
	
page();


function tabs_all(){
	
	
	$fontsize=16;
	$tpl=new templates();
	$page=CurrentPageName();
	
	$sock=new sockets();
	$AsMaster=true;