diff --git a/index.php b/index.php index d5f2fa3..d836c00 100644 --- a/index.php +++ b/index.php @@ -2,21 +2,18 @@ <?php echo $site_name ?> @@ -67,6 +64,7 @@
cardHead; @@ -96,6 +94,36 @@ echo '
'; } ?> + +
+
+

Access Hidden Directories

+
+
+ cardtop; + + if($useJavascript){ + echo '

The server admin has enabled javascript. Type the name and key and hit enter!

'; + + } else { + echo '

The server admin has disabled javascript. Please type the link in the URL and replace <name> with the directory name, and <password> with the password

'; + echo '

The link to copy is:

'; + echo $_SERVER['HTTP_HOST']; + + + } + + echo <<< cardbottom +
+
+ cardbottom; + } + ?> +
+ diff --git a/listing.php b/listing.php index d2228d7..2ff6f99 100644 --- a/listing.php +++ b/listing.php @@ -2,20 +2,18 @@ <?php echo $site_name ?> diff --git a/var/config.def.php b/var/config.def.php index 205a08e..82f037a 100644 --- a/var/config.def.php +++ b/var/config.def.php @@ -78,6 +78,11 @@ * All Dirs here will not be available, and will require the user to know * both the name of the folder, as well as the password. This does not use * any databases + * + * If you would like to enable the use of javascript for dynamic links, change + * $useJavascript to yes, else keep it disabled. If you keep it disabled, + * users will have to type the url themselves. This keeps the application light, + * but removes some useability. * * Each variable in $hid_dir_names will be a folder that will be hidden * This will need to be known in order to access the folder @@ -167,6 +172,16 @@ ' is asking for help with their homework from ', ); + /* Debug + * + * This is not recomneded for production enviroments. This will display + * information that could be useful to an attacker. Only use this + * if you are developing anything! + * + */ + + $isDebug = false; + //Be safe, check arrays if(empty($nav_names) or empty($nav_links)){ $isNav = false;