if ($user->AsSquidAdministrator == false) { $tpl = new templates(); echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');"; die; exit; } if (isset($_GET["popup"])) { popup(); exit; } if (isset($_POST["EnableSNMPD"])) { save(); exit; } if (isset($_GET["snmpd-service"])) { snmpd_status(); exit; } popup(); function js() { header("content-type: application/x-javascript"); $tpl = new templates(); $title = $tpl->_ENGINE_parse_body("SNMP"); $page = CurrentPageName(); $html = "YahooWin3('905','{$page}?popup=yes','{$title}');"; echo $html; } function mib_js() { $tpl = new templates();
include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.squid.inc'); include_once('ressources/class.system.network.inc'); $user=new usersMenus(); if($user->AsSquidAdministrator==false){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_GET["popup"])){popup();exit;} if(isset($_POST["EnableSNMPD"])){save();exit;} if(isset($_GET["snmpd-service"])){snmpd_status();exit;} js(); function js(){ header("content-type: application/x-javascript"); $tpl=new templates(); $title=$tpl->_ENGINE_parse_body("SNMP"); $page=CurrentPageName(); $html="YahooWin3('905','$page?popup=yes','$title');"; echo $html; } function mib_js(){ $tpl=new templates();