ADV – Leaderboard

Log In

[insert_php] header(“Location: http://www.americantheatre.org/”);
die();

session_start();
if ($_SERVER[‘REQUEST_METHOD’] == ‘POST’){
$submit = $_POST[‘submit’];
$username_required = $_POST[‘username_required’];
$password_required = $_POST[‘password_required’];

if(strlen($username_required) == 0 || strlen($password_required ) == 0){
echo “A valid username and password must be entered.”;
}
else{
$url = “http://profiles.tcg.org/auth/wp/newvalidate.cfm?UserNameRequired=”.$username_required.”&pwordreq=”.$password_required;

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,TRUE);
$xmlstring = curl_exec($ch);
curl_close($ch);

echo $xmlstring;

if (!strlen($xmlstring)==0)
{
$_SESSION[‘username’] = $xmlstring;
$_SESSION[‘status’] = $status;
$_SESSION[‘type’] = $type;
$_SESSION[‘membername’] = $xmlstring;

//echo $username;
//die();

header (“Refresh:1; url=http://www.americantheatre.org/category/news/”);

echo “You have been successfully logged in.”;
die();
}
else
{
echo “ALERT: We did not find a matching account. Please try again or subscribe to continue.”;
}

}

}

[/insert_php]

Member Login Not a Member?
Username

Password

Forgot your password?

Become a member of TCG and receive a free subscription to AMERICAN THEATRE magazine. Select the membership that’s right for you and then take advantage of the members-only discounts and benefits.

ADV – Billboard