ADV – Leaderboard

Password Reset

[insert_php]

$submit = $_POST[‘submit’];
$email_required = $_POST[’email_required’];
$message_approved = “An email has been sent to you with instructions on how to reset your password.”;
$message_non_existant = “There is no account with that email address.”;

if ($email_required && $submit)
{
$url = “http://www.tcg.org/auth/wp/passres.cfc?method=SendPwdRestEmail&EmailRequired=”.$email_required.”&returnformat=json”;

$ch = curl_init($url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,TRUE);
$xml = curl_exec($ch);
curl_close($ch);

$json = json_decode($xml);
$response = $json->DATA;

$message = $response[0][0];

if ($message_approved == $message)
{
echo $message;

header (“Refresh:3; url=http://www.americantheatre.org/log-in”);
die();
}
else
{
echo $message;

header (“Refresh:1; url=http://www.americantheatre.org/log-in/”);
die();
}
}
else
{
echo “Please enter the email address you used to subscribe to American Theatre Online.”;
}

[/insert_php]
Email Address:
  

ADV – Billboard