root/ip/tags/release_1_3_0_53/rss.php
| 111 | 163 | ||
|---|---|---|---|
48 | 48 | ||
49 | if(isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) | 49 | if(isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) |
50 | { | 50 | { |
51 | $deadline = strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']); | 51 | $deadline = @strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']); |
52 | if(CACHE_TIME > 0) if((time() - $deadline) < CACHE_TIME) | 52 | if(CACHE_TIME > 0) if((time() - $deadline) < CACHE_TIME) |
53 | { | 53 | { |
54 | ExitWithHeader('304 Not Modified'); | 54 | ExitWithHeader('304 Not Modified'); |
... | ... | ||
209 | $viewpost_url = $index_url . $viewpost; | 209 | $viewpost_url = $index_url . $viewpost; |
210 | $replypost_url = $index_url . $replypost; | 210 | $replypost_url = $index_url . $replypost; |
211 | // Reformat site name and description | 211 | // Reformat site name and description |
212 | $site_name = strip_tags($board_config['sitename']); | 212 | $site_name = strip_tags(ip_stripslashes($board_config['sitename'])); |
213 | $site_description = strip_tags($board_config['site_desc']); | 213 | $site_description = strip_tags(ip_stripslashes($board_config['site_desc'])); |
214 | // Set the fully qualified url to your smilies folder | 214 | // Set the fully qualified url to your smilies folder |
215 | $smilies_path = $board_config['smilies_path']; | 215 | $smilies_path = $board_config['smilies_path']; |
216 | $smilies_url = $index_url . $smilies_path; | 216 | $smilies_url = $index_url . $smilies_path; |
... | ... | ||
287 | if(isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) | 287 | if(isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) |
288 | { | 288 | { |
289 | $NotErrorFlag = true; | 289 | $NotErrorFlag = true; |
290 | $NotModifiedSince = strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']); | 290 | $NotModifiedSince = @strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']); |
291 | if(SEE_MODIFYED) | 291 | if(SEE_MODIFYED) |
292 | { | 292 | { |
293 | $sql_limit_by_http = "AND (p.post_time > " . $NotModifiedSince . " OR p.post_edit_time >" . $NotModifiedSince . ")"; | 293 | $sql_limit_by_http = "AND (p.post_time > " . $NotModifiedSince . " OR p.post_edit_time >" . $NotModifiedSince . ")"; |
Download diff