">
$dir_){ if($dir_ == $dir){ $exists = true; break; } } $psk = $_GET['psk']; $psk_correct = false; if($hid_dir_psk[$hid_dir_index] == $psk){ $psk_correct = true; } if(!$exists || !$psk_correct){ echo <<< errorblockSelect 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 "