Changeset 7066 for extensions/event_cats
- Timestamp:
- Oct 1, 2010, 10:33:48 PM (14 years ago)
- Location:
- extensions/event_cats
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/event_cats/admin/autolog_entries.inc.php
r4470 r7066 104 104 elseif ($a == 3) { // Image 105 105 $url_end.= ($url_end == '') ? '' : '&img='.$arg2; 106 $t = mysql_fetch_row(pwg_query("106 $t = pwg_db_fetch_row(pwg_query(" 107 107 SELECT `name`, `file` 108 108 FROM `".IMAGES_TABLE."` -
extensions/event_cats/admin/template/duplication.tpl
r6269 r7066 87 87 </td> 88 88 </tr> 89 </table> 89 </table><br /> 90 90 <input class = "submit" type = "submit" name = "ec_duplic_conf_submit" value = "{'Save dup. config btn'|@translate}" /> 91 91 </fieldset> … … 103 103 <li><label><input type = "checkbox" name = "deny_groups[]" value = "{$id}" /> {$all_groups[$id]}</label></li> 104 104 {/foreach} 105 </ul> 105 </ul><br /> 106 106 <input class = "submit" type = "submit" name = "deny_groups_submit" value = "{'Deny to groups btn'|@translate}" /> 107 107 </fieldset> … … 113 113 <li><label><input type = "checkbox" name = "grant_groups[]" value = "{$id}"> {$all_groups[$id]}</label></li> 114 114 {/foreach} 115 </ul> 115 </ul><br /> 116 116 <input class = "submit" type = "submit" name = "grant_groups_submit" value = "{'Grant to groups btn'|@translate}" /> 117 117 </fieldset> … … 129 129 <li><label><input type = "checkbox" name = "deny_types[]" value = "{$id}" /> {$all_types[$id]}</label></li> 130 130 {/foreach} 131 </ul> 131 </ul><br /> 132 132 <input class = "submit" type = "submit" name = "deny_types_submit" value = "{'Deny to types btn'|@translate}" /> 133 133 </fieldset> … … 143 143 <li><label><input type = "checkbox" name = "grant_types[]" value = "{$id}" /> {$all_types[$id]}</label></li> 144 144 {/foreach} 145 </ul> 145 </ul><br /> 146 146 <input class = "submit" type = "submit" name = "grant_types_submit" value = "{'Grant to types btn'|@translate}" /> 147 147 </fieldset> … … 155 155 <li><label><input type = "checkbox" name = "deny_users[]" value = "{$id}" /> {$all_users[$id]}</label></li> 156 156 {/foreach} 157 </ul> 157 </ul><br /> 158 158 <input class = "submit" type = "submit" name = "deny_users_submit" value = "{'Deny to users btn'|@translate}" /> 159 159 </fieldset> … … 176 176 <li><label><input type = "checkbox" name = "grant_users[]" value = "{$id}"> {$all_users[$id]}</label></li> 177 177 {/foreach} 178 </ul> 178 </ul><br /> 179 179 <input class = "submit" type = "submit" name = "grant_users_submit" value = "{'Grant to users btn'|@translate}" /> 180 180 </fieldset> -
extensions/event_cats/include/ec_conf.inc.php
r4553 r7066 37 37 // following instructions : 38 38 /* 39 $t = mysql_fetch_row(pwg_query("39 $t = pwg_db_fetch_row(pwg_query(" 40 40 SELECT `value` 41 41 FROM `".CONFIG_TABLE."` … … 124 124 $t = array(); $u = '0'; $v = false; 125 125 if ($v = ( 126 ($t = mysql_fetch_row(pwg_query("126 ($t = pwg_db_fetch_row(pwg_query(" 127 127 SELECT `value` 128 128 FROM `".CONFIG_TABLE."` -
extensions/event_cats/include/evntcats_admin_funcs.inc.php
r4472 r7066 137 137 $t2 = 0; $t3 = false; $t4 = false; 138 138 while ( // The check is executed once at minimum 139 !($t3 = mysql_fetch_row(pwg_query("139 !($t3 = pwg_db_fetch_row(pwg_query(" 140 140 SELECT `id` 141 141 FROM `".GROUPS_TABLE."` … … 274 274 AND `user_id` = '$ec_user_id'; 275 275 "); 276 while ($row = mysql_fetch_array($result))276 while ($row = pwg_db_fetch_assoc($result)) 277 277 $granteds[$row['cat_id']][] = $row['user_id']; 278 278 $inserts = array(); … … 553 553 $arg2p = ($arg2 == 'NULL') ? 'IS NULL' : ' = '.$arg2; 554 554 $ec_user_idp = ($ec_user_id == 'NULL') ? 'IS NULL' : ' = '.$ec_user_id; 555 if (($t1 = mysql_fetch_row(pwg_query("555 if (($t1 = pwg_db_fetch_row(pwg_query(" 556 556 SELECT `id` 557 557 FROM `".EVNTCATS_TABLE."` … … 571 571 if ($del_other) { 572 572 if (( 573 $t1 = mysql_fetch_row(pwg_query("573 $t1 = pwg_db_fetch_row(pwg_query(" 574 574 SELECT `code` 575 575 FROM `".EVNTCATS_TABLE."` … … 583 583 AND `id` <> ".$_POST['ec_entry_sel'] 584 584 ); 585 while ($t2 = mysql_fetch_row($r)) if (!ec_delete_entry_OK($t2[0]))585 while ($t2 = pwg_db_fetch_row($r)) if (!ec_delete_entry_OK($t2[0])) 586 586 return false; 587 587 } … … 662 662 function ec_delete_entry_OK($ec_id) { 663 663 global $page; 664 if (count($t = mysql_fetch_row(pwg_query("664 if (count($t = pwg_db_fetch_row(pwg_query(" 665 665 SELECT `code` 666 666 FROM `".EVNTCATS_TABLE."` -
extensions/event_cats/include/evntcats_main_funcs.inc.php
r4486 r7066 77 77 */ 78 78 function ec_image_exists($cat, $img) { 79 return ( mysql_fetch_row(pwg_query("79 return (pwg_db_fetch_row(pwg_query(" 80 80 SELECT * 81 81 FROM `".IMAGE_CATEGORY_TABLE."` … … 190 190 if (defined('ADD_PAGES_TABLE')) { 191 191 $res = pwg_query("SELECT `id`, `title` FROM `".ADD_PAGES_TABLE."`;"); 192 while ($r = mysql_fetch_array($res)) {192 while ($r = pwg_db_fetch_assoc($res)) { 193 193 $a = (is_in($r['title'], '/user_id=')) ? 194 194 explode('/user_id=' , $r['title']) : array($r['title']); … … 264 264 ORDER BY `id` 265 265 "); 266 while ($r = mysql_fetch_assoc($q))266 while ($r = pwg_db_fetch_assoc($q)) 267 267 $ec_lists['ec_table'][intval($r['id'])] = $r; 268 268 … … 378 378 // certain group (in groups, level (friends, family, contacts), 379 379 // or user status (generic)) 380 $types_entry_exists = (($t = mysql_fetch_row(pwg_query("380 $types_entry_exists = (($t = pwg_db_fetch_row(pwg_query(" 381 381 SELECT `arg2` 382 382 FROM `".EVNTCATS_TABLE."` … … 478 478 AND `user_id` > 2; 479 479 "); 480 while ($row = mysql_fetch_array($result)) {480 while ($row = pwg_db_fetch_assoc($result)) { 481 481 if (!isset($user_granted_from_type[$row['level']])) { 482 482 $user_granted_from_type[$row['level']] = array(); … … 517 517 AND `user_id` > 2; 518 518 "); 519 while ($row = mysql_fetch_array($result)) {519 while ($row = pwg_db_fetch_assoc($result)) { 520 520 if (!isset($granted_groups[$row['group_id']])) { 521 521 $granted_groups[$row['group_id']] = array(); -
extensions/event_cats/main.inc.php
r7064 r7066 243 243 "); 244 244 $insert = array(); 245 while ($row = mysql_fetch_assoc($result))245 while ($row = pwg_db_fetch_assoc($result)) 246 246 $insert[] = "(".$new_user['id'].",".$row['cat_id'].")"; 247 247 if (!empty($insert)) pwg_query(" … … 257 257 "); 258 258 $insert = array(); 259 while ($row = mysql_fetch_assoc($result))259 while ($row = pwg_db_fetch_assoc($result)) 260 260 $insert[] = "(".$new_user['id'].",".$row['group_id'].")"; 261 261 if (!empty($insert)) pwg_query(" … … 271 271 "); 272 272 $insert = array(); 273 while ($row = mysql_fetch_assoc($result))273 while ($row = pwg_db_fetch_assoc($result)) 274 274 $insert[] = "(".$new_user['id'].",".$row['level'].")"; 275 275 if (!empty($insert)) pwg_query("
Note: See TracChangeset
for help on using the changeset viewer.