projects
/
bizou.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
forbidroot plugin disabled by default
[bizou.git]
/
plugins
/
_disabled
/
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
}