public static function doAutoPings($date) { $startTime = microtime(true); $lasModified = dataAccess::getLastModified($date); $lastPing = get_option('xmsg_LastPing', 0); // using UNIX times if ($lastPing < $lasModified) { self::doPing("Auto"); update_option('xmsg_LastPing', $lasModified); } else { core::statusUpdate("Auto ping skipped. No modified posts"); } $time = core::getTimeBand($startTime); core::updateStatistics("Ping", "AutoPing", $time); }
function addHomePage($sitemapDefaults) { $defaults = $sitemapDefaults->homepage; $pageUrl = get_bloginfo('url'); $exlcude = $defaults->exclude; if ($exlcude != 2) { if ($this->isIncluded($pageUrl, $sitemapDefaults->excludeRules)) { $url = new mapItem(); $url->location = $pageUrl; $url->title = "Home page"; $url->description = get_option('blogdescription'); $url->modified = dataAccess::getLastModified(); $url->priority = $defaults->priority; $url->frequency = $defaults->frequency; $this->addUrls(0, $url); } } }