- Timestamp:
- Jan 28, 2011, 8:56:39 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/event_cats/include/evntcats_main_funcs.inc.php
r7663 r8956 77 77 */ 78 78 function ec_image_exists($cat, $img) { 79 return ( pwg_db_fetch_row(pwg_query("79 return (mysql_fetch_row(pwg_query(" 80 80 SELECT * 81 81 FROM `".IMAGE_CATEGORY_TABLE."` … … 88 88 * str_from_var($var) 89 89 * returns a string easing array var informations displaying in Piwigo : 90 * _ the string return value starts with"<p style = "text-align:left;">" ;90 * _ the string return value starts with"<p align="left">" ; 91 91 * _ all "TAB" characters (chr(10)) are replaced by "<br>" ; 92 92 * _ all spaces are replaced by " ". … … 99 99 function str_from_var($var) { 100 100 return 101 '<p style = "text-align:left;">'.101 '<p align="left">'. 102 102 str_replace( 103 103 chr(10),'<br>', … … 190 190 if (defined('ADD_PAGES_TABLE')) { 191 191 $res = pwg_query("SELECT `id`, `title` FROM `".ADD_PAGES_TABLE."`;"); 192 while ($r = pwg_db_fetch_assoc($res)) {192 while ($r = mysql_fetch_array($res)) { 193 193 $a = (is_in($r['title'], '/user_id=')) ? 194 194 explode('/user_id=' , $r['title']) : array($r['title']); … … 261 261 SELECT * 262 262 FROM `".EVNTCATS_TABLE."` 263 WHERE `code` IS NOT NULL 264 AND `action` IS NOT NULL 263 WHERE `code` IS NOT NULL 265 264 ORDER BY `id` 266 265 "); 267 while ($r = pwg_db_fetch_assoc($q))266 while ($r = mysql_fetch_assoc($q)) 268 267 $ec_lists['ec_table'][intval($r['id'])] = $r; 269 268 … … 332 331 * the global array variable $ec_lists. 333 332 * @return 334 * true or false whether duplication based on user type exists 335 * (user types are guest (0), contact (1), friend (2), family (4), and 336 * admin should be 8, but is not used, as admins can't duplicate; 8 is used 337 * for generic users, and is managed slightly differently as it is not 338 * actually a "user type") 333 * (no return value) 339 334 */ 340 335 function build_dup_groups() { … … 383 378 // certain group (in groups, level (friends, family, contacts), 384 379 // or user status (generic)) 385 $types_entry_exists = (($t = pwg_db_fetch_row(pwg_query("380 $types_entry_exists = (($t = mysql_fetch_row(pwg_query(" 386 381 SELECT `arg2` 387 382 FROM `".EVNTCATS_TABLE."` … … 483 478 AND `user_id` > 2; 484 479 "); 485 while ($row = pwg_db_fetch_assoc($result)) {480 while ($row = mysql_fetch_array($result)) { 486 481 if (!isset($user_granted_from_type[$row['level']])) { 487 482 $user_granted_from_type[$row['level']] = array(); … … 522 517 AND `user_id` > 2; 523 518 "); 524 while ($row = pwg_db_fetch_assoc($result)) {519 while ($row = mysql_fetch_array($result)) { 525 520 if (!isset($granted_groups[$row['group_id']])) { 526 521 $granted_groups[$row['group_id']] = array();
Note: See TracChangeset
for help on using the changeset viewer.