mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-05 09:23:40 -04:00
Add optional info page protection.
This commit is contained in:
parent
db4932b9ce
commit
96480a5c50
7 changed files with 218 additions and 54 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue