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

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

Whitelist configurator implementation

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