b9b536121c39e54255c7b08a190d002a316b5884
[bizou.git] / plugins / forbidroot / before_tpl.php
1 <?php
2
3 if ($GLOBALS['simplePath'] === "") {
4         header("HTTP/1.1 403 Forbidden");
5         die("Forbdidden directory");
6 }
7
8 if (dirname($GLOBALS['simplePath']) === "/") {
9         $GLOBALS['parentLink'] = "";
10 }