cvs: phpweb /archive 1998.php 1999.php 2000.php 2001.php 2002.php 2003.php 2004.php 2005.php 2006.php 2007.php 2008.php /include layout.inc

From: Date: Fri, 22 May 2009 08:11:35 +0000
Subject: cvs: phpweb /archive 1998.php 1999.php 2000.php 2001.php 2002.php 2003.php 2004.php 2005.php 2006.php 2007.php 2008.php /include layout.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-4829@lists.php.net to get a copy of this message
bjori Fri May 22 08:11:35 2009 UTC Modified files: /phpweb/include layout.inc /phpweb/archive 1998.php 1999.php 2000.php 2001.php 2002.php 2003.php 2004.php 2005.php 2006.php 2007.php 2008.php Log: Add Last-Modified header (see bug#47261)

http://cvs.php.net/viewvc.cgi/phpweb/include/layout.inc?r1=1.306&r2=1.307&diff_format=u Index: phpweb/include/layout.inc diff -u phpweb/include/layout.inc:1.306 phpweb/include/layout.inc:1.307 --- phpweb/include/layout.inc:1.306 Fri May 8 07:26:30 2009 +++ phpweb/include/layout.inc Fri May 22 08:11:35 2009 @@ -1,5 +1,5 @@ <?php -/* $Id: layout.inc,v 1.306 2009/05/08 07:26:30 bjori Exp $ */ +/* $Id: layout.inc,v 1.307 2009/05/22 08:11:35 bjori Exp $ */ // Set the static content root differently on php.net if ($MYSITE == "http://www.php.net/") { @@ -91,6 +91,15 @@ header("Content-type: text/html;charset={$config['charset']}"); header("Content-language: {$lang}"); header("X-PHP-QUESTION: I wonder if anyone will ever notice this"); + if (isset($config["generate_modified"]) && $config["generate_modified"]) { + $timestamp = @filemtime($_SERVER["DOCUMENT_ROOT"] . "/" .$_SERVER["BASE_PAGE"]); + if ($timestamp) { + $tsstring = gmdate("D, d M Y H:i:s ", $timestamp) . "GMT"; + header("Last-Modified: " . $tsstring); + } + } + + if (isset($config["extra_headers"]) && is_array($config["extra_headers"])) { foreach($config["extra_headers"] as $key => $value) { header(sprintf("%s: %s", $key, $value)); http://cvs.php.net/viewvc.cgi/phpweb/archive/1998.php?r1=1.1&r2=1.2&diff_format=u Index: phpweb/archive/1998.php diff -u phpweb/archive/1998.php:1.1 phpweb/archive/1998.php:1.2 --- phpweb/archive/1998.php:1.1 Sun Sep 17 13:15:06 2006 +++ phpweb/archive/1998.php Fri May 22 08:11:35 2009 @@ -1,9 +1,9 @@ <?php -// $Id: 1998.php,v 1.1 2006/09/17 13:15:06 goba Exp $ +// $Id: 1998.php,v 1.2 2009/05/22 08:11:35 bjori Exp $ $_SERVER['BASE_PAGE'] = 'archive/1998.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; news_archive_sidebar(); -site_header("News Archive - 1998"); +site_header("News Archive - 1998", array("generate_modified" => true)); ?> <h1>News Archive - 1998</h1> http://cvs.php.net/viewvc.cgi/phpweb/archive/1999.php?r1=1.1&r2=1.2&diff_format=u Index: phpweb/archive/1999.php diff -u phpweb/archive/1999.php:1.1 phpweb/archive/1999.php:1.2 --- phpweb/archive/1999.php:1.1 Sun Sep 17 13:15:06 2006 +++ phpweb/archive/1999.php Fri May 22 08:11:35 2009 @@ -1,9 +1,9 @@ <?php -// $Id: 1999.php,v 1.1 2006/09/17 13:15:06 goba Exp $ +// $Id: 1999.php,v 1.2 2009/05/22 08:11:35 bjori Exp $ $_SERVER['BASE_PAGE'] = 'archive/1999.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; news_archive_sidebar(); -site_header("News Archive - 1999"); +site_header("News Archive - 1999", array("generate_modified" => true)); ?> <h1>News Archive - 1999</h1> http://cvs.php.net/viewvc.cgi/phpweb/archive/2000.php?r1=1.1&r2=1.2&diff_format=u Index: phpweb/archive/2000.php diff -u phpweb/archive/2000.php:1.1 phpweb/archive/2000.php:1.2 --- phpweb/archive/2000.php:1.1 Sun Sep 17 13:15:06 2006 +++ phpweb/archive/2000.php Fri May 22 08:11:35 2009 @@ -1,9 +1,9 @@ <?php -// $Id: 2000.php,v 1.1 2006/09/17 13:15:06 goba Exp $ +// $Id: 2000.php,v 1.2 2009/05/22 08:11:35 bjori Exp $ $_SERVER['BASE_PAGE'] = 'archive/2000.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; news_archive_sidebar(); -site_header("News Archive - 2000"); +site_header("News Archive - 2000", array("generate_modified" => true)); ?> <h1>News Archive - 2000</h1> http://cvs.php.net/viewvc.cgi/phpweb/archive/2001.php?r1=1.1&r2=1.2&diff_format=u Index: phpweb/archive/2001.php diff -u phpweb/archive/2001.php:1.1 phpweb/archive/2001.php:1.2 --- phpweb/archive/2001.php:1.1 Sun Sep 17 13:15:06 2006 +++ phpweb/archive/2001.php Fri May 22 08:11:35 2009 @@ -1,9 +1,9 @@ <?php -// $Id: 2001.php,v 1.1 2006/09/17 13:15:06 goba Exp $ +// $Id: 2001.php,v 1.2 2009/05/22 08:11:35 bjori Exp $ $_SERVER['BASE_PAGE'] = 'archive/2001.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; news_archive_sidebar(); -site_header("News Archive - 2001"); +site_header("News Archive - 2001", array("generate_modified" => true)); ?> <h1>News Archive - 2001</h1> http://cvs.php.net/viewvc.cgi/phpweb/archive/2002.php?r1=1.1&r2=1.2&diff_format=u Index: phpweb/archive/2002.php diff -u phpweb/archive/2002.php:1.1 phpweb/archive/2002.php:1.2 --- phpweb/archive/2002.php:1.1 Sun Sep 17 13:15:06 2006 +++ phpweb/archive/2002.php Fri May 22 08:11:35 2009 @@ -1,9 +1,9 @@ <?php -// $Id: 2002.php,v 1.1 2006/09/17 13:15:06 goba Exp $ +// $Id: 2002.php,v 1.2 2009/05/22 08:11:35 bjori Exp $ $_SERVER['BASE_PAGE'] = 'archive/2002.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; news_archive_sidebar(); -site_header("News Archive - 2002"); +site_header("News Archive - 2002", array("generate_modified" => true)); ?> <h1>News Archive - 2002</h1> http://cvs.php.net/viewvc.cgi/phpweb/archive/2003.php?r1=1.2&r2=1.3&diff_format=u Index: phpweb/archive/2003.php diff -u phpweb/archive/2003.php:1.2 phpweb/archive/2003.php:1.3 --- phpweb/archive/2003.php:1.2 Thu Feb 15 23:43:13 2007 +++ phpweb/archive/2003.php Fri May 22 08:11:35 2009 @@ -1,9 +1,9 @@ <?php -// $Id: 2003.php,v 1.2 2007/02/15 23:43:13 didou Exp $ +// $Id: 2003.php,v 1.3 2009/05/22 08:11:35 bjori Exp $ $_SERVER['BASE_PAGE'] = 'archive/2003.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; news_archive_sidebar(); -site_header("News Archive - 2003"); +site_header("News Archive - 2003", array("generate_modified" => true)); ?> <h1>News Archive - 2003</h1> http://cvs.php.net/viewvc.cgi/phpweb/archive/2004.php?r1=1.2&r2=1.3&diff_format=u Index: phpweb/archive/2004.php diff -u phpweb/archive/2004.php:1.2 phpweb/archive/2004.php:1.3 --- phpweb/archive/2004.php:1.2 Thu Feb 15 23:43:13 2007 +++ phpweb/archive/2004.php Fri May 22 08:11:35 2009 @@ -1,9 +1,9 @@ <?php -// $Id: 2004.php,v 1.2 2007/02/15 23:43:13 didou Exp $ +// $Id: 2004.php,v 1.3 2009/05/22 08:11:35 bjori Exp $ $_SERVER['BASE_PAGE'] = 'archive/2004.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; news_archive_sidebar(); -site_header("News Archive - 2004"); +site_header("News Archive - 2004", array("generate_modified" => true)); ?> <h1>News Archive - 2004</h1> http://cvs.php.net/viewvc.cgi/phpweb/archive/2005.php?r1=1.3&r2=1.4&diff_format=u Index: phpweb/archive/2005.php diff -u phpweb/archive/2005.php:1.3 phpweb/archive/2005.php:1.4 --- phpweb/archive/2005.php:1.3 Sat Jun 2 10:54:16 2007 +++ phpweb/archive/2005.php Fri May 22 08:11:35 2009 @@ -1,9 +1,9 @@ <?php -// $Id: 2005.php,v 1.3 2007/06/02 10:54:16 bjori Exp $ +// $Id: 2005.php,v 1.4 2009/05/22 08:11:35 bjori Exp $ $_SERVER['BASE_PAGE'] = 'archive/2005.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; news_archive_sidebar(); -site_header("News Archive - 2005"); +site_header("News Archive - 2005", array("generate_modified" => true)); ?> <h1>News Archive - 2005</h1> http://cvs.php.net/viewvc.cgi/phpweb/archive/2006.php?r1=1.4&r2=1.5&diff_format=u Index: phpweb/archive/2006.php diff -u phpweb/archive/2006.php:1.4 phpweb/archive/2006.php:1.5 --- phpweb/archive/2006.php:1.4 Wed Feb 7 18:21:40 2007 +++ phpweb/archive/2006.php Fri May 22 08:11:35 2009 @@ -1,9 +1,9 @@ <?php -// $Id: 2006.php,v 1.4 2007/02/07 18:21:40 bjori Exp $ +// $Id: 2006.php,v 1.5 2009/05/22 08:11:35 bjori Exp $ $_SERVER['BASE_PAGE'] = 'archive/2006.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; news_archive_sidebar(); -site_header("News Archive - 2006"); +site_header("News Archive - 2006", array("generate_modified" => true)); ?> <h1>News Archive - 2006</h1> http://cvs.php.net/viewvc.cgi/phpweb/archive/2007.php?r1=1.3&r2=1.4&diff_format=u Index: phpweb/archive/2007.php diff -u phpweb/archive/2007.php:1.3 phpweb/archive/2007.php:1.4 --- phpweb/archive/2007.php:1.3 Sat Dec 29 15:11:18 2007 +++ phpweb/archive/2007.php Fri May 22 08:11:35 2009 @@ -1,9 +1,9 @@ <?php -// $Id: 2007.php,v 1.3 2007/12/29 15:11:18 bjori Exp $ +// $Id: 2007.php,v 1.4 2009/05/22 08:11:35 bjori Exp $ $_SERVER['BASE_PAGE'] = 'archive/2007.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; news_archive_sidebar(); -site_header("News Archive - 2007"); +site_header("News Archive - 2007", array("generate_modified" => true)); ?> <h1>News Archive - 2007</h1> http://cvs.php.net/viewvc.cgi/phpweb/archive/2008.php?r1=1.4&r2=1.5&diff_format=u Index: phpweb/archive/2008.php diff -u phpweb/archive/2008.php:1.4 phpweb/archive/2008.php:1.5 --- phpweb/archive/2008.php:1.4 Mon Jan 5 08:26:06 2009 +++ phpweb/archive/2008.php Fri May 22 08:11:35 2009 @@ -1,10 +1,10 @@ <?php -// $Id: 2008.php,v 1.4 2009/01/05 08:26:06 bjori Exp $ +// $Id: 2008.php,v 1.5 2009/05/22 08:11:35 bjori Exp $ $_SERVER['BASE_PAGE'] = 'archive/2008.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-news.inc'; news_archive_sidebar(); -site_header("News Archive - 2008"); +site_header("News Archive - 2008", array("generate_modified" => true)); ?> <h1>News Archive - 2008</h1>
« previous php.webmaster (#4829) next »