cvs: phpweb / error.php urlhowto.php
| From: | Nuno Lopes | Date: | Wed, 06 Sep 2006 14:12:31 +0000 |
| Subject: | cvs: phpweb / error.php urlhowto.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-32355@lists.php.net to get a copy of this message | ||
nlopess Wed Sep 6 14:12:31 2006 UTC
Modified files:
/phpweb error.php urlhowto.php
Log:
remove the last references to the books page. and use our show-source functionality instead of
redirecting users to cvs
http://cvs.php.net/viewvc.cgi/phpweb/error.php?r1=1.48&r2=1.49&diff_format=u
Index: phpweb/error.php
diff -u phpweb/error.php:1.48 phpweb/error.php:1.49
--- phpweb/error.php:1.48 Tue Sep 5 13:39:20 2006
+++ phpweb/error.php Wed Sep 6 14:12:30 2006
@@ -1,6 +1,6 @@
<?php
-// $Id: error.php,v 1.48 2006/09/05 13:39:20 nlopess Exp $
+// $Id: error.php,v 1.49 2006/09/06 14:12:30 nlopess Exp $
/*
@@ -335,10 +335,10 @@
}
// ============================================================================
-// Redirect if the entered URI was a PHP page name (except the books page,
+// Redirect if the entered URI was a PHP page name (except some pages,
// which we display in the mirror's language or the explicitly specified
// language [see below])
-if (!in_array($URI, array('books', 'mirror-info', 'error'))
&&
+if (!in_array($URI, array('mirror-info', 'error')) &&
file_exists($_SERVER['DOCUMENT_ROOT'] . "/$URI.php")) {
mirror_redirect("/$URI.php");
}
@@ -349,9 +349,9 @@
mirror_redirect($external_redirects[$URI]);
}
-// Temporary hack for books and mirror-info, until all the pages
+// Temporary hack for mirror-info, until all the pages
// will be capable of being included from anywhere
-if (in_array($URI, array('books', 'mirror-info'))) {
+if (in_array($URI, array('mirror-info'))) {
status_header(200);
include_once $_SERVER['DOCUMENT_ROOT'] . "/$URI.php";
}
http://cvs.php.net/viewvc.cgi/phpweb/urlhowto.php?r1=1.18&r2=1.19&diff_format=u
Index: phpweb/urlhowto.php
diff -u phpweb/urlhowto.php:1.18 phpweb/urlhowto.php:1.19
--- phpweb/urlhowto.php:1.18 Thu Sep 18 16:00:10 2003
+++ phpweb/urlhowto.php Wed Sep 6 14:12:30 2006
@@ -1,5 +1,5 @@
<?php
-// $Id: urlhowto.php,v 1.18 2003/09/18 16:00:10 goba Exp $
+// $Id: urlhowto.php,v 1.19 2006/09/06 14:12:30 nlopess Exp $
$_SERVER['BASE_PAGE'] = 'urlhowto.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
@@ -114,8 +114,8 @@
<tt><?php echo $MYSITE; ?>php4news</tt>. The latter is an external page
alias, as it points to a file on the CVS server, containing information
about changes in PHP. There are also some convinient aliases, like
- <tt><?php echo $MYSITE; ?>de/books</tt> which displays the German
- PHP books' list.
+ <tt><?php echo $MYSITE; ?>de/phpversion</tt> which displays the German
+ manual page for the phpversion() function.
</p>
<h1>Get it on your site</h1>
@@ -134,10 +134,10 @@
</p>
<ul>
<li><a href="/mirroring.php">Mirroring instructions</a> (see the three
ErrorDocument settings)</li>
- <li><a href="http://cvs.php.net/co.php/phpweb/include/langchooser.inc">http://cvs.php.net/co.php/phpweb/include/langchooser.inc</a></li>
- <li><a href="http://cvs.php.net/co.php/phpweb/error.php">http://cvs.php.net/co.php/phpweb/error.php</a></li>
- <li><a href="http://cvs.php.net/co.php/phpweb/include/manual-lookup.inc">http://cvs.php.net/co.php/phpweb/include/manual-lookup.inc</a></li>
- <li><a href="http://cvs.php.net/co.php/phpweb/search.php">http://cvs.php.net/co.php/phpweb/search.php</a></li>
+ <li><a
href="/source.php?url=/include/langchooser.inc">include/langchooser.inc</a></li>
+ <li><a href="/source.php?url=/error.php">error.php</a></li>
+ <li><a
href="/source.php?url=/include/manual-lookup.inc">include/manual-lookup.inc</a></li>
+ <li><a href="/source.php?url=/search.php">search.php</a></li>
</ul>
<?php site_footer(); ?>