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

Last change on this file since 6850 was 6850, checked in by mabarracus, 19 months ago

Add partial whitelist implementation

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