<?php
// This file can be copied to *any* subdirectory of the root which has
// some content associated with it. The idea is that if someone gets here
// accidentally (or I send someone a link to this directory) they are
// automatically redirected to the right place. While it is *gross* that I have
// to include a repeated code in *every* subdirectory
// it is useful in that I only  have to specialize each file at the
// header() command with regard to where it sits in the directory
// hierarcy. However, I'd like to have something cleaner. Also this
// code is equivalent to FindBaseDir found in util.inc


//
// Unless we define a root function, I don't see how to do this
// redirect without typing it in directly. The only point of this file
//
 $file = basename(getcwd());
 header("Location: ../?key=$file");


exit;

?>
