Skip to content

Commit

Permalink
Fix includes, and make redirects based on the already computed
Browse files Browse the repository at this point in the history
language value
  • Loading branch information
Gabor Hojtsy committed Aug 2, 2003
1 parent 0e76f2a commit 6d0f625
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
6 changes: 2 additions & 4 deletions manual/change.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php

include_once "prepend.inc";

// $Id$
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
// Redirect to new manual page
mirror_redirect("/manual/" . $_GET['page']);

?>
11 changes: 4 additions & 7 deletions manual/index.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<?php
require_once '../include/prepend.inc';

$lang = default_language();
if (@is_dir($lang)) {
header("Location: $lang/");
}
header("Location: en/");
// $Id$
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
mirror_redirect("/manual/$LANG/index.php");
?>
4 changes: 3 additions & 1 deletion manual/phpfi2.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php
include_once 'prepend.inc';
// $Id$
$_SERVER['BASE_PAGE'] = '/manual/phpfi2.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
commonHeader('PHP/FI Version 2.0 Documentation');
?>

Expand Down

0 comments on commit 6d0f625

Please sign in to comment.