Changeset 32 in projects


Ignore:
Timestamp:
Mar 13, 2009, 3:34:08 AM (11 years ago)
Author:
sven
Message:

A minor fix in index.php: Making up/down directory for users
workable (by removing unneccessary redirect)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • documentation/index.php

    r31 r32  
    2323  $filename = substr($_SERVER['PATH_INFO'], 1); # strip trailing slash: /a/b => a/b
    2424
    25   // redirect to default page if no one is given:
     25  // show default page if no one is given:
    2626  $default_page = $doc.'/start.htm';
    27   if(empty($filename)) { header("Location: $_SERVER[PHP_SELF]/$default_page"); exit; }
     27  #if(empty($filename)) { header("Location: $_SERVER[PHP_SELF]/$default_page"); exit; }
     28  if(empty($filename)) $filename = $default_page;
    2829
    2930  // check if filename is correct
Note: See TracChangeset for help on using the changeset viewer.
© 2008 - 2013 technikum29 • Sven Köppel • Some rights reserved
Powered by Trac
Expect where otherwise noted, content on this site is licensed under a Creative Commons 3.0 License