Ignore:
Timestamp:
Dec 21, 2004, 12:54:59 AM (19 years ago)
Author:
plg
Message:
  • new feature : lock temporary your gallery for maintenance
  • $user keys for guest user are initialized with default values of $conf
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/user.inc.php

    r650 r653  
    106106}
    107107
     108// properties of user guest are found in the configuration
     109if ($user['is_the_guest'])
     110{
     111  $user['template'] = $conf['default_template'];
     112  $user['nb_image_line'] = $conf['nb_image_line'];
     113  $user['nb_line_page'] = $conf['nb_line_page'];
     114  $user['language'] = $conf['default_language'];
     115  $user['maxwidth'] = $conf['default_maxwidth'];
     116  $user['maxheight'] = $conf['default_maxheight'];
     117  $user['recent_period'] = $conf['recent_period'];
     118  $user['expand'] = $conf['auto_expand'];
     119  $user['show_nb_comments'] = $conf['show_nb_comments'];
     120}
     121
    108122// if no information were found about user in user_forbidden table OR the
    109123// forbidden categories must be updated
     
    139153include_once(PHPWG_ROOT_PATH.'language/'.$user['language'].'/common.lang.php');
    140154
     155// displaying the username in the language of the connected user, instead of
     156// "guest" as you can find in the database
     157if ($user['is_the_guest'])
     158{
     159  $user['username'] = $lang['guest'];
     160}
     161
    141162// only if we are in the administration section
    142163if (defined('IN_ADMIN') and IN_ADMIN)
Note: See TracChangeset for help on using the changeset viewer.