cvs: phpweb /include layout.inc shared-stat.inc
| From: | Jim Winstead | Date: | Thu, 08 Mar 2001 22:05:00 +0000 |
| Subject: | cvs: phpweb /include layout.inc shared-stat.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-4291@lists.php.net to get a copy of this message | ||
jimw Thu Mar 8 14:05:00 2001 EDT
Modified files:
/phpweb/include layout.inc shared-stat.inc
Log:
can't send header on stats pages
Index: phpweb/include/layout.inc
diff -u phpweb/include/layout.inc:1.8 phpweb/include/layout.inc:1.9
--- phpweb/include/layout.inc:1.8 Thu Mar 8 14:01:20 2001
+++ phpweb/include/layout.inc Thu Mar 8 14:05:00 2001
@@ -1,5 +1,5 @@
<?php
-/* $Id: layout.inc,v 1.8 2001/03/08 22:01:20 cmv Exp $ */
+/* $Id: layout.inc,v 1.9 2001/03/08 22:05:00 jimw Exp $ */
# spacer()
@@ -175,10 +175,10 @@
#
#
-function commonHeader($title="",$dont_enclose=0) {
+function commonHeader($title="",$dont_enclose=0,$headers_gone=0) {
global $MYSITE, $MIRRORS, $COUNTRIES, $enclosed;
global $SIDEBAR_DATA;
- header("Last-Modified: ".gmdate("D, d M Y H:i:s",getlastmod())."
GMT");
+ if (!$headers_gone) header("Last-Modified: ".gmdate("D, d M Y
H:i:s",getlastmod())." GMT");
?><html>
<head>
<title>PHP<?php if ($title) echo ": $title";?></title>
@@ -344,7 +344,7 @@
<td align="right"><small>
This mirror generously provided by:
<a href="<?php echo $MIRRORS[$MYSITE][3];?>"><?php echo
$MIRRORS[$MYSITE][1];?></a><BR>
- Last updated: <?php echo strftime("%c", $LAST_UPDATED); ?><BR>
+ Last updated: <?php echo strftime("%c %Z", $LAST_UPDATED); ?><BR>
</small>
</td>
</tr>
Index: phpweb/include/shared-stat.inc
diff -u phpweb/include/shared-stat.inc:1.9 phpweb/include/shared-stat.inc:1.10
--- phpweb/include/shared-stat.inc:1.9 Thu Mar 8 13:44:03 2001
+++ phpweb/include/shared-stat.inc Thu Mar 8 14:05:00 2001
@@ -2,7 +2,7 @@
header("Vary: User-Agent");
require_once 'prepend.inc';
-function commonStatHeader($title) {
+function commonStatHeader($title,0,1) {
commonHeader($title);
}