Пример #1
0
 /**
  * WPSDHits.
  */
 function WPSDHits()
 {
     parent::WPSDStats();
     if ($this->isOutdated()) {
         $this->set();
     } else {
         $this->set_cached();
     }
 }
Пример #2
0
 /**
  * WPSDSocialMention.
  *
  * @param string  $domain
  * @param boolean $curl
  */
 function WPSDSocialMention($curl = false)
 {
     parent::WPSDStats();
     $this->address = 'http://socialmention.com/search?q=' . urlencode(get_bloginfo('url')) . '&t=all&btnG=Search';
     if ($this->isOutdated()) {
         $this->set();
     } else {
         $this->set_cached();
     }
 }
Пример #3
0
 /**
  * WPSDBing.
  * @param string $domain
  * @param boolean $curl
  */
 function WPSDBing($domain, $curl = false)
 {
     parent::WPSDStats();
     $this->address = 'http://www.bing.com/search?q=site:' . $domain . '&go=&form=QBLH&filt=all&setplang=en-US';
     if ($this->isOutdated()) {
         $this->xml = str_replace(',', '.', $this->fetchDataRemote($this->address, false, 1, true));
         $this->set();
     } else {
         $this->set_cached();
     }
 }
Пример #4
0
 /**
  * __construct function.
  * 
  * @access public
  * @return void
  */
 function __construct()
 {
     parent::__construct();
     $this->address = 'http://profiles.wordpress.org/users/dave.ligthart/profile/public/';
     if ($this->isOutdated()) {
         $this->xml = $this->fetchDataRemote($this->address);
         $this->set();
     } else {
         $this->set_cached();
     }
 }
Пример #5
0
 /**
  * WPSDAlexaRank.
  * @param string $domain
  * @param boolean $curl
  */
 function WPSDAlexaRank($domain, $curl = false)
 {
     parent::WPSDStats();
     $domain = $this->getNormalizedUrl($domain);
     if ($this->isOutdated() && '' != $domain) {
         $this->xml = $this->fetchDataRemote($this->address . $domain);
         $this->set();
     } else {
         $this->set_cached();
     }
 }
Пример #6
0
 /**
  * WPSDFlickr.
  * @param string $domain
  * @param boolean $curl
  */
 function WPSDFlickr()
 {
     parent::WPSDStats();
     $form = new WPSDAdminConfigForm();
     $this->address = 'http://www.flickr.com/photos/' . trim($form->getWpsdFlickrUsername());
     if ($this->isOutdated() && '' != $this->address) {
         $this->set();
     } else {
         $this->set_cached();
     }
 }
Пример #7
0
 /**
  * WPSDFeedBurner.
  * @param string $domain
  * @param boolean $curl
  */
 function WPSDFeedBurner()
 {
     parent::WPSDStats();
     $form = new WPSDAdminConfigForm();
     $this->address = $form->getWpsdFeedburnerUri();
     if ($this->isOutdated() && '' != $this->address) {
         $this->set();
     } else {
         $this->set_cached();
     }
 }
Пример #8
0
 /**
  * WPSDGoogleBot.
  */
 function WPSDGoogleBot()
 {
     parent::WPSDStats();
     $domain = get_bloginfo('url');
     $this->address = "http://webcache.googleusercontent.com/search?q=cache:{$domain}&cd=1&hl=en&ct=clnk";
     if ($this->isOutdated() && '' != $domain) {
         $this->xml = $this->fetchDataRemote($this->address, false, 1, true);
         $this->set();
     } else {
         $this->set_cached();
     }
 }
Пример #9
0
 /**
  * WPSDW3Validator.
  */
 function WPSDW3Validator()
 {
     parent::WPSDStats();
     $domain = get_bloginfo('url');
     $this->address = "http://validator.w3.org/check?uri={$domain}";
     if ($this->isOutdated() && '' != $domain) {
         $this->xml = $this->fetchDataRemote($this->address, false, 1, true);
         $this->set();
     } else {
         $this->set_cached();
     }
 }
