summaryrefslogtreecommitdiff
path: root/public/index.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2016-09-27 17:49:13 +0200
committermsquare <msquare@notrademark.de>2016-09-27 17:49:39 +0200
commit031fc3057c46245cd62fc39f2d11ee3f0a393e06 (patch)
treeba0b4fbf68e7bc8e706d1ee6dd8b9d2987dd9c65 /public/index.php
parent45bbf95972777e9499996d56a873c2a304815b3f (diff)
rename settings to event config and implement mvc pattern on it
Diffstat (limited to 'public/index.php')
-rw-r--r--public/index.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/public/index.php b/public/index.php
index 0d7eb782..31668687 100644
--- a/public/index.php
+++ b/public/index.php
@@ -2,19 +2,20 @@
require_once realpath(__DIR__ . '/../includes/engelsystem_provider.php');
$free_pages = array(
- 'stats',
- 'shifts_json_export_all',
- 'user_password_recovery',
+ 'admin_event_config',
+ 'angeltypes',
'api',
+ 'atom',
'credits',
- 'angeltypes',
- 'users',
- 'user_driver_licenses',
'ical',
- 'shifts_json_export',
+ 'login',
'shifts',
- 'atom',
- 'login'
+ 'shifts_json_export',
+ 'shifts_json_export_all',
+ 'stats',
+ 'users',
+ 'user_driver_licenses',
+ 'user_password_recovery'
);
// Gewünschte Seite/Funktion
@@ -63,6 +64,8 @@ if (isset($_REQUEST['p']) && preg_match("/^[a-z0-9_]*$/i", $_REQUEST['p']) && (i
list($title, $content) = user_driver_licenses_controller();
} elseif ($p == "shifttypes") {
list($title, $content) = shifttypes_controller();
+ } elseif ($p == "admin_event_config") {
+ list($title, $content) = event_config_edit_controller();
} elseif ($p == "news") {
$title = news_title();
$content = user_news();
@@ -133,9 +136,6 @@ if (isset($_REQUEST['p']) && preg_match("/^[a-z0-9_]*$/i", $_REQUEST['p']) && (i
} elseif ($p == "admin_log") {
$title = admin_log_title();
$content = admin_log();
- } elseif ($p == "admin_settings") {
- $title = admin_settings_title();
- $content = admin_settings();
} elseif ($p == "credits") {
require_once realpath(__DIR__ . '/../includes/pages/guest_credits.php');
$title = credits_title();