aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_user.inc.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2004-12-20 23:54:59 +0000
committerplegall <plg@piwigo.org>2004-12-20 23:54:59 +0000
commit6409647e1c9e9d13913c9d4b3d882511dc51f52d (patch)
tree9dbc8276db16c6ed8f0415a380f4ddafa20a8e6a /include/functions_user.inc.php
parent82cb16095cd271ba780345cd3a17af7f91e9f45d (diff)
- new feature : lock temporary your gallery for maintenance
- $user keys for guest user are initialized with default values of $conf git-svn-id: http://piwigo.org/svn/trunk@653 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-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)