cvs: phpweb /error index.php

From: Date: Fri, 25 Jul 2003 17:10:56 +0000
Subject: cvs: phpweb /error index.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-19545@lists.php.net to get a copy of this message
goba Fri Jul 25 13:10:56 2003 EDT Modified files: /phpweb/error index.php Log: Special support for the books page, until all the pages will be capable of being included, and this solution will be a general one Index: phpweb/error/index.php diff -u phpweb/error/index.php:1.126 phpweb/error/index.php:1.127 --- phpweb/error/index.php:1.126 Thu Jul 3 02:36:41 2003 +++ phpweb/error/index.php Fri Jul 25 13:10:56 2003 @@ -1,6 +1,6 @@ <?php -// $Id: index.php,v 1.126 2003/07/03 06:36:41 philip Exp $ +// $Id: index.php,v 1.127 2003/07/25 17:10:56 goba Exp $ /* @@ -185,7 +185,6 @@ "getdochowto" => "http://cvs.php.net/co.php/phpdoc/howto/howto.html.tar.gz?p=1", "rev" => "/manual/$LANG/revcheck.html.gz", "blog" => "/manual/$LANG/build.log.gz", - "books" => "/books.php?type_lang=PHP_$LANG" ); // ============================================================================ @@ -207,6 +206,12 @@ if (isset($external_redirects[$URI])) { $true_external = (substr($external_redirects[$URI], 0, 1) != '/'); mirror_redirect($external_redirects[$URI], $true_external); +} + +// Temporary hack for books, until all the pages will be +// capable of being included from anywhere +if ($URI == 'books') { + include_once $_SERVER['DOCUMENT_ROOT'] . "/books.php"; } // ============================================================================

« previous php.mirrors (#19545) next »