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/user_perm.php

    r393 r587  
    122122  $query.= ' WHERE user_id = '.$_GET['user_id'];
    123123  $query.= ';';
    124   mysql_query( $query );
     124  pwg_query( $query );
    125125  // selecting all private categories
    126126  $query = 'SELECT id';
     
    128128  $query.= " WHERE status = 'private'";
    129129  $query.= ';';
    130   $result = mysql_query( $query );
     130  $result = pwg_query( $query );
    131131  while ( $row = mysql_fetch_array( $result ) )
    132132  {
     
    138138      $query.= ' ('.$_GET['user_id'].','.$row['id'].')';
    139139      $query.= ';';
    140       mysql_query ( $query );
     140      pwg_query ( $query );
    141141    }
    142142  }
     
    158158$query.= ' FROM '.PREFIX_TABLE.'groups';
    159159$query.= ';';
    160 $result = mysql_query( $query );
     160$result = pwg_query( $query );
    161161$groups = array();
    162162while ( $row = mysql_fetch_array( $result ) )
     
    169169$query.= ' WHERE user_id = '.$_GET['user_id'];
    170170$query.= ';';
    171 $result = mysql_query( $query );
     171$result = pwg_query( $query );
    172172$usergroups = array();
    173173while ( $row = mysql_fetch_array( $result ) )
     
    180180$query.= " WHERE status = 'private'";
    181181$query.= ';';
    182 $result = mysql_query( $query );
     182$result = pwg_query( $query );
    183183while ( $row = mysql_fetch_array( $result ) )
    184184{
     
    198198  $query.= ' AND cat_id = '.$row['id'];
    199199  $query.= ';';
    200   $subresult = mysql_query( $query );
     200  $subresult = pwg_query( $query );
    201201  $authorized_groups = array();
    202202  while ( $subrow = mysql_fetch_array( $subresult ) )
Note: See TracChangeset for help on using the changeset viewer.