Beispiel #1
0
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"])) {
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;}
if(isset($_GET["cachelogs-events-list"])){events_search();exit;}

if(isset($_GET["back-js"])){back_js();exit;}