2 /************************************************************************/
4 /************************************************************************/
5 /* Copyright (c) 2002-2006 by Greg Gay, Joel Kronenberg */
6 /* Adaptive Technology Resource Centre / University of Toronto */
9 /* This program is free software. You can redistribute it and/or */
10 /* modify it under the terms of the GNU General Public License */
11 /* as published by the Free Software Foundation. */
12 /************************************************************************/
13 // $Id: index.php 5866 2005-12-15 16:16:03Z joel $
15 $parts = pathinfo($_SERVER['PHP_SELF']);
17 $dir_parts = explode('/', $parts['dirname']);
18 $last_dir_name = end($dir_parts);
20 header('Location: ../index.php?' . $last_dir_name);