cvs: phpweb /include layout.inc shared-manual.inc
| From: | Hannes Magnusson | Date: | Fri, 17 Apr 2009 11:35:15 +0000 |
| Subject: | cvs: phpweb /include layout.inc shared-manual.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-4473@lists.php.net to get a copy of this message | ||
bjori Fri Apr 17 11:35:15 2009 UTC
Modified files:
/phpweb/include layout.inc shared-manual.inc
Log:
Cover all our bases; Add support for:
- Link shorturl HTTP headers
- rel=shorturl
http://cvs.php.net/viewvc.cgi/phpweb/include/layout.inc?r1=1.300&r2=1.301&diff_format=u
Index: phpweb/include/layout.inc
diff -u phpweb/include/layout.inc:1.300 phpweb/include/layout.inc:1.301
--- phpweb/include/layout.inc:1.300 Sat Apr 11 10:09:19 2009
+++ phpweb/include/layout.inc Fri Apr 17 11:35:15 2009
@@ -1,5 +1,5 @@
<?php
-/* $Id: layout.inc,v 1.300 2009/04/11 10:09:19 bjori Exp $ */
+/* $Id: layout.inc,v 1.301 2009/04/17 11:35:15 bjori Exp $ */
// Set the static content root differently on php.net
$_SERVER['STATIC_ROOT'] = ($MYSITE == 'http://www.php.net/') ?
@@ -81,6 +81,11 @@
header("Content-type: text/html;charset={$config['charset']}");
header("Content-language: {$config['lang']}");
header("X-PHP-QUESTION: I wonder if anyone will ever notice this");
+ if (isset($config["extra_headers"]) &&
is_array($config["extra_headers"])) {
+ foreach($config["extra_headers"] as $key => $value) {
+ header(sprintf("%s: %s", $key, $value));
+ }
+ }
if (!empty($title)) { $title = ": $title"; }
http://cvs.php.net/viewvc.cgi/phpweb/include/shared-manual.inc?r1=1.243&r2=1.244&diff_format=u
Index: phpweb/include/shared-manual.inc
diff -u phpweb/include/shared-manual.inc:1.243 phpweb/include/shared-manual.inc:1.244
--- phpweb/include/shared-manual.inc:1.243 Fri Apr 10 09:50:49 2009
+++ phpweb/include/shared-manual.inc Fri Apr 17 11:35:15 2009
@@ -1,6 +1,6 @@
<?php // -*- C++ -*-
-// $Id: shared-manual.inc,v 1.243 2009/04/10 09:50:49 bjori Exp $
+// $Id: shared-manual.inc,v 1.244 2009/04/17 11:35:15 bjori Exp $
/*
@@ -88,11 +88,14 @@
"schema.rdfs" => "http://www.w3.org/2000/01/rdf-schema#",
array(
"rev" => "canonical",
- "rel" => "self alternate shorter",
+ "rel" => "self alternate shorter shorturl",
"href" => "http://php.net/" . $shorturl,
),
),
"profile" => "http://purl.org/NET/erdf/profile",
+ "extra_headers" => array(
+ "Link" => "<http://php.net/" .
$shorturl . ">; rel=shorturl",
+ ),
));
manual_navbar();
}