bizou/plugins/forbidroot/before_tpl.php
2013-11-11 12:15:55 +01:00

11 lines
205 B
PHP

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