bizou/plugins/_disabled/forbidroot/before_tpl.php
2013-11-11 12:16:59 +01:00

10 lines
205 B
PHP

<?php
if ($GLOBALS['simplePath'] === "") {
header("HTTP/1.1 403 Forbidden");
die("Forbdidden directory");
}
if (dirname($GLOBALS['simplePath']) === "/") {
$GLOBALS['parentLink'] = "";
}