bizou/plugins/forbidroot/before_tpl.php

11 lines
205 B
PHP
Raw Normal View History

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