index.php 500 B

12345678910111213141516171819202122
  1. <?php
  2. header('Cache-Control: no-cache, must-revalidate');
  3. header('Content-type: application/json');
  4. require_once(dirname(__FILE__).'/controllers/BootstrapController.php');
  5. $bsCtrl = new BootstrapController();
  6. $data = json_decode(file_get_contents('php://input'), true);
  7. if (is_array($data)) {
  8. $data = array_merge($data, $_POST);
  9. } else {
  10. $data = $_POST;
  11. }
  12. $result = $bsCtrl->bootstrap($_GET, $data);
  13. if (substr($result, 0, 6) == "Fehler") {
  14. echo "\"{$result}(.)\"";
  15. } else {
  16. echo $result;
  17. }