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

Resolved issue 0000717: guest must be guest

Location:
branches/branch-1_7/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_7/include/common.inc.php

    r2040 r2054  
    188188}
    189189
     190if (isset($user['internal_status']['guest_must_be_guest'])
     191    and
     192    $user['internal_status']['guest_must_be_guest'] === true)
     193{
     194  $header_msgs[] = l10n('guest_must_be_guest');
     195}
     196
    190197if ($conf['gallery_locked'])
    191198{
  • branches/branch-1_7/include/functions_user.inc.php

    r2040 r2054  
    151151  $user['is_the_default'] = ($user['id'] == $conf['default_user_id']);
    152152
     153  if ($user['is_the_guest'] and $user['status'] <> 'guest')
     154  {
     155    $user['status'] = 'guest';
     156    $user['internal_status']['guest_must_be_guest'] = true;
     157  }
     158
    153159  // calculation of the number of picture to display per page
    154160  $user['nb_image_page'] = $user['nb_image_line'] * $user['nb_line_page'];
Note: See TracChangeset for help on using the changeset viewer.