2018-02-15 06:47:35 +00:00
|
|
|
<?php
|
2022-02-20 10:38:08 +00:00
|
|
|
|
|
|
|
use Froxlor\Api\Api;
|
2020-10-31 14:57:59 +00:00
|
|
|
use voku\helper\AntiXSS;
|
|
|
|
|
2018-12-18 08:46:36 +00:00
|
|
|
require __DIR__ . '/vendor/autoload.php';
|
2022-02-20 10:38:08 +00:00
|
|
|
require __DIR__ . '/lib/tables.inc.php';
|
2018-02-15 06:47:35 +00:00
|
|
|
|
|
|
|
/**
|
2022-02-20 10:38:08 +00:00
|
|
|
* This file is part of the Froxlor project.
|
|
|
|
* Copyright (c) 2010 the Froxlor Team (see authors).
|
|
|
|
*
|
|
|
|
* For the full copyright and license information, please view the COPYING
|
|
|
|
* file that was distributed with this source code. You can also view the
|
|
|
|
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
|
2018-02-15 06:47:35 +00:00
|
|
|
*
|
2022-02-20 10:38:08 +00:00
|
|
|
* @copyright (c) the authors
|
|
|
|
* @author Froxlor team <team@froxlor.org> (2010-)
|
|
|
|
* @author Maurice Preuß <hello@envoyr.com>
|
|
|
|
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
|
|
|
|
* @package API
|
2018-02-15 06:47:35 +00:00
|
|
|
*
|
|
|
|
*/
|
2019-11-01 06:39:28 +00:00
|
|
|
|
2022-02-20 10:38:08 +00:00
|
|
|
// Return response
|
|
|
|
try {
|
|
|
|
echo (new Api)->handle(@file_get_contents('php://input'));
|
|
|
|
} catch (Exception $e) {
|
|
|
|
echo \Froxlor\Api\Response::jsonErrorResponse($e->getMessage(), $e->getCode());
|
2019-11-01 06:39:28 +00:00
|
|
|
}
|