16 lines
404 B
PHP
16 lines
404 B
PHP
<?php
|
|
require_once($_SERVER['DOCUMENT_ROOT'] . "/config.php");
|
|
|
|
//ini_set('display_errors', 1);
|
|
//error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE);
|
|
|
|
if (isset($_SESSION['id'])) {
|
|
$data = json_decode(file_get_contents("php://input"));
|
|
$function = $data->request;
|
|
$CallEvents = new CallEvents();
|
|
|
|
$responce = $CallEvents->$function($data);
|
|
|
|
echo json_encode($responce);
|
|
}
|