| @@ 24-35 (lines=12) @@ | ||
| 21 | self::send($array); |
|
| 22 | } |
|
| 23 | ||
| 24 | public static function sendSitemap() |
|
| 25 | { |
|
| 26 | $array = array( |
|
| 27 | 'HTTP/1.1 200 OK', |
|
| 28 | 'Cache-Control: max-age=' . self::$SITEMAP_EXPIRATION . ', must-revalidate', |
|
| 29 | 'Content-Language: en', |
|
| 30 | 'Content-Type: text/xml', |
|
| 31 | 'Expires: ' . self::get_date(time() + self::$SITEMAP_EXPIRATION), |
|
| 32 | 'Last-Modified: ' . self::get_date(), |
|
| 33 | 'X-Powered-By: jacobemerick.com'); |
|
| 34 | self::send($array); |
|
| 35 | } |
|
| 36 | ||
| 37 | public static function sendRSS() |
|
| 38 | { |
|
| @@ 37-48 (lines=12) @@ | ||
| 34 | self::send($array); |
|
| 35 | } |
|
| 36 | ||
| 37 | public static function sendRSS() |
|
| 38 | { |
|
| 39 | $array = array( |
|
| 40 | 'HTTP/1.1 200 OK', |
|
| 41 | 'Cache-Control: max-age=' . self::$RSS_EXPIRATION . ', must-revalidate', |
|
| 42 | 'Content-Language: en', |
|
| 43 | 'Content-Type: application/rss+xml', |
|
| 44 | 'Expires: ' . self::get_date(time() + self::$RSS_EXPIRATION), |
|
| 45 | 'Last-Modified: ' . self::get_date(), |
|
| 46 | 'X-Powered-By: jacobemerick.com'); |
|
| 47 | self::send($array); |
|
| 48 | } |
|
| 49 | ||
| 50 | public static function sendHTML() |
|
| 51 | { |
|