Changeset 6596 for trunk/include
- Timestamp:
- Jun 24, 2010, 8:36:24 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_comment.inc.php
r6589 r6596 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.