aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2004-12-20 22:03:04 +0000
committerplegall <plg@piwigo.org>2004-12-20 22:03:04 +0000
commit7543485ba84b14cf928184b5c7de40772fe3c04f (patch)
treefee9d958cbf341aff2a005f10a2db3180804a38e /include
parentc19f01d77c990962baef1906ac0ed60280324b77 (diff)
- restricted access mode deleted : set all your categories as private
instead git-svn-id: http://piwigo.org/svn/trunk@651 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include')
-rw-r--r--include/functions_user.inc.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php
index 8b71cf660..97087827f 100644
--- a/include/functions_user.inc.php
+++ b/include/functions_user.inc.php
@@ -158,17 +158,14 @@ function update_user( $user_id, $mail_address, $status,
function check_login_authorization($guest_allowed = true)
{
- global $user,$lang,$conf,$page;
+ global $user,$lang;
- if ( $user['is_the_guest'])
- {
- if ( $conf['access'] == 'restricted' || !$guest_allowed )
+ if ($user['is_the_guest'] and !$guest_allowed)
{
echo '<div style="text-align:center;">'.$lang['only_members'].'<br />';
echo '<a href="./identification.php">'.$lang['ident_title'].'</a></div>';
exit();
}
- }
}
function setup_style($style)