[ PHPXref.com ] [ Generated: Sun Jul 20 20:24:46 2008 ] [ snif 1.5.2 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/subdir/ -> index.php (source)

   1  <?
   2  /***************************************************************************

   3  

   4  snif 1.2.1

   5  "snif is not an index file"

   6  "simple and nice index file"

   7  (c) Kai Blankenhorn

   8  www.bitfolge.de

   9  kaib@bitfolge.de

  10  

  11  

  12  THIS IS THE SUBDIR/INDEX.PHP FILE.

  13  

  14  

  15  This program is free software; you can redistribute it and/or

  16  modify it under the terms of the GNU General Public License

  17  as published by the Free Software Foundation; either version 2

  18  of the License, or (at your option) any later version.

  19  

  20  This program is distributed in the hope that it will be useful,

  21  but WITHOUT ANY WARRANTY; without even the implied warranty of

  22  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

  23  GNU General Public License for more details: <http://www.gnu.org/licenses/gpl.txt>

  24  

  25  ****************************************************************************

  26  

  27  

  28  Changelog:

  29  

  30  see the real snif index file

  31  

  32  

  33  ****************************************************************************

  34  **  THIS FILE IS SUPPOSED TO SHOW A DIRECTORY LISTING??                   **

  35  ****************************************************************************

  36  

  37  No, this file is used as a forwarder to the main snif file. See the example

  38  in the real snif index file.

  39  

  40  

  41  

  42  ****************************************************************************/
  43  
  44  
  45  $dir = dirname($_SERVER["PHP_SELF"]);
  46  $pathArr = explode("/",$dir);
  47  
  48  $path = $_GET["path"];
  49  $path = str_replace("../","",$path);
  50  if ($path[0]=='/')
  51      $path = substr($path,1);
  52  
  53  $subDirectory = $pathArr[count($pathArr)-1]."/".$path;
  54  
  55  Header("Location: ../?path=".$subDirectory);
  56  ?>


[ Powered by PHPXref - Served by Debian GNU/Linux ]