Changeset 1282 for branches/branch-1_6/include/common.inc.php
- Timestamp:
- Apr 27, 2006, 11:05:07 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1_6/include/common.inc.php
r1119 r1282 163 163 // since basic gallery information is not available 164 164 // 165 $query = ' 166 SELECT param,value 167 FROM '.CONFIG_TABLE.' 168 ;'; 169 if (!($result = pwg_query($query))) 170 { 171 die("Could not query config information"); 172 } 173 174 while ( $row =mysql_fetch_array( $result ) ) 175 { 176 if ( isset( $row['value'] ) ) 177 { 178 $conf[$row['param']] = $row['value']; 179 } 180 else 181 { 182 $conf[$row['param']] = ''; 183 } 184 // If the field is true or false, the variable is transformed into a 185 // boolean value. 186 if ( $conf[$row['param']] == 'true' or $conf[$row['param']] == 'false' ) 187 { 188 $conf[$row['param']] = get_boolean( $conf[$row['param']] ); 189 } 190 } 165 load_conf_from_db(); 191 166 192 167 include(PHPWG_ROOT_PATH.'include/user.inc.php');
Note: See TracChangeset
for help on using the changeset viewer.