public function index() { error_reporting(0); $this->content_view = 'home'; $this->data['announcements'] = Announcement::get_announcements(); $this->load->helper('twitch'); load_api_interface(); $result = json_decode(file_get_contents("https://api.twitch.tv/kraken/streams?game=StepMania&limit=4")); $this->data['streams'] = $result->streams; $this->data['recent_scores'] = User_score::get_recent_scores(); $this->data['new_songs'] = Ranked_file::get_recent_files(); $this->data['new_packs'] = Pack::get_recent_packs(); $this->data['online_users'] = User::get_online_users(); $this->data['leaderboards'] = Leaderboards_cache::get_all_lbs(); }