Select5




[insert_php]
if(isset($_POST[‘Login’]) )
{
$client = strtolower($_POST[‘formClient’]);
$filename = $client . “homework/profile.xml”;

echo “

At Your Door Homework, (c) 2015

“;
if (file_exists($client) === FALSE)
{
die(“Please Contact Alex Smith for a VIP account”);
}
else
{
$filename = $client.”homework/profile.xml”;

$xml=simplexml_load_file($filename) or die(“Error: Cannot create object”);
$username = $client;
$clientApparatusList = explode(“,”, $xml->Apparatus);
$expertise = $xml->Expertise;

if (isset($xml->Expiration))
{
list($yy,$mm,$dd)=explode(“-“,$xml->Expiration);
if (is_numeric($yy) && is_numeric($mm) && is_numeric($dd))
{
$expiration = $xml->Expiration;
$dateNow = new DateTime(“now”);
$dateExpiration = new DateTime($yy.”-“.$mm.”-“.$dd);
if ($dateNow > $dateExpiration)
{
die(“Your subscription has expired. Please process monthly payment using paypall to alas282@gmail.com to reactivate.”);
}
}
else
{
$expiration = “Free Trail”;
}
}
else
{
$expiration = “Free Trail”;
}
}
}

function setSelected($selectList, $option)
{
$selStr = implode($selectList);
if (strpos($selStr, $option) !== FALSE) {echo “selected”;}
}

?>

>
>

Apparatus Available:


Class and Time:


Muscle Groups:

Focus:

Rest:


Preset Workouts

Expiration);
if ($go != “GO”)
{
echo “Alex’s Favorite Workouts:”;
echo ““;
echo ““;
}
?>

My Saved Workouts:


(c) 2015 At Your Door Personal Training, A WordPress Plugin

Expiration);
if ($go != “GO”)
{
echo “

“;
echo “

“;
echo “

Client:”.$client.”

“;

echo ““;
echo ““;

echo “

“;
echo ““;
echo “

“;

if ($username == “alex.smith”)
{
echo “\tClient: “;
echo “

“;
echo “Subscription Expiration:

“;
}

echo “

“;
echo “

“;
}
[/insert_php]