cvs: phpweb /include layout.inc
| From: | Gabor Hojtsy | Date: | Mon, 11 Oct 2004 12:49:44 +0000 |
| Subject: | cvs: phpweb /include layout.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-26361@lists.php.net to get a copy of this message | ||
goba Mon Oct 11 08:49:44 2004 EDT
Modified files:
/phpweb/include layout.inc
Log:
only print the view source link, if we know what page we are displaying (inspired by a different
patch from Toni Viemero)
http://cvs.php.net/diff.php/phpweb/include/layout.inc?r1=1.205&r2=1.206&ty=u
Index: phpweb/include/layout.inc
diff -u phpweb/include/layout.inc:1.205 phpweb/include/layout.inc:1.206
--- phpweb/include/layout.inc:1.205 Thu Aug 26 04:23:18 2004
+++ phpweb/include/layout.inc Mon Oct 11 08:49:40 2004
@@ -1,5 +1,5 @@
<?php
-/* $Id: layout.inc,v 1.205 2004/08/26 08:23:18 rasmus Exp $ */
+/* $Id: layout.inc,v 1.206 2004/10/11 12:49:40 goba Exp $ */
// Set the static content root differently on php.net
$_SERVER['STATIC_ROOT'] = ($MYSITE == 'http://www.php.net/') ?
@@ -186,7 +186,10 @@
{
global $LAST_UPDATED, $PAGE_COLUMNS;
- $stats = (have_stats() ? "\n <a href=\"/stats/\">stats</a> |" :
"");
+ $stats = (have_stats() ? "\n <a href=\"/stats/\">stats</a>
|" : "");
+ $viewsource = (isset($_SERVER['BASE_PAGE']) ?
+ "<a href=\"/source.php?url=/{$_SERVER['BASE_PAGE']}\">show
source</a> |" :
+ "");
$provider_url = mirror_provider_url();
$provider_name = mirror_provider();
$mirror_text = (is_official_mirror() ?
@@ -203,7 +206,7 @@
{$layout_helper}</div>
<div id="footnav">
- <a href="/source.php?url=/{$_SERVER['BASE_PAGE']}">show source</a>
|
+ $viewsource
<a href="/credits.php">credits</a> |$stats
<a href="/sitemap.php">sitemap</a> |
<a href="/contact.php">contact</a> |