function rankCheckerCron($websiteId) { include_once SP_CTRLPATH . "/rank.ctrl.php"; $this->debugMsg("Starting Rank Checker cron for website: {$this->websiteInfo['name']}....<br>\n"); $rankCtrler = new RankController(); $websiteInfo = $this->websiteInfo; if (SP_MULTIPLE_CRON_EXEC && $rankCtrler->isReportsExists($websiteInfo['id'], $this->timeStamp)) { return; } $websiteUrl = addHttpToUrl($websiteInfo['url']); $websiteInfo['googlePagerank'] = $rankCtrler->__getGooglePageRank($websiteUrl); $websiteInfo['alexaRank'] = $rankCtrler->__getAlexaRank($websiteUrl); $rankCtrler->saveRankResults($websiteInfo, true); $this->debugMsg("Saved rank results of <b>{$websiteUrl}</b>.....<br>\n"); }
function rankCheckerCron($websiteId) { include_once SP_CTRLPATH . "/rank.ctrl.php"; $this->debugMsg("Starting Rank Checker cron for website: {$this->websiteInfo['name']}....<br>\n"); $rankCtrler = new RankController(); $websiteInfo = $this->websiteInfo; $websiteUrl = addHttpToUrl($websiteInfo['url']); $websiteInfo['googlePagerank'] = $rankCtrler->__getGooglePageRank($websiteUrl); $websiteInfo['alexaRank'] = $rankCtrler->__getAlexaRank($websiteUrl); $rankCtrler->saveRankResults($websiteInfo, true); $this->debugMsg("Saved rank results of <b>{$websiteUrl}</b>.....<br>\n"); }