Changeset 6602 for branches/2.1/include/functions_comment.inc.php
- Timestamp:
- Jun 24, 2010, 10:35:46 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.1/include/functions_comment.inc.php
r6590 r6602 134 134 if ($comment_action!='reject' and $conf['anti-flood_time']>0 ) 135 135 { // anti-flood system 136 $reference_date = time() - $conf['anti-flood_time'];136 $reference_date = date('c', time() - $conf['anti-flood_time']); 137 137 $query = ' 138 138 SELECT id FROM '.COMMENTS_TABLE.' 139 WHERE date > FROM_UNIXTIME('.$reference_date.')139 WHERE date > \''.$reference_date.'\' 140 140 AND author_id = '.$comm['author_id']; 141 141 if ( pwg_db_num_rows( pwg_query( $query ) ) > 0 )
Note: See TracChangeset
for help on using the changeset viewer.