"community")); // Only run on main php.net box. if (!is_primary_site()) { echo <<Email confirmation failed

This server is not capable of handling email confirmations.

ERROR; site_footer(); exit; } // These sites are handled by automoderation $sites = array("php.net", "lists.php.net"); // Get data from the URL list($none, $site, $token, $sender) = explode("/", $_SERVER["PATH_INFO"]); // Error in input data if ($sender == "" || strlen($token) < 32 || !isset($sites[$site])) { echo <<Email confirmation failed

Sorry, the URL is incomplete. Please verify that you used the complete URL even if it spans multiple lines.

ERROR; } // Data OK, send confirmation mail else { mail( "confirm@" . $sites[$site], "confirm", "[confirm: $token $sender]", "From: $sender" ); echo <<Email confirmation successful

Thanks for confirming your email address. No further action is required on your part.

THANKS; } site_footer();