diff options
author | Felix Favre <gnomus@gnomus.de> | 2014-12-12 23:49:16 +0100 |
---|---|---|
committer | Felix Favre <gnomus@gnomus.de> | 2014-12-12 23:49:16 +0100 |
commit | 96d2aee2cbb94bef46a2f09e89feab39fc341588 (patch) | |
tree | 19e4d01f2b5519758ab11110c7d0a2c80cb9c18b | |
parent | e9bbd967ff734b0d6ecded5ff86c26c1eeccfc60 (diff) |
always allow access to ical and json_export_shifts
fixes #140
-rw-r--r-- | public/index.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/public/index.php b/public/index.php index cd77f9f3..fedf8f5d 100644 --- a/public/index.php +++ b/public/index.php @@ -82,7 +82,9 @@ $free_pages = array( 'api', 'credits', 'angeltypes', - 'users' + 'users', + 'ical', + 'shifts_json_export' ); // Gewünschte Seite/Funktion @@ -91,10 +93,10 @@ if (! isset($_REQUEST['p'])) $_REQUEST['p'] = isset($user) ? "news" : "login"; if (isset($_REQUEST['p']) && preg_match("/^[a-z0-9_]*$/i", $_REQUEST['p']) && (in_array($_REQUEST['p'], $free_pages) || in_array($_REQUEST['p'], $privileges))) { $p = $_REQUEST['p']; - + $title = $p; $content = ""; - + if ($p == "api") { require_once realpath(__DIR__ . '/../includes/controller/api.php'); error("Api disabled temporily."); @@ -222,7 +224,7 @@ echo template_render('../templates/layout.html', array( 'content' => msg() . $content, 'header_toolbar' => header_toolbar(), 'faq_url' => $faq_url, - 'locale' => $_SESSION['locale'] + 'locale' => $_SESSION['locale'] )); counter(); |