Changeset 420 for trunk/picture.php
- Timestamp:
- May 20, 2004, 11:22:44 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/picture.php
r405 r420 25 25 // | USA. | 26 26 // +-----------------------------------------------------------------------+ 27 27 28 //----------------------------------------------------------- include 28 29 define('PHPWG_ROOT_PATH','./'); … … 225 226 $reference_date = time() - $conf['anti-flood_time']; 226 227 $query = 'SELECT id FROM '.COMMENTS_TABLE; 227 $query.= ' WHERE date > '.$reference_date;228 $query.= ' WHERE date > FROM_UNIXTIME('.$reference_date.')'; 228 229 $query.= " AND author = '".$author."'"; 229 230 $query.= ';'; … … 234 235 $query.= ' (author,date,image_id,content,validated) VALUES ('; 235 236 $query.= "'".$author."'"; 236 $query.= ', '.time().','.$_GET['image_id'];237 $query.= ',NOW(),'.$_GET['image_id']; 237 238 $query.= ",'".htmlspecialchars( $_POST['content'], ENT_QUOTES)."'"; 238 239 if ( !$conf['comments_validation'] or $user['status'] == 'admin' ) … … 578 579 $template->assign_block_vars('comments.comment', array( 579 580 'COMMENT_AUTHOR'=>empty($row['author'])?$lang['guest']:$row['author'], 580 'COMMENT_DATE'=>format_date( $row['date'], ' unix', true ),581 'COMMENT_DATE'=>format_date( $row['date'], 'mysql_datetime', true ), 581 582 'COMMENT'=>$content 582 583 ));
Note: See TracChangeset
for help on using the changeset viewer.