source: lliurex-analytics-server/trunk/fuentes/lliurex-analytics-server/usr/lib/analytics-server/analytics/reports.php @ 6767

Last change on this file since 6767 was 6767, checked in by mabarracus, 20 months ago

Fix test suite
Consolidation daemon ported to python3
Avoid daemon running with multiple instances
Fixes indent,sizes in fonts and graphics
System stats visualization page
Minimized javascript files
New cache for visualization graphs minimizing overloading and DoS attacks
Improved scheduler with clients sending 10+ results

File size: 881 bytes
Line 
1<?php
2
3require_once __DIR__ . '/vendor/autoload.php';
4require_once('db.php');
5require_once('config.php');
6require_once('functions.php');
7
8#error_reporting(E_ALL);
9#ini_set('display_errors','on');
10
11$klein = new \Klein\Klein();
12$request = \Klein\Request::createFromGlobals();
13
14
15$klein->respond('GET','/ShowStats',call_show_stats());
16$klein->respond('GET','/GetStats',call_get_stats());
17$klein->respond('GET','/ShowExtendedStats',call_show_extended_stats());
18$klein->respond('GET','/GetExtendedStats',call_get_extended_stats());
19$klein->respond('GET','/SystemStats',call_get_system_stats());
20$klein->respond('GET','/ShowSystemStats',call_show_system_stats());
21$klein->respond('POST','/notify',call_bd());
22
23define('APP_PATH', $app_dir);
24$path=substr($request->server()->get('REQUEST_URI'), strlen(APP_PATH));
25$request->server()->set('REQUEST_URI',$path);
26$klein->dispatch($request);
27?>
Note: See TracBrowser for help on using the repository browser.