From 4011c2a63532cd52ab3d140e6e72797c0fe44b11 Mon Sep 17 00:00:00 2001 From: Marc MAURICE Date: Mon, 11 Nov 2013 12:15:55 +0100 Subject: [PATCH] New forbidroot plugin to forbid rootdir listing --- index.php | 2 ++ plugins/forbidroot/before_tpl.php | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 plugins/forbidroot/before_tpl.php 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 @@ +