Пример #10
0
 /**
  * WPSDScore function.
  * 
  * @access public
  * @param mixed $userId
  * @return void
  */
 function WPSDScore($userId)
 {
     parent::WPSDStats();
     $this->userId = $userId;
     if ($this->userId) {
         if ($this->is_cache_outdated('wpsdscore', $this->userId)) {
             $this->set();
             $this->updated_cache('wpsdscore', $this->userId);
         } else {
             $this->set_cached();
         }
     }
 }
Пример #11
0
 /**
  * WPSDHunch function.
  * 
  * @access public
  * @return void
  */
 function WPSDHunch()
 {
     parent::WPSDStats();
     $form = new WPSDAdminConfigForm();
     $this->un = trim($form->getWpsdHunchUn());
     $this->address = "http://hunch.com/{$this->un}/";
     if ($this->isOutdated()) {
         $this->xml = $this->fetchDataRemote($this->address);
         $this->set();
     } else {
         $this->set_cached();
     }
 }
 /**
  * WPSDBrazenCareerist.
  * @param string $domain
  * @param boolean $curl
  */
 function WPSDBrazenCareerist()
 {
     parent::WPSDStats();
     $form = new WPSDAdminConfigForm();
     $this->user = trim($form->getWpsdBrazenCareeristUn());
     $this->address .= $this->user;
     if ($this->isOutdated() && '' != $this->user) {
         $this->xml = $this->fetchDataRemote($this->address);
         $this->set();
     } else {
         $this->set_cached();
     }
 }
Пример #13
0
 /**
  * WPSDLastFm.
  * @param string $domain
  * @param boolean $curl
  */
 function WPSDLastFm()
 {
     parent::WPSDStats();
     $form = new WPSDAdminConfigForm();
     $this->user = trim($form->getWpsdLastFmUn());
     $this->address .= $this->user;
     if ($this->isOutdated() && '' != $this->user) {
         $this->xml = $this->fetchDataRemote($this->address, false, 1, true);
         $this->set();
     } else {
         $this->set_cached();
     }
 }
Пример #14
0
 /**
  * WPSDTechnoratiRank.
  * @param string $domain
  * @param boolean $curl
  */
 function WPSDTechnoratiRank($domain, $curl = false)
 {
     parent::WPSDStats();
     //$this->address = 'http://api.technorati.com/bloginfo?key=&url=' . $domain;
     $domain = $this->getHost(parse_url($domain));
     $this->address = 'http://technorati.com/blogs/' . $domain;
     if ($this->isOutdated()) {
         $this->xml = $this->fetchDataRemote($this->address);
         $this->set();
     } else {
         $this->set_cached();
     }
 }
Пример #15
0
 /**
  * WPSDGoogleWishlist.
  * 
  * @param boolean $curl
  */
 function WPSDGoogleWishlist($curl = false)
 {
     parent::WPSDStats();
     $form = new WPSDAdminConfigForm();
     $this->address = trim($form->getWpsdGoogleWishlistUri());
     if ('' != $this->uri) {
         if ($this->isOutdated()) {
             $this->xml = $this->fetchDataRemote($this->address);
             $this->set();
         } else {
             $this->set_cached();
         }
     }
 }
Пример #16
0
 /**
  * WPSDTweetMeme.
  * @param string $domain
  * @param boolean $curl
  */
 function WPSDTweetMeme($domain, $curl = false)
 {
     parent::WPSDStats();
     $this->address = 'http://api.tweetmeme.com/url_info.xml?url=' . $domain;
     $domain = $this->getHost(parse_url($domain));
     $domain = str_replace('www.', '', $domain);
     $this->address2 = 'http://tweetmeme.com/search?q=' . $domain;
     if ($this->isOutdated()) {
         $this->xml = $this->fetchDataRemote($this->address);
         $this->set();
     } else {
         $this->set_cached();
     }
 }
