cvs: php-master-web /entry user-note.php
| From: | Nuno Lopes | Date: | Thu, 07 Sep 2006 19:24:25 +0000 |
| Subject: | cvs: php-master-web /entry user-note.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-32386@lists.php.net to get a copy of this message | ||
nlopess Thu Sep 7 19:24:25 2006 UTC
Modified files:
/php-master-web/entry user-note.php
Log:
return the ip address that was blocked by spam blacklists
http://cvs.php.net/viewvc.cgi/php-master-web/entry/user-note.php?r1=1.59&r2=1.60&diff_format=u
Index: php-master-web/entry/user-note.php
diff -u php-master-web/entry/user-note.php:1.59 php-master-web/entry/user-note.php:1.60
--- php-master-web/entry/user-note.php:1.59 Sat Sep 2 14:28:36 2006
+++ php-master-web/entry/user-note.php Thu Sep 7 19:24:24 2006
@@ -58,8 +58,8 @@
die("missing some parameters.");
// check if the IP is blacklisted
-if (is_spammer($_SERVER['REMOTE_ADDR']) || is_spammer($ip) || is_spammer($redirip)) {
- die ('[SPAMMER]');
+if (($spamip=is_spammer($_SERVER['REMOTE_ADDR'])) || ($spamip=is_spammer($ip)) ||
($spamip=is_spammer($redirip))) {
+ die ("[SPAMMER] $spamip");
}
// check if the note contains some prohibited words
@@ -203,7 +203,7 @@
$dns = gethostbyname($host);
if ($dns != $host && (empty($list[1]) || $dns != $list[1])) {
- return true;
+ return $ip;
}
}
return false;