diff options
author | Philip Häusler <msquare@notrademark.de> | 2013-12-29 15:08:21 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2013-12-29 15:08:21 +0100 |
commit | a041e0efbb9825a9c8d77cba989dcea27d0f825d (patch) | |
tree | 218552b88cc74b883b31729234d83a803ff3bf6b /public/index.php | |
parent | 124cf64d4fc6a277838de491bc6f5bfd443e6019 (diff) |
first api
Diffstat (limited to 'public/index.php')
-rw-r--r-- | public/index.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/public/index.php b/public/index.php index 346e7cf7..cf5ab9cc 100644 --- a/public/index.php +++ b/public/index.php @@ -15,6 +15,9 @@ require_once ('includes/model/NeededAngelTypes_model.php'); require_once ('includes/model/ShiftEntry_model.php'); require_once ('includes/model/Shifts_model.php'); require_once ('includes/model/User_model.php'); +require_once ('includes/model/Room_model.php'); +require_once ('includes/model/Message_model.php'); +require_once ('includes/model/AngelType_model.php'); require_once ('includes/view/Questions_view.php'); require_once ('includes/view/Shifts_view.php'); @@ -66,7 +69,8 @@ if (isset($_REQUEST['auth'])) $free_pages = array( 'stats', 'shifts_json_export_all', - 'user_password_recovery' + 'user_password_recovery', + 'api' ); // Gewünschte Seite/Funktion @@ -78,7 +82,10 @@ if (isset($_REQUEST['p']) && preg_match("/^[a-z0-9_]*$/i", $_REQUEST['p']) && (i $title = $p; $content = ""; - if ($p == "ical") { + if ($p == "api") { + require_once ('includes/controller/api.php'); + api_controller(); + } elseif ($p == "ical") { require_once ('includes/pages/user_ical.php'); user_ical(); } elseif ($p == "atom") { |