include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); $user=new usersMenus(); if($user->AllowViewStatistics==false){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_GET["popup"])){tabs();exit;} if(isset($_GET["etch"])){etch();exit;} if(isset($_POST["EnableVnStat"])){EnableVnStat();exit;} js(); function js(){ $page=CurrentPageName(); $tpl=new templates(); if(isset($_GET["newinterface"])){$newinterface="&newinterface=yes";} $title=$tpl->_ENGINE_parse_body("{network_stats}"); $html="$('#BodyContent').load('$page?popup=yes$newinterface');"; echo $html; }
if ($user->AllowViewStatistics == false) { $tpl = new templates(); echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');"; die; exit; } if (isset($_GET["popup"])) { tabs(); exit; } if (isset($_GET["etch"])) { etch(); exit; } if (isset($_POST["EnableVnStat"])) { EnableVnStat(); exit; } js(); function js() { $page = CurrentPageName(); $tpl = new templates(); if (isset($_GET["newinterface"])) { $newinterface = "&newinterface=yes"; } $title = $tpl->_ENGINE_parse_body("{network_stats}"); $html = "\$('#BodyContent').load('{$page}?popup=yes{$newinterface}');"; echo $html; } function tabs()