Пример #17
0
 /**
  * WPSDSiteAge function.
  * 
  * @access public
  * @param mixed $domain
  * @return void
  */
 function WPSDSiteAge($domain)
 {
     parent::WPSDStats();
     if ($this->checkDomain($domain)) {
         $url = preg_replace("/^(http:\\/\\/)*(www.)*/is", "", $this->getHost(parse_url($domain)));
         $url = preg_replace("/\\/.*\$/is", "", $url);
         $this->address = 'http://reports.internic.net/cgi/whois?whois_nic=' . $url . '&type=domain';
         if ($this->isOutdated() && '' != $url) {
             $this->xml = $this->fetchDataRemote($this->address);
             $this->set();
         } else {
             $this->set_cached();
         }
     }
 }
Пример #18
0
 /**
  * __construct function.
  * 
  * @access public
  * @param string $domain. (default: '')
  * @return void
  */
 function __construct($domain = '')
 {
     parent::__construct();
     if ('' != $domain) {
         $domain = $this->getNormalizedUrl($domain);
         $this->address = "http://www.blogpulse.com/search?query=" . $domain;
         $this->domain = $domain;
         if ($this->isOutdated() && '' != $domain) {
             $this->xml = $this->fetchDataRemote($this->address, false, 1, true);
             $this->set();
         } else {
             $this->set_cached();
         }
     }
 }
Пример #19
0
 /**
  * WPSDYahooBuzz function.
  * 
  * @access public
  * @return void
  */
 function WPSDYahooBuzz()
 {
     parent::WPSDStats();
     $form = new WPSDAdminConfigForm();
     $this->uri = trim($form->getWpsdYahooBuzzUri());
     if ('' != $this->uri) {
         $this->address = $this->uri;
         if ($this->isOutdated()) {
             $this->xml = $this->fetchDataRemote($this->address);
             $this->set();
         } else {
             $this->set_cached();
         }
     }
 }
Пример #20
0
 /**
  * WPSDDiigo.
  * 
  * @param boolean $curl
  */
 function WPSDDiigo($curl = false)
 {
     parent::WPSDStats();
     $form = new WPSDAdminConfigForm();
     $this->un = trim($form->getWpsdDiigoUn());
     if ('' != $this->un) {
         $this->address = 'http://www.diigo.com/profile/' . $this->un;
         if ($this->isOutdated()) {
             $this->xml = $this->fetchDataRemote($this->address);
             $this->set();
         } else {
             $this->set_cached();
         }
     }
 }
Пример #21
0
 /**
  * __construct function.
  * 
  * @access public
  * @return void
  */
 function __construct()
 {
     parent::__construct();
     $form = new WPSDAdminConfigForm();
     $this->un = trim($form->getWpsdAmplifyUn());
     if ('' != $this->un) {
         $this->address = 'http://' . $this->un . '.amplify.com';
         if ($this->isOutdated()) {
             $this->xml = $this->fetchDataRemote($this->address, false, 3, false);
             $this->set();
         } else {
             $this->set_cached();
         }
     }
 }
Пример #22
0
 /**
  * WPSDBuzz.
  * 
  * @param boolean $curl
  */
 function WPSDGoogleBuzz($curl = false)
 {
     parent::WPSDStats();
     $url = get_bloginfo('url');
     if ('' != $url) {
         $url = str_replace('www.', '', $url);
         $this->address = 'http://www.googleapis.com/buzz/v1/activities/count?url=' . $url;
         if ($this->isOutdated()) {
             $this->xml = $this->fetchDataRemote($this->address);
             $this->set();
         } else {
             $this->set_cached();
         }
     }
 }
Пример #23
0
 /**
  * WPSDTechnoratiRank.
  * @param string $domain
  * @param boolean $curl
  */
 function WPSDYahooRank($domain, $curl = false)
 {
     parent::WPSDStats();
     //$this->address .= $domain;
     $this->domain = $domain;
     if ($this->isOutdated()) {
         $url = sprintf($this->home, str_replace('http://', '', $this->domain));
         $this->address = $url;
         $this->xml = str_replace(',', '', strip_tags($this->fetchDataRemote($url, true, 2, false)));
         //echo $this->xml;
         $this->set();
     } else {
         $this->set_cached();
     }
 }
