/** * WPSDBitly. * @param string $domain * @param boolean $curl */ function WPSDBitly($domain = '', $curl = false) { parent::WPSDStats(); if ('' != $domain) { $form = new WPSDAdminConfigForm(); if ('' != trim($form->getWpsdBitlyUn())) { $this->un = trim($form->getWpsdBitlyUn()); $this->key = trim($form->getWpsdBitlyKey()); } $this->request_shorten_url = 'http://api.bit.ly/v3/shorten?login='******'&apiKey=' . $this->key . '&uri=' . urlencode($domain) . '&format=xml'; if ($this->isOutdated() && '' != $this->un) { $this->set(); } else { $this->set_cached(); } } }