cvs: phpweb /manual change.php index.php phpfi2.php

From: Date: Sat, 02 Aug 2003 20:47:06 +0000
Subject: cvs: phpweb /manual change.php index.php phpfi2.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-19765@lists.php.net to get a copy of this message
goba Sat Aug 2 16:47:06 2003 EDT Modified files: /phpweb/manual change.php index.php phpfi2.php Log: Fix includes, and make redirects based on the already computed language value Index: phpweb/manual/change.php diff -u phpweb/manual/change.php:1.2 phpweb/manual/change.php:1.3 --- phpweb/manual/change.php:1.2 Sun Jan 26 05:14:39 2003 +++ phpweb/manual/change.php Sat Aug 2 16:47:06 2003 @@ -1,8 +1,6 @@ <?php - -include_once "prepend.inc"; - +// $Id: change.php,v 1.3 2003/08/02 20:47:06 goba Exp $ +include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; // Redirect to new manual page mirror_redirect("/manual/" . $_GET['page']); - ?> Index: phpweb/manual/index.php diff -u phpweb/manual/index.php:1.6 phpweb/manual/index.php:1.7 --- phpweb/manual/index.php:1.6 Thu May 15 13:39:37 2003 +++ phpweb/manual/index.php Sat Aug 2 16:47:06 2003 @@ -1,8 +1,5 @@ <?php -require_once '../include/prepend.inc'; - -$lang = default_language(); -if (@is_dir($lang)) { - header("Location: $lang/"); -} -header("Location: en/"); +// $Id: index.php,v 1.7 2003/08/02 20:47:06 goba Exp $ +include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; +mirror_redirect("/manual/$LANG/index.php"); +?> \ No newline at end of file Index: phpweb/manual/phpfi2.php diff -u phpweb/manual/phpfi2.php:1.3 phpweb/manual/phpfi2.php:1.4 --- phpweb/manual/phpfi2.php:1.3 Mon Dec 16 15:02:26 2002 +++ phpweb/manual/phpfi2.php Sat Aug 2 16:47:06 2003 @@ -1,5 +1,7 @@ <?php -include_once 'prepend.inc'; +// $Id: phpfi2.php,v 1.4 2003/08/02 20:47:06 goba Exp $ +$_SERVER['BASE_PAGE'] = '/manual/phpfi2.php'; +include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; commonHeader('PHP/FI Version 2.0 Documentation'); ?>

« previous php.mirrors (#19765) next »