Ignore:
Timestamp:
Aug 8, 2005, 10:52:19 PM (19 years ago)
Author:
plg
Message:
  • new : external authentication in another users table. Previous users table is divided between users (common properties with any web application) and user_infos (phpwebgallery specific informations). External table and fields can be configured.
  • modification : profile.php is not reachable through administration anymore (not useful).
  • modification : in profile.php, current password is mandatory only if user tries to change his password. Username can't be changed.
  • deletion : of obsolete functions get_user_restrictions, update_user_restrictions, get_user_all_restrictions, is_user_allowed, update_user
  • modification : user_forbidden table becomes user_cache so that not only restriction informations can be stored in this table.
File:
1 edited

Legend:

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

    r804 r808  
    110110  global $page, $user, $conf;
    111111
    112   if ( $user['has_cookie'] or $conf['apache_authentication']) return $url;
     112  if ($user['is_the_guest']
     113      or $user['has_cookie']
     114      or $conf['apache_authentication'])
     115  {
     116    return $url;
     117  }
    113118
    114   $amp = '&';
    115   if ( $redirect )
     119  if (preg_match('/\.php\?/', $url))
    116120  {
    117     $amp = '&';
    118   }
    119   if ( !$user['is_the_guest'] )
    120   {
    121     if ( preg_match( '/\.php\?/',$url ) )
    122     {
    123       return $url.$amp.'id='.$page['session_id'];
    124     }
    125     else
    126     {
    127       return $url.'?id='.$page['session_id'];
    128     }
     121    $separator = $redirect ? '&' : '&';
    129122  }
    130123  else
    131124  {
    132     return $url;
     125    $separator = '?';
    133126  }
     127
     128  return $url.$separator.'id='.$page['session_id'];
    134129}
    135130
Note: See TracChangeset for help on using the changeset viewer.