comparison 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
comparison
equal deleted inserted replaced
92:f468365813c9 93:8aadd7a23b68
2 include_once 'ScriptIncludeCache.inc'; 2 include_once 'ScriptIncludeCache.inc';
3 3
4 /// @cond 4 /// @cond
5 $baseDir = dirname(__FILE__); 5 $baseDir = dirname(__FILE__);
6 $cache = ScriptIncludeCache::instance(__FILE__); 6 $cache = ScriptIncludeCache::instance(__FILE__);
7 $cache->includeOnce('Http.inc', $baseDir);
8 $cache->includeOnce('Page.inc', $baseDir);
7 $cache->includeOnce('common-functions.inc', $baseDir); 9 $cache->includeOnce('common-functions.inc', $baseDir);
8 $cache->includeOnce('Page.inc', dirname(__FILE__));
9 /// @endcond 10 /// @endcond
10 11
11 /** 12 /**
12 * Functionality for generating a sitemap 13 * Functionality for generating a sitemap
13 */ 14 */
79 } 80 }
80 81
81 $optstring = opttostring($opts); 82 $optstring = opttostring($opts);
82 83
83 $location = "${base}/${optstring}"; 84 $location = "${base}/${optstring}";
84 $headers = getHeaders($location); 85 $headers = Http::getHeaders($location, 5);
85 86
86 $location = htmlentities($location); 87 $location = htmlentities($location);
87 88
88 $lastmod = $headers["Last-Modified"]; 89 $lastmod = $headers["Last-Modified"];
89 90