Ignore:
Timestamp:
Oct 30, 2004, 5:42:29 PM (20 years ago)
Author:
z0rglub
Message:
  • function mysql_query replaced by pwg_query : the same with debugging features
  • by default, DEBUG is set to 0 (off)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/remote_site.php

    r538 r587  
    103103    AND dir IS NOT NULL
    104104;';
    105   $result = mysql_query($query);
     105  $result = pwg_query($query);
    106106  while ($row = mysql_fetch_array($result))
    107107  {
     
    156156  $query.= '
    157157;';
    158   mysql_query($query);
     158  pwg_query($query);
    159159}
    160160
     
    234234  WHERE id = '.$id_uppercat.'
    235235;';
    236     $row = mysql_fetch_array(mysql_query($query));
     236    $row = mysql_fetch_array(pwg_query($query));
    237237   
    238238    $uppercats = $row['uppercats'];
     
    325325    $query.= '
    326326;';
    327     mysql_query($query);
     327    pwg_query($query);
    328328  }
    329329
     
    368368  WHERE storage_category_id = '.$category_id.'
    369369;';
    370   $result = mysql_query($query);
     370  $result = pwg_query($query);
    371371  $to_delete = array();
    372372  while ($row = mysql_fetch_array($result))
     
    391391  WHERE storage_category_id = '.$category_id.'
    392392;';
    393   $result = mysql_query($query);
     393  $result = pwg_query($query);
    394394  while ($row = mysql_fetch_array($result))
    395395  {
     
    447447  WHERE storage_category_id = '.$category_id.'
    448448;';
    449     $result = mysql_query($query);
     449    $result = pwg_query($query);
    450450    while ($row = mysql_fetch_array($result))
    451451    {
     
    460460    AND image_id IN ('.implode(',', $ids).')
    461461;';
    462     mysql_query($query);
     462    pwg_query($query);
    463463
    464464    $query = '
     
    478478    $query.= '
    479479;';
    480     mysql_query($query);
     480    pwg_query($query);
    481481  }
    482482}
     
    537537  WHERE galleries_url = \''.$page['galleries_url'].'\'
    538538;';
    539     $row = mysql_fetch_array(mysql_query($query));
     539    $row = mysql_fetch_array(pwg_query($query));
    540540    if ($row['count'] > 0)
    541541    {
     
    571571  (\''.$page['galleries_url'].'\')
    572572;';
    573     mysql_query($query);
     573    pwg_query($query);
    574574
    575575    $template->assign_block_vars(
     
    597597  WHERE id = '.$page['site'].'
    598598;';
    599     list($galleries_url) = mysql_fetch_array(mysql_query($query));
     599    list($galleries_url) = mysql_fetch_array(pwg_query($query));
    600600  }
    601601
     
    647647  WHERE galleries_url = \''.addslashes($url).'\'
    648648;';
    649       $result = mysql_query($query);
     649      $result = pwg_query($query);
    650650      if (mysql_num_rows($result) == 0)
    651651      {
     
    657657  (\''.$url.'\')
    658658;';
    659         mysql_query($query);
     659        pwg_query($query);
    660660        $site_id = mysql_insert_id();
    661661      }
     
    699699  WHERE galleries_url = \''.addslashes($url).'\'
    700700;';
    701     list($count) = mysql_fetch_array(mysql_query($query));
     701    list($count) = mysql_fetch_array(pwg_query($query));
    702702    if ($count == 0)
    703703    {
     
    716716  WHERE id != 1
    717717;';
    718 $result = mysql_query($query);
     718$result = pwg_query($query);
    719719while ($row = mysql_fetch_array($result))
    720720{
Note: See TracChangeset for help on using the changeset viewer.