cvs: phpweb / mailing-lists.php
| From: | jim winstead | Date: | Wed, 28 Aug 2002 17:06:25 +0000 |
| Subject: | cvs: phpweb / mailing-lists.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-12140@lists.php.net to get a copy of this message | ||
jimw Wed Aug 28 13:06:25 2002 EDT
Modified files:
/phpweb mailing-lists.php
Log:
deal with fake@from.net subscription requests, start tracking ip of submitter
Index: phpweb/mailing-lists.php
diff -u phpweb/mailing-lists.php:1.17 phpweb/mailing-lists.php:1.18
--- phpweb/mailing-lists.php:1.17 Wed Aug 28 07:40:51 2002
+++ phpweb/mailing-lists.php Wed Aug 28 13:06:25 2002
@@ -7,7 +7,7 @@
<?php
if (isset($maillist)) {
# should really grab some email validating routine and use it here.
- if (empty($email) || $email == 'user@example.com') {
+ if (empty($email) || $email == 'user@example.com' || $email ==
'fake@from.net') {
echo "You forgot to specify an email address to be added to the list. ";
echo "Go back and try again.";
} else {
@@ -24,7 +24,7 @@
break;
default:
mail("$maillist-$request-$sub@lists.php.net", "Website Subscription",
- "This was a request generated from the form at http://php.net/mailing-lists.php.",
"From: $email\r\n");
+ "This was a request generated from the form at http://php.net/mailing-lists.php by $REMOTE_ADDR.",
"From: $email\r\n");
break;
}
?>