diff options
Diffstat (limited to 'includes/pages/guest_login.php')
-rw-r--r-- | includes/pages/guest_login.php | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/includes/pages/guest_login.php b/includes/pages/guest_login.php index 482b7670..258532ee 100644 --- a/includes/pages/guest_login.php +++ b/includes/pages/guest_login.php @@ -1,21 +1,34 @@ <?php +/** + * @return string + */ function login_title() { return _("Login"); } +/** + * @return string + */ function register_title() { return _("Register"); } +/** + * @return string + */ function logout_title() { return _("Logout"); } -// Engel registrieren +/** + * Engel registrieren + * + * @return string + */ function guest_register() { global $tshirt_sizes, $enable_tshirt_size, $default_theme, $user, $min_password_length; @@ -335,6 +348,7 @@ function guest_logout() { session_destroy(); redirect(page_link_to("start")); + return true; } function guest_login() @@ -368,7 +382,7 @@ function guest_login() error(_("Please enter a nickname.")); } - if ($valid) { + if ($valid && !empty($login_user)) { $_SESSION['uid'] = $login_user['UID']; $_SESSION['locale'] = $login_user['Sprache']; |