diff --git a/TODO b/TODO new file mode 100644 index 0000000..dfb2fe1 --- /dev/null +++ b/TODO @@ -0,0 +1,3 @@ +Check if paramters exist before accessing them + +Make the CSS pretty diff --git a/hiddenlisting.php b/hiddenlisting.php new file mode 100644 index 0000000..0fe5103 --- /dev/null +++ b/hiddenlisting.php @@ -0,0 +1,124 @@ + +
+ +Select a file to download, or a folder to view its contents
+File Name | +Link | +Size | +Oops! This folder is empty... | ++ | 0 | + + emptylisting; + } + foreach($elements as $i=>$currentfile){ + echo "
---|---|---|---|---|
" . $currentfile . " | "; + $fulldir = $hid_dir_dirs[$hid_dir_index] . $path . "/" . $currentfile; + if(is_dir($fulldir)){ + echo "View Directory | "; + echo "" . foldersize($fulldir) . " | "; + } else { + echo "Download | "; + echo "" . listingsize($fulldir) . " | "; + } + echo "
The server admin has enabled javascript. Type the name and password and click Goto Folder!
+The server admin has disabled javascript, therefore this is not dynamic. 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'] . "/hiddenlisting.php?folder=<name>&psk=<password>"; + + } + + echo <<< cardbottom +