cvs: phpweb / mailing-lists.php
| From: | jim winstead | Date: | Fri, 30 Aug 2002 18:18:19 +0000 |
| Subject: | cvs: phpweb / mailing-lists.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-12186@lists.php.net to get a copy of this message | ||
jimw Fri Aug 30 14:18:19 2002 EDT
Modified files:
/phpweb mailing-lists.php
Log:
get remote addr correctly
Index: phpweb/mailing-lists.php
diff -u phpweb/mailing-lists.php:1.18 phpweb/mailing-lists.php:1.19
--- phpweb/mailing-lists.php:1.18 Wed Aug 28 13:06:25 2002
+++ phpweb/mailing-lists.php Fri Aug 30 14:18:18 2002
@@ -23,8 +23,9 @@
"From: $email\r\n");
break;
default:
+ $remote_addr = $HTTP_X_FORWARDED_FOR ? $HTTP_X_FORWARDED_FOR :
$REMOTE_ADDR;
mail("$maillist-$request-$sub@lists.php.net", "Website Subscription",
- "This was a request generated from the form at http://php.net/mailing-lists.php by $REMOTE_ADDR.",
"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;
}
?>