get_var("SELECT max(post_date) FROM $tableposts"); ++$querycount; $unixtime = strtotime($maxdate); // format timestamp for Last-Modified header $clast = gmdate("D, d M Y H:i:s \G\M\T", $unixtime); $cetag = (isset($last)) ? md5($last) : ''; $slast = (isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) ? $_SERVER['HTTP_IF_MODIFIED_SINCE'] : '' ; $setag = (isset($_SERVER['HTTP_IF_NONE_MATCH'])) ? $_SERVER['HTTP_IF_NONE_MATCH'] : ''; // send it in a Last-Modified header header("Last-Modified: " . $clast, true); header("Etag: " . $cetag, true); // compare it to aggregator's If-Modified-Since and If-None-Match headers // if they match, send a 304 and die // This logic says that if only one header is provided, just use that one, // but if both headers exist, they *both* must match up with the locally // generated values. //if (($slast?($slast == $clast):true) && ($setag?($setag == $cetag):true)){ if (($slast != '') && ($setag != '')) { if (($slast == $clast) && ($setag == $cetag)) { header("HTTP/1.1 304 Not Modified"); echo "\r\n\r\n"; exit; } else if (($slast == $clast) || ($setag == $cetag)) { header("HTTP/1.1 304 Not Modified"); echo "\r\n\r\n"; exit; } } if (!isset($rss_language)) { $rss_language = 'en'; } if (!isset($rss_encoded_html)) { $rss_encoded_html = 0; } if (!isset($rss_excerpt_length) || ($rss_encoded_html == 1)) { $rss_excerpt_length = 0; } ?> "; ?> <?php bloginfo_rss("name") ?> GMT http://backend.userland.com/rss092 <?php the_title_rss() ?> "; the_category_unicode(); echo ""; $more = 1; if ($rss_use_excerpt) { ?>