Ignore:
Timestamp:
Oct 1, 2010, 10:33:48 PM (14 years ago)
Author:
LucMorizur
Message:

[Event Cats] Remove all mysql_ instructions ; add <br /> into duplication.tpl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/event_cats/include/evntcats_main_funcs.inc.php

    r4486 r7066  
    7777 */
    7878function ec_image_exists($cat, $img) {
    79   return (mysql_fetch_row(pwg_query("
     79  return (pwg_db_fetch_row(pwg_query("
    8080    SELECT *
    8181    FROM `".IMAGE_CATEGORY_TABLE."`
     
    190190  if (defined('ADD_PAGES_TABLE')) {
    191191    $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)) {
    193193      $a = (is_in($r['title'], '/user_id=')) ?
    194194       explode('/user_id=' , $r['title']) : array($r['title']);
     
    264264    ORDER BY `id`
    265265  ");
    266   while ($r = mysql_fetch_assoc($q))
     266  while ($r = pwg_db_fetch_assoc($q))
    267267   $ec_lists['ec_table'][intval($r['id'])] = $r;
    268268 
     
    378378  // certain group (in groups, level (friends, family, contacts),
    379379  // 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("
    381381    SELECT `arg2`
    382382    FROM `".EVNTCATS_TABLE."`
     
    478478          AND `user_id` > 2;
    479479      ");
    480       while ($row = mysql_fetch_array($result)) {
     480      while ($row = pwg_db_fetch_assoc($result)) {
    481481        if (!isset($user_granted_from_type[$row['level']])) {
    482482          $user_granted_from_type[$row['level']] = array();
     
    517517        AND `user_id` > 2;
    518518    ");
    519     while ($row = mysql_fetch_array($result)) {
     519    while ($row = pwg_db_fetch_assoc($result)) {
    520520      if (!isset($granted_groups[$row['group_id']])) {
    521521        $granted_groups[$row['group_id']] = array();
Note: See TracChangeset for help on using the changeset viewer.