includes/comment.php
changeset 1223 7dca925b0209
parent 1216 4125e19d3b27
child 1227 bdac73ed481e
equal deleted inserted replaced
1222:d1ded7b4c775 1223:7dca925b0209
   338           $src = $text;
   338           $src = $text;
   339           $sql_subj = $db->escape($subj);
   339           $sql_subj = $db->escape($subj);
   340           $sql_text = $db->escape($text);
   340           $sql_text = $db->escape($text);
   341           $text = RenderMan::render($text);
   341           $text = RenderMan::render($text);
   342           $appr = ( getConfig('approve_comments', '0') == '1' ) ? COMMENT_UNAPPROVED : COMMENT_APPROVED;
   342           $appr = ( getConfig('approve_comments', '0') == '1' ) ? COMMENT_UNAPPROVED : COMMENT_APPROVED;
   343           if ( $appr === COMMENT_APPROVED && $spam_policy === 'moderate' && !$spamcheck )
   343           if ( $spam_policy === 'moderate' && !$spamcheck )
   344             $appr = COMMENT_SPAM;
   344             $appr = COMMENT_SPAM;
   345           $time = time();
   345           $time = time();
   346           $date = enano_date(ED_DATE | ED_TIME, $time);
   346           $date = enano_date(ED_DATE | ED_TIME, $time);
   347           $ip = $_SERVER['REMOTE_ADDR'];
   347           $ip = $_SERVER['REMOTE_ADDR'];
   348           if ( !is_valid_ip($ip) )
   348           if ( !is_valid_ip($ip) )