1 2 3 4 5 6 7 | $url = 'https://api.twitch.tv/kraken/users/'.$stream['stream_username']; $content = file_get_contents($url); $json = json_decode($content, true); if(isset($json['0'])){ if($json['0']['format']=="live"){ $this->_getDb()->update("xf_ice_livestreams", array('live'=>1), "`_id`=".$stream['stream_id']); $online++; |