/** * WPSDStumbleUpon function. * * @access public * @param mixed $domain * @param bool $curl. (default: false) * @return void */ function WPSDStumbleUpon($domain, $curl = false) { parent::WPSDStats(); $domain = $this->getHost(parse_url($domain)); $domain = str_replace('/', '', $domain); $domain = str_replace('www.', '', $domain); $this->address = 'http://www.stumbleupon.com/url/' . $domain . '/'; $form = new WPSDAdminConfigForm(); $this->un = trim($form->getWpsdStumbleUponUn()); $this->profile_address = 'http://www.stumbleupon.com/stumbler/' . $this->un; if ($this->isOutdated()) { $this->xml = $this->fetchDataRemote($this->address, false, 1, true); $this->xml2 = $this->fetchDataRemote($this->profile_address, false, 1, true); $this->set(); } else { $this->set_cached(); } }