예제 #1
0
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"));
    if ($SquidAsMasterPeer == 0) {
        $AsMaster = false;
    }
    $SquidAsMasterLogExtern = intval($sock->GET_INFO("SquidAsMasterLogExtern"));
예제 #2
0
	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;
	$SquidAsMasterPeer=intval($sock->GET_INFO("SquidAsMasterPeer"));