. www.evoluted.net Layout: Manny . www.tenka.co.uk REQUIREMENTS ============ This script requirse PHP and GD2 if you wish to use the thumbnail functionality. INSTRUCTIONS ============ 1) Unzip all files 2) Edit this file, making sure everything is setup as required. 3) Upload to server 4) ?????? 5) Profit! CONFIGURATION ============= Edit the variables in this section to make the script work as you require. Start Directory - To list the files contained within the current directory enter '.', otherwise enter the path to the directory you wish to list. The path must be relative to the current directory. */ $startdir = '.'; /* Show Thumbnails? - Set to true if you wish to use the scripts auto-thumbnail generation capabilities. This requires that GD2 is installed. */ $showthumbnails = true; /* Show Directories - Do you want to make subdirectories available? If not set this to false */ $showdirs = true; /* Hide Files - If you wish to hide certain files or directories then enter their details here. The values entered are matched against the file/directory names. If any part of the name matches what is entered below then it is now shown. */ $hide = array( 'dlf', 'index.php', 'Thumbs', '.htaccess', '.htpasswd', ); /* File Icons - If you want to add your own special file icons use this section below. Each entry relates to the extension of the given file, in the form => . These files must be located within the dlf directory. */ $filetypes = array ( 'png' => 'image.png', 'jpeg' => 'image.png', 'jpg' => 'image.png', 'gif' => 'image.png', 'zip' => 'archive.png', 'exe' => 'binary.png', 'txt' => 'text.png', 'htm' => 'html.png', 'html' => 'html.png' ); /* That's it! You are now ready to upload this script to the server. Only edit what is below this line if you are sure that you know what you are doing! */ error_reporting(0); if(!function_exists('imagecreatetruecolor')) $showthumbnails = false; $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'] = $_GET['dir'] . '/'; } $dirok = true; $dirnames = split('/', $_GET['dir']); for($di=0; $di Directory Listing of /audio/911/

Directory Listing of /audio/911/

Please RIGHT CLICK AND DO 'SAVE AS' to Save These Files to Your Hard Disk...

'.$files[$i].''; $thumb2 = ' onmouseover="o('.$i.', \''.urlencode($leadon . $files[$i]).'\');" onmouseout="f('.$i.');"'; } if($filetypes[$ext]) { $icon = $filetypes[$ext]; } $filename = $files[$i]; /*if(strlen($filename)>43) { $filename = substr($files[$i], 0, 40) . '...'; }*/ $sizeoffile = round(filesize($leadon.$files[$i])/1024); if ($sizeoffile > 1024) { $filesize_string = round($sizeoffile/102.4)/10 . ' MB'; } else { $filesize_string = $sizeoffile . ' KB'; } /* */ ?>
() (Modified: Dec 31 1969 07:00:00 PM)


Directory Listing Script ©2005 Ash Young. Design by Manny.