1
0
mirror of https://github.com/php/web-php.git synced 2026-04-30 02:13:21 +02:00
Files
archived-web-php/mod.php
T
Sascha Schumann 706dac7bfa add confirm-email-address script by web
(feel free to make this one look nicer)
2003-08-22 01:31:15 +00:00

15 lines
510 B
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.";