cvs: phpweb /manual add-note.php

From: Date: Sat, 21 Jan 2006 20:59:24 +0000
Subject: cvs: phpweb /manual add-note.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-30434@lists.php.net to get a copy of this message
nlopess Sat Jan 21 20:59:24 2006 UTC Modified files: /phpweb/manual add-note.php Log: final step to kick the spammer: add a nice message for users http://cvs.php.net/viewcvs.cgi/phpweb/manual/add-note.php?r1=1.65&r2=1.66&diff_format=u Index: phpweb/manual/add-note.php diff -u phpweb/manual/add-note.php:1.65 phpweb/manual/add-note.php:1.66 --- phpweb/manual/add-note.php:1.65 Mon Jan 16 17:47:17 2006 +++ phpweb/manual/add-note.php Sat Jan 21 20:59:24 2006 @@ -1,5 +1,5 @@ <?php -// $Id: add-note.php,v 1.65 2006/01/16 17:47:17 nlopess Exp $ +// $Id: add-note.php,v 1.66 2006/01/21 20:59:24 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'; @@ -101,6 +101,8 @@ if ($result) { if (strpos($result, '[TOO MANY NOTES]') !== FALSE) { 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 { echo "<!-- $result -->"; echo "<p class=\"formerror\">There was an internal error processing your submission. Please try to submit again later.</p>";

« previous php.mirrors (#30434) next »