Пример #1
0
<?php

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["graph"])) {
    graphs();
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
js();
function js()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $title = $tpl->_ENGINE_parse_body("{emails_flow}");
    $html = "\n\tfunction main_mailgraph_statistics_start(){\n\t\t\tYahooWin2(790,'{$page}?popup=yes','{$title}');\n\t\t}\n\t\n\tmain_mailgraph_statistics_start();";
    echo $html;
}
function popup()
{
Пример #2
0
<?php
	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["graph"])){graphs();exit;}
if(isset($_GET["popup"])){popup();exit;}


js();

function js(){
	
	$page=CurrentPageName();
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body("{system_perfomances}");
	
	$html="
	function main_yorels_statistics_start(){
			YahooWin2(790,'$page?popup=yes','$title');
		}
	
	main_yorels_statistics_start();";
	echo $html;