function popup() { $sock = new sockets(); $datas = $sock->APC_GET(md5(__FILE__ . __FUNCTION__), 10); if ($datas != null) { echo $datas; return; } $table = events_table(); $html = "<H1>{artica_events}</H1>\n\t\n\t<div style='width:100%;height:500px;overflow:auto' id='articaevents'>{$table}</div>\n\t\n\t\n\t"; $tpl = new templates(); $datas = $tpl->_ENGINE_parse_body($html); $sock->APC_SAVE(md5(__FILE__ . __FUNCTION__), $html); echo $datas; }
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; } if (isset($_POST["back"])) { back(); exit; } if (isset($_GET["apply-js"])) {
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 "alert('$alert');"; die(); } if(isset($_GET["popup"])){popup();exit;} if(isset($_POST["watchdog"])){Save();exit;} if(isset($_GET["tabs"])){tabs();exit;} if(isset($_GET["events"])){events_table();exit;} if(isset($_GET["rows-table"])){rows_table();exit;} if(isset($_GET["notifs"])){smtp_notifs();exit;} if(isset($_POST["ENABLED_SQUID_WATCHDOG"])){save_watchdog_notif();exit;} js(); function Save(){ $sock=new sockets(); $final=base64_encode(serialize($_POST)); $sock->SaveConfigFile($final, "SquidWatchdogMonitConfig"); $sock->SET_INFO("SquidCacheReloadTTL", $_POST["SquidCacheReloadTTL"]); $sock->getFrameWork("squid.php?watchdog-config=yes"); }