Exemplo n.º 1
0
    ini_set('error_prepend_string', null);
    ini_set('error_append_string', null);
}
include_once 'ressources/class.templates.inc';
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.artica.inc';
include_once 'ressources/class.ini.inc';
include_once 'ressources/class.squid.inc';
include_once 'ressources/class.rtmm.tools.inc';
if (isset($_GET["thumbnail"])) {
    thumbnail();
    exit;
}
if (isset($_GET["thumbnail-zoom-js"])) {
    thumbnail_zoom_js();
    exit;
}
if (isset($_GET["thumbnail-zoom-popup"])) {
    thumbnail_zoom_popup();
    exit;
}
if (function_exists("Privileges_members_ownstats")) {
    if (!Privileges_members_ownstats()) {
        $tpl = new templates();
        echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
        exit;
    }
} else {
    $user = new usersMenus();
    if (!$user->AsWebStatisticsAdministrator) {
Exemplo n.º 2
0
<?php
	header("Pragma: no-cache");	
	header("Expires: 0");
	header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
	header("Cache-Control: no-cache, must-revalidate");
	if(isset($_GET["verbose"])){$GLOBALS["VERBOSE"]=true;ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);ini_set('error_prepend_string',null);ini_set('error_append_string',null);}
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.artica.inc');
	include_once('ressources/class.ini.inc');
	include_once('ressources/class.squid.inc');
	include_once('ressources/class.rtmm.tools.inc');

	if(isset($_GET["thumbnail"])){thumbnail();exit;}
	if(isset($_GET["thumbnail-zoom-js"])){thumbnail_zoom_js();exit;}
	if(isset($_GET["thumbnail-zoom-popup"])){thumbnail_zoom_popup();exit;}	
	
	
	if(function_exists("Privileges_members_ownstats")){
		if(!Privileges_members_ownstats()){
			$tpl=new templates();
			echo "alert('".$tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
			exit;
		}
	}else{
		$user=new usersMenus();
		if(!$user->AsWebStatisticsAdministrator){
			$tpl=new templates();
			echo "alert('".$tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
			exit;