Ignore:
Timestamp:
Mar 27, 2004, 9:05:01 AM (20 years ago)
Author:
z0rglub
Message:

refactoring

File:
1 edited

Legend:

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

    r375 r397  
    124124// special for $user['restrictions'] array
    125125$user['restrictions'] = explode( ',', $user['forbidden_categories'] );
    126 if ( $user['restrictions'][0] == '' ) $user['restrictions'] = array();
     126if ( $user['restrictions'][0] == '' )
     127{
     128  $user['restrictions'] = array();
     129}
     130
    127131$isadmin = false;
    128 if ($user['status'] == 'admin') $isadmin =true;
     132if ( $user['status'] == 'admin' )
     133{
     134  $isadmin =true;
     135}
    129136// calculation of the number of picture to display per page
    130137$user['nb_image_page'] = $user['nb_image_line'] * $user['nb_line_page'];
     138
    131139init_userprefs($user);
     140
    132141$user['lien_expanded']='./template/'.$user['template'].'/theme/expanded.gif';
    133142$user['lien_collapsed']='./template/'.$user['template'].'/theme/collapsed.gif';
Note: See TracChangeset for help on using the changeset viewer.