- Timestamp:
- Nov 15, 2009, 1:26:09 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 51 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/cat_modify.php
r3282 r4265 194 194 WHERE id = '.$_GET['cat_id'].' 195 195 ;'; 196 $category = mysql_fetch_a rray( pwg_query( $query ) );196 $category = mysql_fetch_assoc( pwg_query( $query ) ); 197 197 // nullable fields 198 198 foreach (array('comment','dir','site_id', 'id_uppercat') as $nullable) … … 374 374 WHERE id = '.$category['representative_picture_id'].' 375 375 ;'; 376 $row = mysql_fetch_a rray(pwg_query($query));376 $row = mysql_fetch_assoc(pwg_query($query)); 377 377 $src = get_thumbnail_url($row); 378 378 $url = get_root_url().'admin.php?page=picture_modify'; -
trunk/admin/cat_perm.php
r3282 r4265 46 46 WHERE id = '.$_GET['cat'].' 47 47 ;'; 48 list($status) = mysql_fetch_ array(pwg_query($query));48 list($status) = mysql_fetch_row(pwg_query($query)); 49 49 50 50 if ('private' == $status) … … 63 63 ;'; 64 64 65 list($page['cat']) = mysql_fetch_ array(pwg_query($query));65 list($page['cat']) = mysql_fetch_row(pwg_query($query)); 66 66 } 67 67 … … 111 111 ;'; 112 112 $result = pwg_query($query); 113 while ($row = mysql_fetch_a rray($result))113 while ($row = mysql_fetch_assoc($result)) 114 114 { 115 115 array_push($granteds[$row['cat_id']], $row['group_id']); … … 170 170 ;'; 171 171 $result = pwg_query($query); 172 while ($row = mysql_fetch_a rray($result))172 while ($row = mysql_fetch_assoc($result)) 173 173 { 174 174 array_push($granteds[$row['cat_id']], $row['user_id']); … … 275 275 '; 276 276 $result = pwg_query($query); 277 while ($row = mysql_fetch_a rray($result))277 while ($row = mysql_fetch_assoc($result)) 278 278 { 279 279 if (!isset($granted_groups[$row['group_id']])) -
trunk/admin/configuration.php
r3445 r4265 139 139 //echo '<pre>'; print_r($_POST); echo '</pre>'; 140 140 $result = pwg_query('SELECT param FROM '.CONFIG_TABLE); 141 while ($row = mysql_fetch_a rray($result))141 while ($row = mysql_fetch_assoc($result)) 142 142 { 143 143 if (isset($_POST[$row['param']])) -
trunk/admin/element_set.php
r3282 r4265 193 193 $query = 'SELECT MAX(date_available) AS date 194 194 FROM '.IMAGES_TABLE; 195 if ($row =mysql_fetch_array( pwg_query($query) ) )195 if ($row = mysql_fetch_assoc( pwg_query($query) ) ) 196 196 { 197 197 $query = 'SELECT id -
trunk/admin/element_set_global.php
r3282 r4265 246 246 $result = pwg_query($query); 247 247 248 while ($row = mysql_fetch_a rray($result))248 while ($row = mysql_fetch_assoc($result)) 249 249 { 250 250 $data = array(); -
trunk/admin/element_set_ranks.php
r3282 r4265 116 116 WHERE id = '.$page['category_id'].' 117 117 ;'; 118 $category = mysql_fetch_a rray(pwg_query($query));118 $category = mysql_fetch_assoc(pwg_query($query)); 119 119 120 120 // Navigation path -
trunk/admin/element_set_unit.php
r3282 r4265 57 57 $result = pwg_query($query); 58 58 59 while ($row = mysql_fetch_a rray($result))59 while ($row = mysql_fetch_assoc($result)) 60 60 { 61 61 $data = array(); -
trunk/admin/group_list.php
r3282 r4265 176 176 $toggle_is_default_url = $admin_url.'group_list&toggle_is_default='; 177 177 178 while ($row = mysql_fetch_a rray($result))178 while ($row = mysql_fetch_assoc($result)) 179 179 { 180 180 $query = ' -
trunk/admin/group_perm.php
r3282 r4265 80 80 ;'; 81 81 $result = pwg_query($query); 82 while ($row = mysql_fetch_a rray($result))82 while ($row = mysql_fetch_assoc($result)) 83 83 { 84 84 array_push($private_uppercats, $row['id']); … … 97 97 $result = pwg_query($query); 98 98 99 while ($row = mysql_fetch_a rray($result))99 while ($row = mysql_fetch_assoc($result)) 100 100 { 101 101 array_push($authorized_ids, $row['cat_id']); … … 158 158 $result = pwg_query($query_true); 159 159 $authorized_ids = array(); 160 while ($row = mysql_fetch_a rray($result))160 while ($row = mysql_fetch_assoc($result)) 161 161 { 162 162 array_push($authorized_ids, $row['id']); -
trunk/admin/history.php
r3282 r4265 258 258 259 259 $username_of = array(); 260 while ($row = mysql_fetch_a rray($result))260 while ($row = mysql_fetch_assoc($result)) 261 261 { 262 262 $username_of[$row['id']] = $row['username']; … … 306 306 307 307 $result = pwg_query($query); 308 while ($row = mysql_fetch_a rray($result))308 while ($row = mysql_fetch_assoc($result)) 309 309 { 310 310 $label_of_image[ $row['id'] ] = $row['label']; … … 342 342 343 343 $result = pwg_query($query); 344 while ($row = mysql_fetch_a rray($result))344 while ($row = mysql_fetch_assoc($result)) 345 345 { 346 346 $name_of_tag[ $row['id'] ] = $row['name']; -
trunk/admin/include/c13y_internal.class.php
r3282 r4265 127 127 128 128 $result = pwg_query($query); 129 while ($row = mysql_fetch_a rray($result))129 while ($row = mysql_fetch_assoc($result)) 130 130 { 131 131 $status[$row['id']] = $row['status']; -
trunk/admin/include/functions.php
r3657 r4265 37 37 $result = pwg_query($query); 38 38 $category_ids = array(); 39 while ($row = mysql_fetch_a rray($result))39 while ($row = mysql_fetch_assoc($result)) 40 40 { 41 41 array_push($category_ids, $row['id']); … … 78 78 $result = pwg_query($query); 79 79 $element_ids = array(); 80 while ($row = mysql_fetch_a rray($result))80 while ($row = mysql_fetch_assoc($result)) 81 81 { 82 82 array_push($element_ids, $row['id']); … … 545 545 $columns = array(); 546 546 $all_fields = array_merge($dbfields['primary'], $dbfields['update']); 547 while ($row = mysql_fetch_a rray($result))547 while ($row = mysql_fetch_assoc($result)) 548 548 { 549 549 if (in_array($row['Field'], $all_fields)) … … 631 631 632 632 $result = pwg_query($query); 633 while ($row = mysql_fetch_a rray($result))633 while ($row = mysql_fetch_assoc($result)) 634 634 { 635 635 if ($row['id_uppercat'] != $current_uppercat) … … 777 777 ;'; 778 778 $result = pwg_query($query); 779 while ($row = mysql_fetch_a rray($result))779 while ($row = mysql_fetch_assoc($result)) 780 780 { 781 781 $uppercats = array_merge($uppercats, … … 804 804 LIMIT 0,1 805 805 ;'; 806 list($representative) = mysql_fetch_ array(pwg_query($query));806 list($representative) = mysql_fetch_row(pwg_query($query)); 807 807 808 808 array_push( … … 864 864 ;'; 865 865 $result = pwg_query($query); 866 while ($row = mysql_fetch_a rray($result))866 while ($row = mysql_fetch_assoc($result)) 867 867 { 868 868 array_push($categories, $row); … … 1140 1140 $datas = array(); 1141 1141 1142 while ($row = mysql_fetch_a rray($result))1142 while ($row = mysql_fetch_assoc($result)) 1143 1143 { 1144 1144 array_push( … … 1207 1207 ;'; 1208 1208 $result = pwg_query($query); 1209 while ($row = mysql_fetch_a rray($result))1209 while ($row = mysql_fetch_assoc($result)) 1210 1210 { 1211 1211 $categories[$row['id']] = … … 1356 1356 WHERE id_uppercat '.(is_numeric($parent_id) ? '= '.$parent_id : 'IS NULL').' 1357 1357 ;'; 1358 list($current_rank) = mysql_fetch_ array(pwg_query($query));1358 list($current_rank) = mysql_fetch_row(pwg_query($query)); 1359 1359 1360 1360 $insert = array( … … 1372 1372 WHERE id = '.$parent_id.' 1373 1373 ;'; 1374 $parent = mysql_fetch_a rray(pwg_query($query));1375 1376 $insert {'id_uppercat'} = $parent{'id'};1377 $insert {'global_rank'} = $parent{'global_rank'}.'.'.$insert{'rank'};1374 $parent = mysql_fetch_assoc(pwg_query($query)); 1375 1376 $insert['id_uppercat'] = $parent['id']; 1377 $insert['global_rank'] = $parent['global_rank'].'.'.$insert['rank']; 1378 1378 1379 1379 // at creation, must a category be visible or not ? Warning : if the … … 1382 1382 if ('false' == $parent['visible']) 1383 1383 { 1384 $insert {'visible'}= 'false';1384 $insert['visible'] = 'false'; 1385 1385 } 1386 1386 else 1387 1387 { 1388 $insert {'visible'}= boolean_to_string($conf['newcat_default_visible']);1388 $insert['visible'] = boolean_to_string($conf['newcat_default_visible']); 1389 1389 } 1390 1390 … … 1394 1394 if ('private' == $parent['status']) 1395 1395 { 1396 $insert {'status'}= 'private';1396 $insert['status'] = 'private'; 1397 1397 } 1398 1398 else 1399 1399 { 1400 $insert {'status'}= $conf['newcat_default_status'];1400 $insert['status'] = $conf['newcat_default_status']; 1401 1401 } 1402 1402 } 1403 1403 else 1404 1404 { 1405 $insert {'visible'}= boolean_to_string($conf['newcat_default_visible']);1406 $insert {'status'}= $conf['newcat_default_status'];1407 $insert {'global_rank'} = $insert{'rank'};1405 $insert['visible'] = boolean_to_string($conf['newcat_default_visible']); 1406 $insert['status'] = $conf['newcat_default_status']; 1407 $insert['global_rank'] = $insert['rank']; 1408 1408 } 1409 1409 … … 1610 1610 $query = 'SHOW TABLES LIKE \''.$prefixeTable.'%\''; 1611 1611 $result = pwg_query($query); 1612 while ($row = mysql_fetch_a rray($result))1612 while ($row = mysql_fetch_assoc($result)) 1613 1613 { 1614 1614 array_push($all_tables, $row[0]); … … 1626 1626 $query = 'DESC '.$table_name.';'; 1627 1627 $result = pwg_query($query); 1628 while ($row = mysql_fetch_a rray($result))1628 while ($row = mysql_fetch_assoc($result)) 1629 1629 { 1630 1630 if ($row['Key'] == 'PRI') -
trunk/admin/include/functions_metadata.php
r3282 r4265 260 260 ;'; 261 261 $result = pwg_query($query); 262 while ($row = mysql_fetch_a rray($result))262 while ($row = mysql_fetch_assoc($result)) 263 263 { 264 264 array_push($cat_ids, $row['id']); … … 285 285 ;'; 286 286 $result = pwg_query($query); 287 while ($row = mysql_fetch_a rray($result))287 while ($row = mysql_fetch_assoc($result)) 288 288 { 289 289 $files[$row['id']] = $row['path']; -
trunk/admin/include/functions_notification_by_mail.inc.php
r3282 r4265 168 168 if (!empty($result)) 169 169 { 170 while ($nbm_user = mysql_fetch_a rray($result))170 while ($nbm_user = mysql_fetch_assoc($result)) 171 171 { 172 172 array_push($data_users, $nbm_user); -
trunk/admin/include/functions_permalinks.php
r3282 r4265 53 53 $cat_id = null; 54 54 if ( mysql_num_rows($result) ) 55 list( $cat_id ) = mysql_fetch_ array($result);55 list( $cat_id ) = mysql_fetch_row($result); 56 56 return $cat_id; 57 57 } … … 75 75 if ( mysql_num_rows($result) ) 76 76 { 77 list($permalink) = mysql_fetch_ array($result);77 list($permalink) = mysql_fetch_row($result); 78 78 } 79 79 if ( !isset($permalink) ) -
trunk/admin/notification_by_mail.php
r3282 r4265 151 151 $check_key_list = array(); 152 152 153 while ($nbm_user = mysql_fetch_a rray($result))153 while ($nbm_user = mysql_fetch_assoc($result)) 154 154 { 155 155 // Calculate key … … 513 513 // Update param 514 514 $result = pwg_query('select param, value from '.CONFIG_TABLE.' where param like \'nbm\\_%\''); 515 while ($nbm_user = mysql_fetch_a rray($result))515 while ($nbm_user = mysql_fetch_assoc($result)) 516 516 { 517 517 if (isset($_POST[$nbm_user['param']])) -
trunk/admin/picture_modify.php
r3390 r4265 176 176 WHERE id = '.$_GET['image_id'].' 177 177 ;'; 178 $row = mysql_fetch_a rray(pwg_query($query));178 $row = mysql_fetch_assoc(pwg_query($query)); 179 179 180 180 $storage_category_id = null; … … 325 325 $result = pwg_query($query); 326 326 327 while ($row = mysql_fetch_a rray($result))327 while ($row = mysql_fetch_assoc($result)) 328 328 { 329 329 $name = … … 418 418 array_push($associateds, $storage_category_id); 419 419 } 420 while ($row = mysql_fetch_a rray($result))420 while ($row = mysql_fetch_assoc($result)) 421 421 { 422 422 array_push($associateds, $row['id']); -
trunk/admin/rating.php
r3282 r4265 95 95 ;'; 96 96 $result = pwg_query($query); 97 while ($row = mysql_fetch_a rray($result))97 while ($row = mysql_fetch_assoc($result)) 98 98 { 99 99 $users[$row['id']]=$row['username']; … … 215 215 ); 216 216 217 while ($row = mysql_fetch_a rray($result))217 while ($row = mysql_fetch_assoc($result)) 218 218 { 219 219 -
trunk/admin/site_manager.php
r3282 r4265 99 99 WHERE galleries_url = \''.$url.'\' 100 100 ;'; 101 $row = mysql_fetch_a rray(pwg_query($query));101 $row = mysql_fetch_assoc(pwg_query($query)); 102 102 if ($row['count'] > 0) 103 103 { … … 168 168 WHERE id = '.$page['site'].' 169 169 ;'; 170 list($galleries_url) = mysql_fetch_ array(pwg_query($query));170 list($galleries_url) = mysql_fetch_row(pwg_query($query)); 171 171 switch($_GET['action']) 172 172 { … … 237 237 $result = pwg_query($query); 238 238 239 while ($row = mysql_fetch_a rray($result))239 while ($row = mysql_fetch_assoc($result)) 240 240 { 241 241 $is_remote = url_is_remote($row['galleries_url']); -
trunk/admin/site_update.php
r3282 r4265 186 186 FROM '.CATEGORIES_TABLE; 187 187 $result = pwg_query($query); 188 while ($row = mysql_fetch_a rray($result))188 while ($row = mysql_fetch_assoc($result)) 189 189 { 190 190 $next_rank[$row['id']] = 1; … … 197 197 GROUP BY id_uppercat'; 198 198 $result = pwg_query($query); 199 while ($row = mysql_fetch_a rray($result))199 while ($row = mysql_fetch_assoc($result)) 200 200 { 201 201 // for the id_uppercat NULL, we write 'NULL' and not the empty string … … 211 211 SELECT IF(MAX(id)+1 IS NULL, 1, MAX(id)+1) AS next_id 212 212 FROM '.CATEGORIES_TABLE; 213 list($next_id) = mysql_fetch_ array(pwg_query($query));213 list($next_id) = mysql_fetch_row(pwg_query($query)); 214 214 215 215 // retrieve sub-directories fulldirs from the site reader … … 387 387 AND validated = \'false\''; 388 388 $result = pwg_query($query); 389 while ($row = mysql_fetch_a rray($result))389 while ($row = mysql_fetch_assoc($result)) 390 390 { 391 391 array_push( … … 403 403 SELECT IF(MAX(id)+1 IS NULL, 1, MAX(id)+1) AS next_element_id 404 404 FROM '.IMAGES_TABLE; 405 list($next_element_id) = mysql_fetch_ array(pwg_query($query));405 list($next_element_id) = mysql_fetch_row(pwg_query($query)); 406 406 407 407 $start = get_moment(); … … 556 556 $waiting_to_delete = array(); 557 557 558 while ($row = mysql_fetch_a rray($result))558 while ($row = mysql_fetch_assoc($result)) 559 559 { 560 560 $data = array(); … … 565 565 WHERE storage_category_id = '.$row['storage_category_id'].' 566 566 AND file = \''.$row['file'].'\''; 567 list($data['id']) = mysql_fetch_ array(pwg_query($query));567 list($data['id']) = mysql_fetch_row(pwg_query($query)); 568 568 569 569 foreach ($fields['update'] as $field) -
trunk/admin/stats.php
r3282 r4265 96 96 97 97 $output = array(); 98 while ($row = mysql_fetch_a rray($result))98 while ($row = mysql_fetch_assoc($result)) 99 99 { 100 100 array_push($output, $row); … … 134 134 $first_time_key = null; 135 135 136 while ($row = mysql_fetch_a rray($result))136 while ($row = mysql_fetch_assoc($result)) 137 137 { 138 138 $time_keys = array( -
trunk/admin/tags.php
r3282 r4265 50 50 ;'; 51 51 $result = pwg_query($query); 52 while ($row = mysql_fetch_a rray($result))52 while ($row = mysql_fetch_assoc($result)) 53 53 { 54 54 $current_name_of[ $row['id'] ] = $row['name']; … … 221 221 ;'; 222 222 $result = pwg_query($query); 223 while ($row = mysql_fetch_a rray($result))223 while ($row = mysql_fetch_assoc($result)) 224 224 { 225 225 $name_of[ $row['id'] ] = $row['name']; -
trunk/admin/upload.php
r3720 r4265 101 101 ;'; 102 102 $result = pwg_query($query); 103 while($row = mysql_fetch_a rray($result))103 while($row = mysql_fetch_assoc($result)) 104 104 { 105 105 $dir = get_complete_dir($row['storage_category_id']); … … 154 154 $query.= ';'; 155 155 $result = pwg_query( $query ); 156 while ( $row = mysql_fetch_a rray( $result ) )156 while ( $row = mysql_fetch_assoc( $result ) ) 157 157 { 158 158 if ( !isset( $cat_names[$row['storage_category_id']] ) ) -
trunk/admin/user_list.php
r4068 r4265 116 116 117 117 $result = pwg_query($query); 118 while ($row = mysql_fetch_a rray($result))118 while ($row = mysql_fetch_assoc($result)) 119 119 { 120 120 $user = $row; … … 140 140 ;'; 141 141 $result = pwg_query($query); 142 while ($row = mysql_fetch_a rray($result))142 while ($row = mysql_fetch_assoc($result)) 143 143 { 144 144 array_push( … … 493 493 $result = pwg_query($query); 494 494 495 while ($row = mysql_fetch_a rray($result))495 while ($row = mysql_fetch_assoc($result)) 496 496 { 497 497 $groups[$row['id']] = $row['name']; -
trunk/admin/user_perm.php
r3282 r4265 79 79 ;'; 80 80 $result = pwg_query($query); 81 while ($row = mysql_fetch_a rray($result))81 while ($row = mysql_fetch_assoc($result)) 82 82 { 83 83 array_push($private_uppercats, $row['id']); … … 96 96 $result = pwg_query($query); 97 97 98 while ($row = mysql_fetch_a rray($result))98 while ($row = mysql_fetch_assoc($result)) 99 99 { 100 100 array_push($authorized_ids, $row['cat_id']); … … 159 159 { 160 160 $cats = array(); 161 while ($row = mysql_fetch_a rray($result))161 while ($row = mysql_fetch_assoc($result)) 162 162 { 163 163 array_push($cats, $row); … … 192 192 $result = pwg_query($query_true); 193 193 $authorized_ids = array(); 194 while ($row = mysql_fetch_a rray($result))194 while ($row = mysql_fetch_assoc($result)) 195 195 { 196 196 array_push($authorized_ids, $row['id']); -
trunk/include/calendar_monthly.class.php
r3282 r4265 232 232 $result = pwg_query($query); 233 233 $items=array(); 234 while ($row = mysql_fetch_a rray($result))234 while ($row = mysql_fetch_assoc($result)) 235 235 { 236 236 $y = substr($row['period'], 0, 4); … … 284 284 $result = pwg_query($query); 285 285 $items=array(); 286 while ($row = mysql_fetch_a rray($result))286 while ($row = mysql_fetch_assoc($result)) 287 287 { 288 288 $m = (int)substr($row['period'], 0, 2); … … 334 334 $items=array(); 335 335 $result = pwg_query($query); 336 while ($row = mysql_fetch_a rray($result))336 while ($row = mysql_fetch_assoc($result)) 337 337 { 338 338 $d = (int)$row['period']; -
trunk/include/category_cats.inc.php
r3282 r4265 179 179 ;'; 180 180 $result = pwg_query($query); 181 while ($row = mysql_fetch_a rray($result))181 while ($row = mysql_fetch_assoc($result)) 182 182 { 183 183 $dates_of_category[ $row['category_id'] ] = array( -
trunk/include/functions.inc.php
r3750 r4265 45 45 // columns are 'Field', 'Type' 46 46 $result = pwg_query('desc '.$table); 47 while ($row = mysql_fetch_a rray($result))47 while ($row = mysql_fetch_assoc($result)) 48 48 { 49 49 // we are only interested in the the field given in parameter for the … … 936 936 937 937 $result = pwg_query($query); 938 while ($row = mysql_fetch_a rray($result))938 while ($row = mysql_fetch_assoc($result)) 939 939 { 940 940 array_push($array, $row[$fieldname]); … … 1122 1122 WHERE '.$conf['user_fields']['id'].' = '.$conf['webmaster_id'].' 1123 1123 ;'; 1124 list($email) = mysql_fetch_ array(pwg_query($query));1124 list($email) = mysql_fetch_row(pwg_query($query)); 1125 1125 1126 1126 return $email; … … 1148 1148 } 1149 1149 1150 while ($row = mysql_fetch_a rray($result))1150 while ($row = mysql_fetch_assoc($result)) 1151 1151 { 1152 1152 $conf[ $row['param'] ] = isset($row['value']) ? $row['value'] : ''; … … 1193 1193 1194 1194 $result = pwg_query($query); 1195 while ($row = mysql_fetch_a rray($result))1195 while ($row = mysql_fetch_assoc($result)) 1196 1196 { 1197 1197 $array[ $row[$keyname] ] = $row[$valuename]; … … 1585 1585 // Use MySql date in order to standardize all recent "actions/queries" 1586 1586 list($cache['get_icon']['sql_recent_date']) = 1587 mysql_fetch_ array(pwg_query('select SUBDATE(1587 mysql_fetch_row(pwg_query('select SUBDATE( 1588 1588 CURRENT_DATE,INTERVAL '.$user['recent_period'].' DAY)')); 1589 1589 } -
trunk/include/functions_category.inc.php
r3282 r4265 241 241 $query.= ' FROM '.CATEGORIES_TABLE.' WHERE id = '.$category_id; 242 242 $query.= ';'; 243 $row = mysql_fetch_a rray( pwg_query( $query ) );243 $row = mysql_fetch_assoc( pwg_query( $query ) ); 244 244 $uppercats = $row['uppercats']; 245 245 } … … 252 252 $query.= ';'; 253 253 $result = pwg_query( $query ); 254 while( $row = mysql_fetch_a rray( $result ) )254 while( $row = mysql_fetch_assoc( $result ) ) 255 255 { 256 256 $database_dirs[$row['id']] = $row['dir']; … … 276 276 AND c.id = '.$category_id.' 277 277 ;'; 278 $row = mysql_fetch_a rray(pwg_query($query));278 $row = mysql_fetch_assoc(pwg_query($query)); 279 279 return $row['galleries_url']; 280 280 } … … 385 385 386 386 $subcats = array(); 387 while ($row = mysql_fetch_a rray($result))387 while ($row = mysql_fetch_assoc($result)) 388 388 { 389 389 array_push($subcats, $row['id']); -
trunk/include/functions_mail.inc.php
r3938 r4265 352 352 if (!empty($datas)) 353 353 { 354 while ($admin = mysql_fetch_a rray($datas))354 while ($admin = mysql_fetch_assoc($datas)) 355 355 { 356 356 if (!empty($admin['mail_address'])) … … 451 451 { 452 452 $list = array(); 453 while ($row = mysql_fetch_a rray($result))453 while ($row = mysql_fetch_assoc($result)) 454 454 { 455 455 $row['template_theme'] = $row['template']; … … 480 480 { 481 481 $Bcc = array(); 482 while ($row = mysql_fetch_a rray($result))482 while ($row = mysql_fetch_assoc($result)) 483 483 { 484 484 if (!empty($row['mail_address'])) -
trunk/include/functions_notification.inc.php
r3282 r4265 146 146 $query = 'SELECT count(distinct '.$field_id.') as CountId 147 147 '.$query; 148 list($count) = mysql_fetch_ array(pwg_query($query));148 list($count) = mysql_fetch_row(pwg_query($query)); 149 149 return $count; 150 150 … … 179 179 $infos = array(); 180 180 181 while ($row = mysql_fetch_a rray($result))181 while ($row = mysql_fetch_assoc($result)) 182 182 { 183 183 array_push($infos, $row); -
trunk/include/functions_plugins.inc.php
r3282 r4265 239 239 $result = pwg_query($query); 240 240 $plugins = array(); 241 while ($row = mysql_fetch_a rray($result))241 while ($row = mysql_fetch_assoc($result)) 242 242 { 243 243 array_push($plugins, $row); -
trunk/include/functions_search.inc.php
r4261 r4265 459 459 $by_weights=array(); 460 460 $result = pwg_query($query); 461 while ($row = mysql_fetch_a rray($result))461 while ($row = mysql_fetch_assoc($result)) 462 462 { // weight is important when sorting images by relevance 463 463 if ($row['weight']) -
trunk/include/functions_user.inc.php
r3747 r4265 59 59 '.(is_numeric($user_id) ? 'and '.$conf['user_fields']['id'].' != \''.$user_id.'\'' : '').' 60 60 ;'; 61 list($count) = mysql_fetch_ array(pwg_query($query));61 list($count) = mysql_fetch_row(pwg_query($query)); 62 62 if ($count != 0) 63 63 { … … 111 111 FROM '.USERS_TABLE.' 112 112 ;'; 113 list($next_id) = mysql_fetch_ array(pwg_query($query));113 list($next_id) = mysql_fetch_row(pwg_query($query)); 114 114 115 115 $insert = … … 135 135 136 136 $inserts = array(); 137 while ($row = mysql_fetch_a rray($result))137 while ($row = mysql_fetch_assoc($result)) 138 138 { 139 139 array_push … … 250 250 WHERE '.$conf['user_fields']['id'].' = \''.$user_id.'\''; 251 251 252 $row = mysql_fetch_a rray(pwg_query($query));252 $row = mysql_fetch_assoc(pwg_query($query)); 253 253 254 254 while (true) … … 270 270 } 271 271 272 $row = array_merge($row, mysql_fetch_a rray($result));272 $row = array_merge($row, mysql_fetch_assoc($result)); 273 273 274 274 foreach ($row as $key => $value) … … 325 325 WHERE category_id NOT IN ('.$userdata['forbidden_categories'].') 326 326 AND image_id '.$userdata['image_access_type'].' ('.$userdata['image_access_list'].')'; 327 list($userdata['nb_total_images']) = mysql_fetch_ array(pwg_query($query));327 list($userdata['nb_total_images']) = mysql_fetch_row(pwg_query($query)); 328 328 329 329 … … 429 429 $result = pwg_query($query); 430 430 $authorizeds = array(); 431 while ($row = mysql_fetch_a rray($result))431 while ($row = mysql_fetch_assoc($result)) 432 432 { 433 433 array_push($authorizeds, $row['image_id']); … … 441 441 $result = pwg_query($query); 442 442 $favorites = array(); 443 while ($row = mysql_fetch_a rray($result))443 while ($row = mysql_fetch_assoc($result)) 444 444 { 445 445 array_push($favorites, $row['image_id']); … … 482 482 ;'; 483 483 $result = pwg_query($query); 484 while ($row = mysql_fetch_a rray($result))484 while ($row = mysql_fetch_assoc($result)) 485 485 { 486 486 array_push($private_array, $row['id']); … … 524 524 ;'; 525 525 $result = pwg_query($query); 526 while ($row = mysql_fetch_a rray($result))526 while ($row = mysql_fetch_assoc($result)) 527 527 { 528 528 array_push($forbidden_array, $row['id']); -
trunk/include/picture_comment.inc.php
r3488 r4265 94 94 FROM '.COMMENTS_TABLE.' 95 95 WHERE image_id='.$page['image_id']." AND validated = 'true'"; 96 $row = mysql_fetch_a rray( pwg_query( $query ) );96 $row = mysql_fetch_assoc( pwg_query( $query ) ); 97 97 98 98 // navigation bar creation … … 141 141 $result = pwg_query( $query ); 142 142 143 while ($row = mysql_fetch_a rray($result))143 while ($row = mysql_fetch_assoc($result)) 144 144 { 145 145 if (!empty($row['author'])) -
trunk/include/picture_rate.inc.php
r3282 r4265 38 38 WHERE element_id = '.$picture['current']['id'].' 39 39 ;'; 40 $row = mysql_fetch_a rray(pwg_query($query));40 $row = mysql_fetch_assoc(pwg_query($query)); 41 41 } 42 42 else … … 70 70 if (mysql_num_rows($result) > 0) 71 71 { 72 $row = mysql_fetch_a rray($result);72 $row = mysql_fetch_assoc($result); 73 73 $user_rate = $row['rate']; 74 74 } -
trunk/install/db/12-database.php
r3282 r4265 67 67 $datas = array(); 68 68 69 while ($row = mysql_fetch_a rray($result))69 while ($row = mysql_fetch_assoc($result)) 70 70 { 71 71 array_push( -
trunk/install/db/18-database.php
r3282 r4265 48 48 $datas = array(); 49 49 50 while ($row = mysql_fetch_a rray($result))50 while ($row = mysql_fetch_assoc($result)) 51 51 { 52 52 array_push( -
trunk/install/db/19-database.php
r3282 r4265 69 69 ;'; 70 70 $result = pwg_query($query); 71 while ($row = mysql_fetch_a rray($result))71 while ($row = mysql_fetch_assoc($result)) 72 72 { 73 73 foreach(preg_split('/[,]+/', $row['keywords']) as $keyword) -
trunk/install/db/20-database.php
r3282 r4265 48 48 49 49 $datas = array(); 50 while ($row = mysql_fetch_a rray($result))50 while ($row = mysql_fetch_assoc($result)) 51 51 { 52 52 array_push( -
trunk/install/db/65-database.php
r3282 r4265 166 166 $query = 'SHOW TABLES LIKE "'.$prefixeTable.'%"'; 167 167 $result = pwg_query($query); 168 while ( $row=mysql_fetch_a rray($result) )168 while ( $row=mysql_fetch_assoc($result) ) 169 169 { 170 170 array_push($all_tables, $row[0]); … … 177 177 $result = pwg_query($query); 178 178 $field_definitions=array(); 179 while ( $row=mysql_fetch_a rray($result) )179 while ( $row=mysql_fetch_assoc($result) ) 180 180 { 181 181 if ( !isset($row['Collation']) or $row['Collation']=='NULL' ) -
trunk/install/db/8-database.php
r3282 r4265 61 61 $query = 'SELECT param FROM '.PREFIX_TABLE.'config'; 62 62 $result = pwg_query($query); 63 while ($row = mysql_fetch_a rray($result))63 while ($row = mysql_fetch_assoc($result)) 64 64 { 65 65 unset( $params[ $row['param'] ] ); -
trunk/install/db/9-database.php
r3282 r4265 48 48 $datas = array(); 49 49 50 while ($row = mysql_fetch_a rray($result))50 while ($row = mysql_fetch_assoc($result)) 51 51 { 52 52 array_push( -
trunk/install/upgrade_1.3.0.php
r3282 r4265 85 85 ;'; 86 86 $result = pwg_query($query); 87 while ($row = mysql_fetch_a rray($result))87 while ($row = mysql_fetch_assoc($result)) 88 88 { 89 89 if (!isset($row['id_uppercat']) or $row['id_uppercat'] == '') -
trunk/install/upgrade_1.3.1.php
r3282 r4265 43 43 FROM '.PREFIX_TABLE.'config 44 44 ;'; 45 $save = mysql_fetch_a rray(pwg_query($query));45 $save = mysql_fetch_assoc(pwg_query($query)); 46 46 47 47 $queries = array( … … 345 345 ;'; 346 346 $result = pwg_query($query); 347 while ($row = mysql_fetch_a rray($result))347 while ($row = mysql_fetch_assoc($result)) 348 348 { 349 349 if ($row['Key_name'] != 'PRIMARY') … … 537 537 ;'; 538 538 $result = pwg_query($query); 539 while ($row = mysql_fetch_a rray($result))539 while ($row = mysql_fetch_assoc($result)) 540 540 { 541 541 array_push($cat_ids, $row['unique_storage_category_id']); … … 562 562 ;'; 563 563 $result = pwg_query($query); 564 while ($row = mysql_fetch_a rray($result))564 while ($row = mysql_fetch_assoc($result)) 565 565 { 566 566 array_push($cat_ids, $row['id']); -
trunk/install/upgrade_1.4.0.php
r3282 r4265 43 43 WHERE param = \'prefix_thumbnail\' 44 44 ;'; 45 list($prefix_thumbnail) = mysql_fetch_ array(pwg_query($query));45 list($prefix_thumbnail) = mysql_fetch_row(pwg_query($query)); 46 46 47 47 // delete obsolete configuration … … 195 195 196 196 $result = pwg_query($query); 197 while ($row = mysql_fetch_a rray($result))197 while ($row = mysql_fetch_assoc($result)) 198 198 { 199 199 $row['user_id'] = $row['id']; -
trunk/install/upgrade_1.5.0.php
r3282 r4265 80 80 ;'; 81 81 $result = pwg_query($query); 82 while ($row = mysql_fetch_a rray($result))82 while ($row = mysql_fetch_assoc($result)) 83 83 { 84 84 foreach(preg_split('/[,]+/', $row['keywords']) as $keyword) … … 352 352 $query = 'SELECT param FROM '.PREFIX_TABLE.'config'; 353 353 $result = pwg_query($query); 354 while ($row = mysql_fetch_a rray($result))354 while ($row = mysql_fetch_assoc($result)) 355 355 { 356 356 unset( $params[ $row['param'] ] ); … … 453 453 $result = pwg_query($query); 454 454 455 while ($row = mysql_fetch_a rray($result))455 while ($row = mysql_fetch_assoc($result)) 456 456 { 457 457 if (!in_array($row['Field'], $to_keep)) -
trunk/password.php
r3282 r4265 80 80 $datas = array(); 81 81 82 while ($row = mysql_fetch_a rray($result))82 while ($row = mysql_fetch_assoc($result)) 83 83 { 84 84 $new_password = generate_key(6); -
trunk/picture.php
r3445 r4265 58 58 '.%" ESCAPE "/" LIMIT 1'; 59 59 } 60 if ( ! ( $row = mysql_fetch_a rray(pwg_query($query)) ) )60 if ( ! ( $row = mysql_fetch_assoc(pwg_query($query)) ) ) 61 61 {// element does not exist 62 62 page_not_found( 'The requested image does not exist', … … 388 388 $result = pwg_query($query); 389 389 $related_categories = array(); 390 while ($row = mysql_fetch_a rray($result))390 while ($row = mysql_fetch_assoc($result)) 391 391 { 392 392 array_push($related_categories, $row); … … 768 768 ;'; 769 769 $result = pwg_query($query); 770 $row = mysql_fetch_a rray($result);770 $row = mysql_fetch_assoc($result); 771 771 772 772 if ($row['nb_fav'] == 0) -
trunk/search_rules.php
r3282 r4265 136 136 if (!empty($result)) 137 137 { 138 while ($row = mysql_fetch_a rray($result))138 while ($row = mysql_fetch_assoc($result)) 139 139 { 140 140 array_push($categories, $row); -
trunk/upload.php
r3747 r4265 289 289 $query.= ';'; 290 290 $result= pwg_query( $query ); 291 $row = mysql_fetch_a rray( $result );291 $row = mysql_fetch_assoc( $result ); 292 292 $file = substr ( $row['file'], 0, strrpos ( $row['file'], ".") ); 293 293 $extension = get_extension( $_FILES['picture']['name'] );
Note: See TracChangeset
for help on using the changeset viewer.