/** * @fn software_comment_mark_as_spam * @short Action method to mark a software comment as spam. */ public function software_comment_mark_as_spam() { if ($this->request->is_post()) { if (!empty($_POST['id'])) { $comment = new SoftwareComment(); $comment->find_by_id($_REQUEST['id']); if (!Antispam::check_spam_signature($comment->text)) { Antispam::store_spam_signature($comment->text); } } $this->render(NULL); } }