示例#1
0
	include_once('ressources/class.templates.inc');
	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;}
	


	js();
	
function js(){

	$page=CurrentPageName();
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body("{network_stats}");
	
	$html="$('#BodyContent').load('$page?popup=yes');";
	echo $html;
}
示例#2
0
include_once 'ressources/class.templates.inc';
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;
}
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()