Changeset 4325 for trunk/include/functions_comment.inc.php
- Timestamp:
- Nov 20, 2009, 3:17:04 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_comment.inc.php
r4306 r4325 101 101 FROM '.USERS_TABLE.' 102 102 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 ) ); 104 104 if ( $row['user_exists'] == 1 ) 105 105 { … … 139 139 WHERE date > FROM_UNIXTIME('.$reference_date.') 140 140 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 ) 142 142 { 143 143 array_push( $infos, l10n('comment_anti-flood') ); … … 169 169 pwg_query($query); 170 170 171 $comm['id'] = mysql_insert_id();171 $comm['id'] = pwg_db_insert_id(); 172 172 173 173 if (($comment_action=='validate' and $conf['email_admin_on_comment']) or … … 267 267 WHERE date > FROM_UNIXTIME('.$reference_date.') 268 268 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 ) 270 270 { 271 271 //?? array_push( $infos, l10n('comment_anti-flood') );
Note: See TracChangeset
for help on using the changeset viewer.