Ignore:
Timestamp:
Oct 30, 2004, 5:42:29 PM (19 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/cat_perm.php

    r364 r587  
    5252  $query.= ' WHERE cat_id = '.$page['cat'];
    5353  $query.= ';';
    54   mysql_query( $query );
     54  pwg_query( $query );
    5555  $query = 'SELECT id';
    5656  $query.= ' FROM '.PREFIX_TABLE.'groups';
    5757  $query.= ';';
    58   $result = mysql_query( $query );
     58  $result = pwg_query( $query );
    5959  while ( $row = mysql_fetch_array( $result ) )
    6060  {
     
    6666      $query.= ' ('.$page['cat'].','.$row['id'].')';
    6767      $query.= ';';
    68       mysql_query( $query );
     68      pwg_query( $query );
    6969    }
    7070  }
     
    7474  $query.= ' WHERE cat_id = '.$page['cat'];
    7575  $query.= ';';
    76   mysql_query( $query );
     76  pwg_query( $query );
    7777  $query = 'SELECT id';
    7878  $query.= ' FROM '.USERS_TABLE;
    7979  $query.= ';';
    80   $result = mysql_query( $query );
     80  $result = pwg_query( $query );
    8181  while ( $row = mysql_fetch_array( $result ) )
    8282  {
     
    8888      $query.= ' ('.$page['cat'].','.$row['id'].')';
    8989      $query.= ';';
    90       mysql_query( $query );
     90      pwg_query( $query );
    9191    }
    9292    check_favorites( $row['id'] );
     
    9999$query.= ' FROM '.PREFIX_TABLE.'groups';
    100100$query. ';';
    101 $result = mysql_query( $query );
     101$result = pwg_query( $query );
    102102if ( mysql_num_rows( $result ) > 0 )
    103103{
     
    108108  $query.= ' WHERE cat_id = '.$_GET['cat_id'];
    109109  $query.= ';';
    110   $subresult = mysql_query( $query );
     110  $subresult = pwg_query( $query );
    111111  $authorized_groups = array();
    112112  while ( $subrow = mysql_fetch_array( $subresult ) )
     
    145145}
    146146$query.= ';';
    147 $result = mysql_query( $query );
     147$result = pwg_query( $query );
    148148while ( $row = mysql_fetch_array( $result ) )
    149149{
     
    196196  $query.= ' AND ug.user_id = '.$row['id'];
    197197  $query.= ';';
    198   $subresult = mysql_query( $query );
     198  $subresult = pwg_query( $query );
    199199  if ( mysql_num_rows( $subresult ) > 0 )
    200200  {
Note: See TracChangeset for help on using the changeset viewer.