if(isset($_GET["force"])){$GLOBALS["FORCE"]=true;}
	include_once('ressources/class.templates.inc');
	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}";
if (isset($_GET["force"])) {
    $GLOBALS["FORCE"] = true;
}
include_once 'ressources/class.templates.inc';
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();