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.users.menus.inc';
include_once 'ressources/class.groups.inc';
include_once 'ressources/class.squid.inc';
$users = new usersMenus();
if (!$users->AsSquidAdministrator) {
    die("NO PRIVS");
}
if (!$users->CORP_LICENSE) {
    die("NO PRIVS");
}
if (isset($_GET["section-smp"])) {
    section_smp();
    exit;
}
if (isset($_POST["cache_directory"])) {
    addcache_save();
    exit;
}
if (isset($_GET["addcache-js"])) {
    addcache_js();
    exit;
}
if (isset($_GET["addcache-popup"])) {
    addcache_popup();
    exit;
}
if (isset($_GET["delete-cache-js"])) {
<?php
if(isset($_GET["verbose"])){$GLOBALS["VERBOSE"]=true;ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);ini_set('error_prepend_string',null);ini_set('error_append_string',null);}
header("Pragma: no-cache");
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.users.menus.inc');
include_once('ressources/class.groups.inc');
include_once('ressources/class.squid.inc');

$users=new usersMenus();
if(!$users->AsSquidAdministrator){die("NO PRIVS");}
if(!$users->CORP_LICENSE){die("NO PRIVS");}
if(isset($_GET["section-smp"])){section_smp();exit;}
if(isset($_POST["cache_directory"])){addcache_save();exit;}

if(isset($_GET["addcache-js"])){addcache_js();exit;}
if(isset($_GET["addcache-popup"])){addcache_popup();exit;}

if(isset($_GET["delete-cache-js"])){delete_cache_js();exit;}
if(isset($_POST["delete-cache"])){delete_cache();exit;}

if(isset($_GET["abort-delete-cache-js"])){delete_cache_abort_js();exit;}
if(isset($_POST["abort-delete-cache"])){delete_cache_abort();exit;}

if(isset($_GET["disable-js"])){disable_js();exit;}

if(isset($_GET["events-js"])){events_js();exit;}
if(isset($_GET["events-table"])){events_table();exit;}