From: Marc MAURICE Date: Mon, 11 Nov 2013 11:15:55 +0000 (+0100) Subject: New forbidroot plugin to forbid rootdir listing X-Git-Url: http://positon.org/gitweb/?p=bizou.git;a=commitdiff_plain;h=4011c2a63532cd52ab3d140e6e72797c0fe44b11 New forbidroot plugin to forbid rootdir listing --- diff --git a/index.php b/index.php index 708a9e3..e77be4e 100644 --- a/index.php +++ b/index.php @@ -77,6 +77,8 @@ if (dirname($simplePath) !== '') else $parentLink = ""; +plugins_include("before_tpl.php"); + ///// template starts here ///// header('Content-Type: text/html; charset=utf-8'); header('Cache-Control: max-age=3600'); diff --git a/plugins/forbidroot/before_tpl.php b/plugins/forbidroot/before_tpl.php new file mode 100644 index 0000000..b9b5361 --- /dev/null +++ b/plugins/forbidroot/before_tpl.php @@ -0,0 +1,10 @@ +