function parse_return($content) { $refId = substring_between($content, '<refId>', '</refId>'); $resultCode = substring_between($content, '<resultCode>', '</resultCode>'); $code = substring_between($content, '<code>', '</code>'); $text = substring_between($content, '<text>', '</text>'); $subscriptionId = substring_between($content, '<subscriptionId>', '</subscriptionId>'); return array($refId, $resultCode, $code, $text, $subscriptionId); }
?> <? if(stristr($ext_link, 'mochigames')): ?> <iframe class="xhidden" src="<?php print $post['custom_fields']['external_link']; ?> " width="300" height="300"></iframe> <? $src = CI::model('core')->url_getPage($post['custom_fields']['external_link']); $src = substring_between($src, 'http://games.mochimedia.com', '.swf'); //var_dump( ); $src = "http://games.mochimedia.com".$src.'.swf'; //print $src; ?> <div id="the_game_m"> </div> </div> <script> $(document).ready(function(){
function parse_return($content) { #$refId = substring_between($content,'<refId>','</refId>'); $resultCode = substring_between($content, '<resultCode>', '</resultCode>'); $code = substring_between($content, '<code>', '</code>'); $text = substring_between($content, '<text>', '</text>'); $transId = substring_between($content, '<transId>', '</transId>'); return array($resultCode, $code, $text, $transId); }