cvs: phpweb / mod.php
| From: | Sascha Schumann | Date: | Fri, 22 Aug 2003 01:31:15 +0000 |
| Subject: | cvs: phpweb / mod.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-20533@lists.php.net to get a copy of this message | ||
sas Thu Aug 21 21:31:15 2003 EDT
Added files:
/phpweb mod.php
Log:
add confirm-email-address script by web
(feel free to make this one look nicer)
Index: phpweb/mod.php
+++ phpweb/mod.php
<?php
$sites = array("php.net", "lists.php.net");
list($none, $site, $token, $sender) = explode("/", $_SERVER["PATH_INFO"]);
if ($sender == "" || strlen($token) < 32 || !isset($sites[$site])) {
echo "Sorry, the URL is incomplete. Please verify that you used the complete URL even if it
spans multiple lines.";
exit;
}
mail("confirm@".$sites[$site], "confirm", "[confirm: $token $sender]",
"From: $sender");
echo "Thanks for confirming your email address. No further action is required on your
part.";