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

Last change on this file since 6819 was 6819, checked in by mabarracus, 19 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
Support to provide blacklist
Support to platform data

File size: 931 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('GET','/getlist',call_getlist());
22$klein->respond('POST','/notify',call_bd());
23
24define('APP_PATH', $app_dir);
25$path=substr($request->server()->get('REQUEST_URI'), strlen(APP_PATH));
26$request->server()->set('REQUEST_URI',$path);
27$klein->dispatch($request);
28?>
Note: See TracBrowser for help on using the repository browser.