Changeset 241
- Timestamp:
- Jan 3, 2004, 8:31:34 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/release-1_3/include/user.inc.php
r90 r241 17 17 * * 18 18 ***************************************************************************/ 19 19 20 // retrieving user informations 20 21 // $infos array is used to know the fields to retrieve in the table "users" … … 25 26 'nb_line_page', 'status', 'language', 'maxwidth', 26 27 'maxheight', 'expand', 'show_nb_comments', 'short_period', 27 'long_period', 'template' );28 'long_period', 'template', 'forbidden_categories' ); 28 29 29 30 $query_user = 'SELECT '; … … 103 104 // of the array $user. 104 105 foreach ( $infos as $info ) { 105 $user[$info] = $row[$info];106 106 // If the field is true or false, the variable is transformed into a 107 107 // boolean value. … … 110 110 $user[$info] = get_boolean( $row[$info] ); 111 111 } 112 else if ( $info == 'forbidden_categories' ) 113 { 114 $user[$info] = $row[$info]; 115 $user['restrictions'] = explode( ',', $row[$info] ); 116 if ( $user['restrictions'][0] == '' ) $user['restrictions'] = array(); 117 } 118 else 119 { 120 $user[$info] = $row[$info]; 121 } 112 122 } 113 123 ?>
Note: See TracChangeset
for help on using the changeset viewer.