$timestamp = max($timestamps); // Note that this is not a RFC 822 date (the tz is always GMT) $tsstring = gmdate("D, d M Y H:i:s ", $timestamp) . "GMT"; // Check if the client has the same page cached if (isset($_SERVER["HTTP_IF_MODIFIED_SINCE"]) && $_SERVER["HTTP_IF_MODIFIED_SINCE"] == $tsstring) { header("HTTP/1.1 304 Not Modified"); exit; } else { header("Last-Modified: " . $tsstring); } $_SERVER['BASE_PAGE'] = 'index.php'; include_once 'include/prepend.inc'; include_once 'include/pregen-confs.inc'; include_once 'include/pregen-news.inc'; include_once 'include/version.inc'; mirror_setcookie("LAST_NEWS", $_SERVER["REQUEST_TIME"], 60 * 60 * 24 * 365); $content = "<div class='home-content'>"; $releasenews = 0; $frontpage = array(); foreach ($NEWS_ENTRIES as $entry) { $maybe = false; foreach ($entry["category"] as $category) { if ($category["term"] == "releases") { if ($releasenews++ > 5) { continue 2; } } if ($category["term"] == "frontpage") { $maybe = $entry; } }
<?php // $Id$ $_SERVER['BASE_PAGE'] = 'ug.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; mirror_setcookie("LAST_UG", $_SERVER["REQUEST_TIME"] + 60 * 60 * 24, 60 * 60 * 24); site_header("Hypertext Preprocessor", array('current' => 'community')); function print_cc_header($country) { global $COUNTRIES; ?> <div class="country" id="<?php echo $country; ?> "> <h2 class="title countrytitle">User Groups in <?php echo $COUNTRIES[$country]; ?> <img height="25" width="45" src="/images/flags/beta/<?php echo strtolower($country); ?> .png"> </h2> <ul class="ugs"> <?php } function ug_get_more_info($group) { if (!trim($group["icalendar_url"])) { return null; }