- Timestamp:
- 07/24/08 00:55:28 (6 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
makaanga/0.x/htdocs/system/plugins/spamchecker/spamchecker.plugin.php
r1922 r2235 131 131 } 132 132 133 // Any commenter that takes longer than the session timeout is automatically moderated 134 if(!isset($_SESSION['comments_allowed']) || ! in_array(Controller::get_var('ccode'), $_SESSION['comments_allowed'])) { 135 $comment->status = Comment::STATUS_UNAPPROVED; 136 $spamcheck[] = _t("The commenter's session timed out."); 137 } 138 133 139 if( isset($comment->info->spamcheck) && is_array($comment->info->spamcheck)) { 134 140 $comment->info->spamcheck = array_unique(array_merge($comment->info->spamcheck, $spamcheck)); … … 194 200 * @param float $spam_rating The spamminess of the comment as detected by other plugins 195 201 * @param Comment $comment The submitted comment object 196 * @param array $handlervars An darray of handlervars passed in via the comment submission URL202 * @param array $handlervars An array of handlervars passed in via the comment submission URL 197 203 * @return float The original spam rating 198 204 */ … … 209 215 die('<h1>' . _t('The selected action is forbidden.') . '</h1>'); 210 216 } 211 if(!isset($_SESSION['comments_allowed']) || ! in_array($handlervars['ccode'], $_SESSION['comments_allowed'])) {212 ob_end_clean();213 header('HTTP/1.1 403 Forbidden');214 die('<h1>' . _t('The selected action is forbidden.') . '</h1>');215 }216 217 217 218 return $spam_rating;