Пример #24
0
 /**
  * WPSDSixent.
  * 
  * @param boolean $curl
  */
 function WPSDSixent($curl = false)
 {
     parent::WPSDStats();
     $form = new WPSDAdminConfigForm();
     $this->un = trim($form->getWpsdSixentUn());
     if ('' != $this->un) {
         $this->address = 'http://' . $this->un . '.sixent.com/contacts';
         if ($this->isOutdated()) {
             $this->xml = $this->fetchDataRemote($this->address);
             $this->set();
         } else {
             $this->set_cached();
         }
     }
 }
Пример #25
0
 /**
  * __construct function.
  * 
  * @access public
  * @return void
  */
 function __construct()
 {
     parent::__construct();
     $form = new WPSDAdminConfigForm();
     $this->un = trim($form->getWpsdMyspaceUn());
     if ('' != $this->un) {
         $this->address = 'http://www.myspace.com/' . $this->un;
         if ($this->isOutdated()) {
             $this->xml = str_replace(',', '', $this->fetchDataRemote($this->address, false, 1, true));
             $this->set();
         } else {
             $this->set_cached();
         }
     }
 }
Пример #26
0
 /**
  * WPSDWeRead.
  *
  * @param boolean $curl
  */
 function WPSDWeRead($curl = false)
 {
     parent::WPSDStats();
     $form = new WPSDAdminConfigForm();
     $this->id = trim($form->getWpsdWeReadId());
     if ('' != $this->id) {
         $this->address = 'http://weread.com/profile/' . str_replace(' ', '+', $this->id) . '/';
         if ($this->isOutdated()) {
             $this->xml = $this->fetchDataRemote($this->address);
             $this->set();
         } else {
             $this->set_cached();
         }
     }
 }
Пример #27
0
 /**
  * WPSDNetlog function.
  * 
  * @access public
  * @return void
  */
 function WPSDNetlog()
 {
     parent::WPSDStats();
     $form = new WPSDAdminConfigForm();
     $this->un = trim($form->getWpsdNetlogUn());
     if ('' != $this->un) {
         $this->address = 'http://en.netlog.com/' . $this->un . '/';
         if ($this->isOutdated()) {
             $this->xml = $this->fetchDataRemote($this->address);
             $this->set();
         } else {
             $this->set_cached();
         }
     }
 }
Пример #28
0
 /**
  * WPSDYoutube function.
  * 
  * @access public
  * @return void
  */
 function WPSDYoutube()
 {
     parent::WPSDStats();
     $form = new WPSDAdminConfigForm();
     $this->un = trim($form->getWpsdYoutubeUn());
     if ('' != $this->un) {
         $this->address = 'http://www.youtube.com/' . $this->un;
         if ($this->isOutdated()) {
             $this->xml = str_replace('.', '', str_replace(',', '', $this->fetchDataRemote($this->address)));
             $this->set();
         } else {
             $this->set_cached();
         }
     }
 }
Пример #29
0
 /**
  * WPSDFriendFeed.
  * 
  * @param boolean $curl
  */
 function WPSDFriendFeed()
 {
     parent::WPSDStats();
     $form = new WPSDAdminConfigForm();
     $this->un = trim($form->getWpsdFriendFeedUn());
     if ('' != $this->un) {
         $this->address = 'http://friendfeed.com/' . $this->un;
         if ($this->isOutdated()) {
             $this->xml = $this->fetchDataRemote($this->address);
             $this->set();
         } else {
             $this->set_cached();
         }
     }
 }
Пример #30
0
 function WPSDSociety()
 {
     parent::WPSDStats();
     $form = new WPSDAdminConfigForm();
     $this->un = trim($form->getWpsdSocietyUn());
     if ('' != $this->un) {
         $this->address = 'http://www.society.me/' . $this->un;
         if ($this->isOutdated()) {
             $this->xml = $this->fetchDataRemote($this->address);
             $this->set();
         } else {
             $this->set_cached();
         }
     }
 }