cvs: phpweb /manual add-note.php

From: Date: Thu, 26 Jan 2006 17:06:21 +0000
Subject: cvs: phpweb /manual add-note.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-30504@lists.php.net to get a copy of this message
nlopess Thu Jan 26 17:06:21 2006 UTC Modified files: /phpweb/manual add-note.php Log: add error message for [SPAM WORD] http://cvs.php.net/viewcvs.cgi/phpweb/manual/add-note.php?r1=1.66&r2=1.67&diff_format=u Index: phpweb/manual/add-note.php diff -u phpweb/manual/add-note.php:1.66 phpweb/manual/add-note.php:1.67 --- phpweb/manual/add-note.php:1.66 Sat Jan 21 20:59:24 2006 +++ phpweb/manual/add-note.php Thu Jan 26 17:06:21 2006 @@ -1,5 +1,5 @@ <?php -// $Id: add-note.php,v 1.66 2006/01/21 20:59:24 nlopess Exp $ +// $Id: add-note.php,v 1.67 2006/01/26 17:06:21 nlopess Exp $ $_SERVER['BASE_PAGE'] = 'manual/add-note.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/posttohost.inc'; @@ -103,6 +103,8 @@ print "<p class=\"formerror\">As a security precaution, we only allow a certain number of notes to be submitted per minute. At this time, this number has been exceeded. Please re-submit your note in about a minute.</p>"; } else if (strpos($result, '[SPAMMER]') !== FALSE) { print '<p class="formerror">Your IP is listed in one of the spammers lists we use. If you think this is an error, please contact the <a href="mailto:webmaster@php.net">webmaster</a>.</p>'; + } else if (strpos($result, '[SPAM WORD]') !== FALSE) { + echo '<p class="formerror">Your note contains a prohibited (usually SPAM) word. Please remove it and try again.</p>'; } else { echo "<!-- $result -->"; echo "<p class=\"formerror\">There was an internal error processing your submission. Please try to submit again later.</p>";

« previous php.mirrors (#30504) next »