function quicklinks_proxy() { $users = new usersMenus(); $tpl = new templates(); $sock = new sockets(); $SQUIDEnable = $sock->GET_INFO("SQUIDEnable"); if (!is_numeric($SQUIDEnable)) { $SQUIDEnable = 1; } if ($SQUIDEnable == 0) { quicklinks_only_reverse(true); return; } $AsMonitor = false; if ($users->AsSquidAdministrator) { $AsMonitor = true; } if ($users->AsDansGuardianAdministrator) { $AsMonitor = true; } if ($users->AsProxyMonitor) { $AsMonitor = true; } if ($users->AsSquidAdministrator) { $tr[] = paragrapheWin("speedomter2-white-64.png", "{performance}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','squid.global.performance.php')"); $tr[] = paragrapheWin("parameters-64-white.png", "{main_parameters}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','squid.main.quicklinks.php?function=section_status')"); } if ($AsMonitor) { $tr[] = paragrapheWin("compteur-64.png", "{monitor}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','squid.caches.status.php?tabs=yes')"); } $CacheManagement2 = $sock->GET_INFO("CacheManagement2"); if (!is_numeric($CacheManagement2)) { $CacheManagement2 = 0; } if ($users->AsSquidAdministrator) { $tr[] = paragrapheWin("caches-center-white-64.png", "{caches_center}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','squid.caches.rules.php?main-tabs=yes')"); } if ($users->AsDansGuardianAdministrator) { $tr[] = paragrapheWin("squid-templates-64-white.png", "{squid_templates_error}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','squid.templates.php?tabs=yes')"); } if ($users->AsSquidAdministrator) { $tr[] = paragrapheWin("autoconf-64-white.png", "{autoconfiguration}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','squid.autoconfiguration.main.php?tabs=yes')"); } if ($users->AsDansGuardianAdministrator) { if ($users->APP_UFDBGUARD_INSTALLED) { $tr[] = paragrapheWin("webfiltering-white-64.png", "{web_filtering}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','dansguardian2.mainrules.php')"); } $tr[] = paragrapheWin("firewall-64-white.png", "{ACLS}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','dansguardian2.php')"); if ($users->C_ICAP_INSTALLED) { $tr[] = paragrapheWin("webfiltering-white-64.png", "ICAP {web_filtering}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','icap-webfilter.php')"); } } //******************** ICAP CENTER ************************************************** if ($users->AsSquidAdministrator) { $tr[] = paragrapheWin("ssl-64-white.png", "{UseSSL}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','squid.ssl.center.php')"); $tr[] = paragrapheWin("icap-center-64.png", "{icap_center}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','icap-center.php')"); $tr[] = paragrapheWin("transparent-64-white.png", "{transparent}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','squid.transparent.php')"); $tr[] = paragrapheWin("wifi-white-64.png", "HotSpot", "AnimateDiv('BodyContent');LoadAjax('BodyContent','squid.webauth.php?tabs=yes')"); if ($users->SAMBA_INSTALLED) { if ($users->AsSystemAdministrator) { $tr[] = paragrapheWin("windows-white-64.png", "Active Directory", "AnimateDiv('BodyContent');LoadAjax('BodyContent','squid.adker.php?tabs=yes');"); } } } if ($users->AsDansGuardianAdministrator) { $tr[] = paragrapheWin("group-64-white.png", "{browsers_users}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','squid.BrowsersView.php')"); } if ($users->AsSquidAdministrator) { $tr[] = paragrapheWin("proxy-parent-white-64.png", "{squid_parent_proxy}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','squid.parent.proxy.php')"); $tr[] = paragrapheWin("videocache-64-white.png", "VideoCache", "AnimateDiv('BodyContent');LoadAjax('BodyContent','squid.videocache.php')"); if ($users->RDPPROXY_INSTALLED) { $tr[] = paragrapheWin("remote-desktop-64-white.png", "{APP_RDPPROXY}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','squid.rdpproxy.php?tabs=yes')"); } if ($users->NGINX_INSTALLED) { $tr[] = paragrapheWin("reverse-proxy-64-white.png", "Reverse-Proxy", "AnimateDiv('BodyContent');LoadAjax('BodyContent','nginx.main.php')"); } } if ($users->AsDansGuardianAdministrator) { $tr[] = paragrapheWin("database-64-white.png", "{APP_UFDBCAT}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','ufdbcat.php')"); $tr[] = paragrapheWin("statistics-white-64.png", "{statistics}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','squid.statistics.central.php')"); } if ($users->AsSquidAdministrator) { $tr[] = paragrapheWin("tasks-white-64.png", "{tasks}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','squid-quicklinks.php?function=section_tasks')"); $tr[] = paragrapheWin("stats-app-64-white.png", "{statistic_appliance}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','squid.stats-appliance.index.php')"); $tr[] = paragrapheWin("failover-64.png", "{failover}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','squid.failover.php?tabs=yes')"); } if ($AsMonitor) { $tr[] = paragrapheWin("logs-white-64.png", "{events}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','squid.accesslogs.php?tabs-all=yes')"); $tr[] = paragrapheWin("rangement-64.png", "{backuped_logs}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','squid.sourceslogs.php')"); } $html = $tpl->_ENGINE_parse_body(CompileTr6_win($tr, true)); echo $html; }
function quicklinks_proxy() { $users = new usersMenus(); if (!$GLOBALS["AS_ROOT"]) { if ($users->AsSquidAdministrator) { if (is_file("/usr/share/artica-postfix/ressources/logs/web/quicklinks_proxy.html")) { $tpl = new templates(); echo $tpl->_ENGINE_parse_body(@file_get_contents("/usr/share/artica-postfix/ressources/logs/web/quicklinks_proxy.html")); return; } } } if ($GLOBALS["AS_ROOT"]) { $users->AsSquidAdministrator = true; $users->AsDansGuardianAdministrator = true; $users->AsProxyMonitor = true; } $tpl = new templates(); $sock = new sockets(); $SQUIDEnable = $sock->GET_INFO("SQUIDEnable"); if (!is_numeric($SQUIDEnable)) { $SQUIDEnable = 1; } $SquidPerformance = intval($sock->GET_INFO("SquidPerformance")); if ($SQUIDEnable == 0) { quicklinks_only_reverse(true); return; } $AsMonitor = false; if ($users->AsSquidAdministrator) { $AsMonitor = true; } if ($users->AsDansGuardianAdministrator) { $AsMonitor = true; } if ($users->AsProxyMonitor) { $AsMonitor = true; } if ($users->AsSquidAdministrator) { if ($users->SS5_INSTALLED) { $tr[] = paragrapheWin("socks-64-white.png", "{APP_SS5}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','ss5.php')"); } if ($users->RDPPROXY_INSTALLED) { $tr[] = paragrapheWin("remote-desktop-64-white.png", "{APP_RDPPROXY}", "AnimateDiv('BodyContent');LoadAjax('BodyContent','squid.rdpproxy.php?tabs=yes')"); } if ($users->NGINX_INSTALLED) { $tr[] = paragrapheWin("reverse-proxy-64-white.png", "Reverse-Proxy", "AnimateDiv('BodyContent');LoadAjax('BodyContent','nginx.main.php')"); } } $html = $tpl->_ENGINE_parse_body(CompileTr7_win($tr, true)); if ($GLOBALS["AS_ROOT"]) { @file_put_contents("/usr/share/artica-postfix/ressources/logs/web/quicklinks_proxy.html", $html); } echo $html; }