My Online Drive
= 5) { $dir = scandir($directory); }else{ $dtemp = opendir($directory); while (false !== ($filename = readdir($dtemp))) { $dir[] = $filename; } sort($dir); } } else { $here = 1; } if($here > -1) { //This is when people try to Inject $entity[0] = "\"Error\" Error: No access allowed. ERROR"; } else { $host = $_SERVER['HTTP_HOST']; $uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\'); $URL = "http://".$host.$uri."/".$extra; $i = 0; do { $linkmaker = 0; $linky[$i] = $directory."/".$dir[$i]; $size = filesize($linky[$i]); $size = round(($size/1024)/1024,2)." MB"; $ext = strtolower(preg_replace("@(.+)(\.)(.+)@e","('$3')",$dir[$i])); if(url_exists("http://filestore.aboutcher.co.uk/global/lister/".$ext.".png")) { $img = strtolower($ext).".png"; $type = strtoupper($ext)." File"; } else { if(is_dir($linky[$i])) { $img = "folder.png"; $type = "Folder"; $size = "N/A"; if(isset($_GET['f'])) { $linky[$i] = "?f=".$fldr."/".$dir[$i]; $linkmaker = 1; } else { $linky[$i] = "?f=/".$dir[$i]; $linkmaker = 1; } } else { $img = "unknown.png"; $type = "Unknown File"; } } if($linkmaker = "0") { $linky[$i] = $URL.$directory."/".$dir[$i]; } if(($dir[$i] == ".")||($dir[$i] == "..")) { // Hide dot folders (ie parent folder and self) $entity[$i] = ""; } elseif ((in_array($dir[$i],$hiddenfiles))||(in_array($ext,$hiddentypes))) { $entity[$i] = ""; } else { $entity[$i] = "\"".$type."\" ".$dir[$i]." ".$size."\n"; } $i++; } while(isset($dir[$i])); $backlink = strrpos($fldr,"/"); $backlink = ($backlink); $backlink = substr($fldr,$backlink,strlen($fldr)); $backlink = strlen($backlink); $backlink = substr($fldr,0,-$backlink); $backlink = "?f=".urlencode($backlink); } ?>
Refresh

Directory Lister Logo 

-1))&&($_GET['f']!="")) { echo ""; } $i = 0; do { echo $entity[$i]; $i++; } while(isset($entity[$i])); ?>
Type File Name File Size
\"Parent Parent Folder  

© aboutcher.co.uk