equal
deleted
inserted
replaced
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) ) |