Add optional info page protection.

This commit is contained in:
Lars Jung 2014-06-29 17:51:00 +02:00
parent db4932b9ce
commit 96480a5c50
7 changed files with 218 additions and 54 deletions

View file

@ -1,5 +1,17 @@
<?php
/*********************************************************************
SHA1 hash of the info page password, the preset password is the
empty string. You might change it if you want to keep these
informations private.
Online hash generator: http://www.sha1.cz/
*********************************************************************/
define("PASSHASH", "da39a3ee5e6b4b0d3255bfef95601890afd80709");
function normalize_path($path, $trailing_slash = false) {
$path = preg_replace("#\\\\+|/+#", "/", $path);