Ignore:
Timestamp:
Dec 21, 2004, 12:54:59 AM (20 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/functions_user.inc.php

    r651 r653  
    159159function check_login_authorization($guest_allowed = true)
    160160{
    161   global $user,$lang;
     161  global $user,$lang,$conf,$template;
    162162
    163163  if ($user['is_the_guest'] and !$guest_allowed)
     
    166166    echo '<a href="./identification.php">'.$lang['ident_title'].'</a></div>';
    167167    exit();
     168  }
     169
     170  if ($conf['gallery_locked'])
     171  {
     172    echo '<div style="text-align:center;">';
     173    echo $lang['gallery_locked_message'];
     174    echo '</div>';
     175    if ($user['status'] != 'admin')
     176    {
     177      exit();
     178    }
    168179  }
    169180}
Note: See TracChangeset for help on using the changeset viewer.