Changeset 20207


Ignore:
Timestamp:
01/17/13 14:39:41 (6 years ago)
Author:
mistic100
Message:

replace mysql functions by pwg_db

Location:
extensions/lightbox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/lightbox/admin/functions.inc.php

    r3298 r20207  
    140140    $result = pwg_query($query); 
    141141 
    142     while ($row = mysql_fetch_assoc($result)) 
     142    while ($row = pwg_db_fetch_assoc($result)) 
    143143    { 
    144144      if ($row['lightbox'] == 'true') 
  • extensions/lightbox/functions.inc.php

    r17487 r20207  
    6060  $result = pwg_query($query); 
    6161  $pictures = array(); 
    62   while ($row = mysql_fetch_assoc($result)) 
     62  while ($row = pwg_db_fetch_assoc($result)) 
    6363  { 
    6464    $row['rank'] = $rank_of[ $row['id'] ]; 
  • extensions/lightbox/get_content.php

    r17487 r20207  
    1818} 
    1919 
    20 $image_id = mysql_real_escape_string($_GET['imgid']); 
     20$image_id = pwg_db_real_escape_string($_GET['imgid']); 
    2121 
    2222$query = ' 
  • extensions/lightbox/save_history.php

    r5734 r20207  
    3636if (!empty($_POST['section'])) 
    3737{ 
    38   $page['section'] = mysql_real_escape_string($_POST['section']); 
     38  $page['section'] = pwg_db_real_escape_string($_POST['section']); 
    3939} 
    4040if (!empty($_POST['catid'])) 
    4141{ 
    42   $page['category']['id'] = mysql_real_escape_string($_POST['catid']); 
     42  $page['category']['id'] = pwg_db_real_escape_string($_POST['catid']); 
    4343} 
    4444if ('tags'==@$page['section'] and !empty($_POST['tagids'])) 
    4545{ 
    46   $tags_string = mysql_real_escape_string($_POST['tagids']); 
     46  $tags_string = pwg_db_real_escape_string($_POST['tagids']); 
    4747} 
    4848 
Note: See TracChangeset for help on using the changeset viewer.