/** * WPSDXbox. * * @param boolean $curl */ function WPSDXbox($curl = false) { parent::WPSDStats(); $form = new WPSDAdminConfigForm(); $this->un = trim($form->getWpsdXboxUn()); if ('' != $this->un) { $this->address_xbox_live = 'http://live.xbox.com/en-US/profile/profile.aspx?pp=0&GamerTag=' . $this->un; $this->address = 'http://xboxapi.duncanmackenzie.net/gamertag.ashx?GamerTag=' . $this->un; if ($this->isOutdated()) { $this->xml = $this->fetchDataRemote($this->address); $this->set(); } else { $this->set_cached(); } } }