aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_user.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions_user.inc.php')
-rw-r--r--include/functions_user.inc.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php
index 97087827f..f8b47083b 100644
--- a/include/functions_user.inc.php
+++ b/include/functions_user.inc.php
@@ -158,7 +158,7 @@ function update_user( $user_id, $mail_address, $status,
function check_login_authorization($guest_allowed = true)
{
- global $user,$lang;
+ global $user,$lang,$conf,$template;
if ($user['is_the_guest'] and !$guest_allowed)
{
@@ -166,6 +166,17 @@ function check_login_authorization($guest_allowed = true)
echo '<a href="./identification.php">'.$lang['ident_title'].'</a></div>';
exit();
}
+
+ if ($conf['gallery_locked'])
+ {
+ echo '<div style="text-align:center;">';
+ echo $lang['gallery_locked_message'];
+ echo '</div>';
+ if ($user['status'] != 'admin')
+ {
+ exit();
+ }
+ }
}
function setup_style($style)