-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathreport.php
36 lines (33 loc) · 1.44 KB
/
report.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/****************************************************************************************
* LiveZilla report.php
*
* Copyright 2017 LiveZilla GmbH
* All rights reserved.
* LiveZilla is a registered trademark.
*
* Improper changes to this file may cause critical errors.
***************************************************************************************/
define("IN_LIVEZILLA",true);
header('Content-Type: text/html; charset=utf-8');
if(!defined("LIVEZILLA_PATH"))
define("LIVEZILLA_PATH","./");
require(LIVEZILLA_PATH . "_definitions/definitions.inc.php");
require(LIVEZILLA_PATH . "_lib/functions.global.inc.php");
require(LIVEZILLA_PATH . "_definitions/definitions.dynamic.inc.php");
require(LIVEZILLA_PATH . "_definitions/definitions.protocol.inc.php");
@set_error_handler("handleError");
if(!empty($_GET["h"]) && !empty($_GET["y"]) && isset($_GET["m"]) && isset($_GET["d"]) && Server::InitDataProvider())
{
Server::InitStatisticProvider();
Server::DefineURL("report.php");
$repData = StatisticProvider::GetReportFromHash($_GET["h"],$_GET["y"],$_GET["m"],$_GET["d"],!empty($_GET["u"]));
if($repData !== false)
{
LocalizationManager::AutoLoad(strtolower(Server::$Configuration->File["gl_default_language"]),true);
$repData = Server::Replace($repData,true,false,false,true);
exit($repData);
}
}
exit("Sorry, report was not found. Please recreate report and check your file permissions (CHMOD).");
?>