Store

'; if( !empty($_SESSION['LoggedIn']) && !empty($_SESSION['EmailAddress'])) { $xml=simplexml_load_file("./xml/store.xml") or die("Error: Cannot create object"); $counter=""; foreach($xml->children() as $product) { foreach($_SESSION['Products'] as $product_id => $owned) { if ($product->contentId == $product_id) { $mydate = strtotime($product->date); if ($mydate) { $mydate=date('F jS Y', $mydate); } $title=str_replace("'","\'",$product->title); $synopsis=str_replace("'","\'",$product->synopsis); $title=str_replace('"','"',$title); $synopsis=str_replace('"','"',$synopsis); $img_url=$product['hdImg']; $video_url=$product->media->streamUrl; $contentid=$product->contentId; echo ' '; } } } echo '
'; } else { $xml=simplexml_load_file("./xml/store.xml") or die("Error: Cannot create object"); $counter=""; foreach($xml->children() as $product) { $mydate = strtotime($product->date); if ($mydate) { $mydate=date('F jS Y', $mydate); } $title=str_replace("'","\'",$product->title); $synopsis=str_replace("'","\'",$product->synopsis); $title=str_replace('"','"',$title); $synopsis=str_replace('"','"',$synopsis); $img_url=$product['hdImg']; $contentid=$product->contentId; echo ' '; } echo '
'; } ?>