diff Sitemap.inc @ 93:8aadd7a23b68

Moved some functionality from common-functions into Http class. Reorganized Validator into a class hierarchy. Added functionality for validating with a buffer in addition to URLs.
author Tom Fredrik "BFG" Klaussen <bfg@blenning.no>
date Thu, 18 Oct 2012 16:44:48 +0200
parents 1d4c980f4255
children 8a9bfbe220ca
line wrap: on
line diff
--- a/Sitemap.inc	Thu Oct 18 14:04:19 2012 +0200
+++ b/Sitemap.inc	Thu Oct 18 16:44:48 2012 +0200
@@ -4,8 +4,9 @@
 /// @cond
 $baseDir = dirname(__FILE__);
 $cache = ScriptIncludeCache::instance(__FILE__);
+$cache->includeOnce('Http.inc', $baseDir);
+$cache->includeOnce('Page.inc', $baseDir);
 $cache->includeOnce('common-functions.inc', $baseDir);
-$cache->includeOnce('Page.inc', dirname(__FILE__));
 /// @endcond
 
 /**
@@ -81,7 +82,7 @@
 		$optstring = opttostring($opts);
 
 		$location = "${base}/${optstring}";
-		$headers = getHeaders($location);
+		$headers = Http::getHeaders($location, 5);
 
 		$location = htmlentities($location);