Ignore:
Timestamp:
Nov 20, 2009, 3:17:04 PM (14 years ago)
Author:
nikrou
Message:

Feature 1244 resolved
Replace all mysql functions in core code by ones independant of database engine

Fix small php code synxtax : hash must be accessed with [ ] and not { }.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_comment.inc.php

    r4306 r4325  
    101101  FROM '.USERS_TABLE.'
    102102  WHERE '.$conf['user_fields']['username']." = '".addslashes($comm['author'])."'";
    103       $row = mysql_fetch_assoc( pwg_query( $query ) );
     103      $row = pwg_db_fetch_assoc( pwg_query( $query ) );
    104104      if ( $row['user_exists'] == 1 )
    105105      {
     
    139139  WHERE date > FROM_UNIXTIME('.$reference_date.')
    140140    AND author_id = '.$comm['author_id'];
    141     if ( mysql_num_rows( pwg_query( $query ) ) > 0 )
     141    if ( pwg_db_num_rows( pwg_query( $query ) ) > 0 )
    142142    {
    143143      array_push( $infos, l10n('comment_anti-flood') );
     
    169169    pwg_query($query);
    170170
    171     $comm['id'] = mysql_insert_id();
     171    $comm['id'] = pwg_db_insert_id();
    172172
    173173    if (($comment_action=='validate' and $conf['email_admin_on_comment']) or
     
    267267  WHERE date > FROM_UNIXTIME('.$reference_date.')
    268268    AND author_id = '.$comm['author_id'];
    269     if ( mysql_num_rows( pwg_query( $query ) ) > 0 )
     269    if ( pwg_db_num_rows( pwg_query( $query ) ) > 0 )
    270270    {
    271271      //?? array_push( $infos, l10n('comment_anti-flood') );
Note: See TracChangeset for help on using the changeset viewer.