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"); } function js() { $page = CurrentPageName(); $tpl = new templates();
$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"); } function js(){ $page=CurrentPageName();