_baseContentPath = $manager->_baseContentPath."content/"; $manager->_basePath = $manager->_baseContentPath; //draw the requested page echo $manager->renderPage(); function cacheHeaders($lastModifiedDate) { if ($lastModifiedDate) { if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) >= $lastModifiedDate) { if (php_sapi_name()=='CGI') { Header("Status: 304 Not Modified"); } else { Header("HTTP/1.0 304 Not Modified"); } exit; } else { $gmtDate = gmdate("D, d M Y H:i:s \G\M\T",$lastModifiedDate); header('Last-Modified: '.$gmtDate); } } } ?>