diff options
author | msquare <msquare@notrademark.de> | 2016-09-27 18:42:10 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2016-09-27 18:42:10 +0200 |
commit | a083c198bb7ce8e4be871c1377e070c9ca69123b (patch) | |
tree | 614eae3a7dcff7118c040ae2960add726b2d02dd /includes | |
parent | 7627721672841f1c58f2997c248f32b549d11b26 (diff) |
better log when changing event config
Diffstat (limited to 'includes')
-rw-r--r-- | includes/controller/event_config_controller.php | 2 | ||||
-rw-r--r-- | includes/pages/guest_login.php | 3 | ||||
-rw-r--r-- | includes/view/User_view.php | 11 |
3 files changed, 15 insertions, 1 deletions
diff --git a/includes/controller/event_config_controller.php b/includes/controller/event_config_controller.php index d08dc036..29a5b979 100644 --- a/includes/controller/event_config_controller.php +++ b/includes/controller/event_config_controller.php @@ -84,7 +84,7 @@ function event_config_edit_controller() { if ($result === false) engelsystem_error("Unable to update event config."); - engelsystem_log("Changed event config: $event_name, $event_welcome_msg, $buildup_start_date, $event_start_date, $event_end_date, $teardown_end_date"); + engelsystem_log("Changed event config: $event_name, $event_welcome_msg, " . date("Y-m-d", $buildup_start_date) . ", " . date("Y-m-d", $event_start_date) . ", " . date("Y-m-d", $event_end_date) . ", " . date("Y-m-d", $teardown_end_date)); success(_("Settings saved.")); redirect(page_link_to('admin_event_config')); } diff --git a/includes/pages/guest_login.php b/includes/pages/guest_login.php index 1d8a34dd..8f4d24a4 100644 --- a/includes/pages/guest_login.php +++ b/includes/pages/guest_login.php @@ -16,6 +16,9 @@ function logout_title() { function guest_register() { global $tshirt_sizes, $enable_tshirt_size, $default_theme; + $event_config = EventConfig(); + return User_registration_success_view($event_config['event_welcome_msg']); + $msg = ""; $nick = ""; $lastname = ""; diff --git a/includes/view/User_view.php b/includes/view/User_view.php index fca21e37..bec9879c 100644 --- a/includes/view/User_view.php +++ b/includes/view/User_view.php @@ -20,6 +20,17 @@ $tshirt_sizes = array( ); /** + * Displays the welcome message to the user and shows a login form. + */ +function User_registration_success_view($event_welcome_message) { + $parsedown = new Parsedown(); + $event_welcome_message = $parsedown->text($event_welcome_message); + return page_with_title(_("Welcome to the engelsystem!"), [ + $event_welcome_message + ]); +} + +/** * Gui for deleting user with password field. */ function User_delete_view($user) { |