Changeset 2055 for trunk/include


Ignore:
Timestamp:
Jul 7, 2007, 11:23:04 AM (17 years ago)
Author:
rub
Message:

Resolved issue 0000717: guest must be guest

Location:
trunk/include
Files:
2 edited

Legend:

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

    r2046 r2055  
    187187}
    188188
     189if (isset($user['internal_status']['guest_must_be_guest'])
     190    and
     191    $user['internal_status']['guest_must_be_guest'] === true)
     192{
     193  $header_msgs[] = l10n('guest_must_be_guest');
     194}
     195
    189196if ($conf['gallery_locked'])
    190197{
  • trunk/include/functions_user.inc.php

    r2039 r2055  
    150150  $user = array_merge( $user, getuserdata($user_id, $use_cache) );
    151151
     152  if ($user['id'] == $conf['guest_id'] and $user['status'] <> 'guest')
     153  {
     154    $user['status'] = 'guest';
     155    $user['internal_status']['guest_must_be_guest'] = true;
     156  }
     157
    152158  // calculation of the number of picture to display per page
    153159  $user['nb_image_page'] = $user['nb_image_line'] * $user['nb_line_page'];
Note: See TracChangeset for help on using the changeset viewer.