/ www.evoluted.net Revised: 02/11/2012 - Wildd Technologies / WilddTech.com */ $includeurl = false; $startdir = '.'; $showdirs = true; $hide = array( 'dlf', 'index.php', 'Thumbs', '.htaccess', '.htpasswd' ); /*$showtypes = array( 'jpg', 'png', 'gif', 'zip', 'txt' );*/ $displayindex = false; $indexfiles = array ( 'index.html', 'index.htm', 'default.htm', 'default.html' ); if($includeurl) { $includeurl = preg_replace("/^\//", "${1}", $includeurl); if(substr($includeurl, strrpos($includeurl, '/')) != '/') $includeurl.='/'; } error_reporting(0); if($startdir) $startdir = preg_replace("/^\//", "${1}", $startdir); $leadon = $startdir; if($leadon=='.') $leadon = ''; if((substr($leadon, -1, 1)!='/') && $leadon!='') $leadon = $leadon . '/'; $startdir = $leadon; if($_GET['dir']) { //check this is okay. if(substr($_GET['dir'], -1, 1)!='/') { $_GET['dir'] = strip_tags($_GET['dir']) . '/'; } $dirok = true; $dirnames = split('/', strip_tags($_GET['dir'])); for($di=0; $di404 Not Found"; echo "Page not found."; exit(); } } $opendir = $includeurl.$leadon; if(!$leadon) $opendir = '.'; if(!file_exists($opendir)) { $opendir = '.'; $leadon = $startdir; } echo "

Roksbox Directory Listing

"; echo ""; clearstatcache(); if ($handle = opendir($opendir)) { while (false !== ($file = readdir($handle))) { //first see if this file is required in the listing if ($file == "." || $file == "..") continue; $discard = false; for($hi=0;$hi Directory Listing of <?php echo str_replace('\\', '', dirname(strip_tags($_SERVER['PHP_SELF']))).'/'.$leadon;?>
  • KB