Пример #1
0
 /**
  * WPSDBattlenet.
  * @param string $domain
  * @param boolean $curl
  */
 function WPSDBattlenet($curl = false)
 {
     parent::WPSDStats();
     $form = new WPSDAdminConfigForm();
     $this->uri = trim($form->getWpsdBattlenetUri());
     if ('' != $this->uri) {
         $this->address = $this->uri;
         if ($this->isOutdated()) {
             $this->xml = $this->fetchDataRemote($this->address, true, 1, true, 'int-SC2=1; perm=1; Domain=battle.net; Path=/');
             //echo $this->address;
             //var_dump($this->xml);
             $this->set();
         } else {
             $this->set_cached();
         }
     }
 }