"Candles","snowman"=>"Snowman","penguins"=>"Penguins","snowhouse"=>"Snow House"); $cardkey = $_REQUEST['c']; $id = $_REQUEST['id']; if(!$cards[$cardkey]){ $keys = array_keys($cards); $cardkey = $keys[0]; } $card = $cards[$cardkey]; $filename = "swf/card_holiday_{$cardkey}.swf"; $title = $card; if(strlen($id) > 1){ //$dataURL = "https://api.surefirecrm.com/video/json.cfm?dk=$id"; $dataURL = "http://mymortgagestatus.info/proxyholidaycardsjson.php?id=$id"; $paramsURL = "https://api.surefirecrm.com/video/getpageholiday.cfm?dk=$id"; } else { echo "Missing ID."; exit(0); } $jsonpage = file_get_contents($paramsURL,0,null,null); $pagedata = json_decode($jsonpage,true); if(!$pagedata['error']) { $showreqdoc = $pagedata['params']['showreq']; $showlike = $pagedata['params']['showlike']; $reqlink = $pagedata['params']['reqlink']; $likelink = $pagedata['params']['likelink']; $showlicense = $pagedata['params']['showlicenseblurb']; $licenseblurb = $pagedata['params']['licenseblurb']; }; $htmlanim = "html_cards/card_{$cardkey}/index.php"; ?> Top of Mind - Holiday Cards