include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.squid.inc');
	
	
$usersmenus=new usersMenus();
if(!$usersmenus->AsSquidAdministrator){
	$tpl=new templates();
	$alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
	echo "<script>alert('$alert');</script>";
	die();	
}

if(isset($_GET["explain"])){explain_this();exit;}
if(isset($_GET["performance"])){performance();exit;}
if(isset($_POST["SquidPerformance"])){SquidPerformance();exit;}

tabs();
function tabs(){
	$page=CurrentPageName();
	$sock=new sockets();
	$users=new usersMenus();
	$q=new mysql_blackbox();
	$tpl=new templates();
	$language=$tpl->language;
	$array["performance"]="{global_performance}";
	$array["squid-memory"]='{memory}';
	$array["peristent_cnx"]="{persistent_connections}";
	$array["performance-reports"]="{performance_reports}";
	$array["logger"]="{artica_logger}";
	
if (!$usersmenus->AsSquidAdministrator) {
    $tpl = new templates();
    $alert = $tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
    echo "<script>alert('{$alert}');</script>";
    die;
}
if (isset($_GET["explain"])) {
    explain_this();
    exit;
}
if (isset($_GET["performance"])) {
    performance();
    exit;
}
if (isset($_POST["SquidPerformance"])) {
    SquidPerformance();
    exit;
}
tabs();
function tabs()
{
    $page = CurrentPageName();
    $sock = new sockets();
    $users = new usersMenus();
    $q = new mysql_blackbox();
    $tpl = new templates();
    $language = $tpl->language;
    $array["performance"] = "{global_performance}";
    $array["squid-memory"] = '{memory}';
    $array["peristent_cnx"] = "{persistent_connections}";
    $array["performance-reports"] = "{performance_reports}";