2 require_once('config.php');
3 require_once('future.php');
5 function json_return($data)
7 header('Content-type: application/json; charset="UTF-8"');
8 echo json_encode($data);
12 $backend = new AJAXBackend();
16 if (strlen($_POST['func'])) {
17 if (method_exists($backend, $_POST['func'])) {
18 $func = $_POST['func'];
19 $data = $backend->$func();
21 $data = array('error' => 'Unbekannte Funktion '.$_POST['func'].'.');