made a copy
[atutor.git] / documentation / general / fr / index.php
1 <?php
2 /************************************************************************/
3 /* ATutor                                                                                                                               */
4 /************************************************************************/
5 /* Copyright (c) 2002-2008 by Greg Gay, Joel Kronenberg                     */
6 /* Adaptive Technology Resource Centre / University of Toronto                  */
7 /* http://atutor.ca                                                                                                             */
8 /*                                                                                                                                              */
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 $
14
15 $parts = pathinfo($_SERVER['PHP_SELF']);
16
17 $dir_parts = explode('/', $parts['dirname']);
18 $last_dir_name = end($dir_parts);
19
20 header('Location: ../index.php?' . $last_dir_name);
21 exit;
22 ?>