Hover over a name below to preview, click it to select.
Updated: $modtime ";
if (is_dir($filepath)) { //it's a directory
if ($filename == '.'){ //current directory
$dlist .= "

$docpath ";
} else if ($filename == '..') { //parent directory
if($docpath) { //we're in a sub directory - no Up from root
$updir = substr($docpath,0,strrpos($docpath,'/'));
$dlist .= "
Up/
";
}
} else if ($filename != 'bak') {
$docpath = str_replace($_SERVER['DOCUMENT_ROOT'], "", $d);
$dlist .= "
$filename/
";
}
} else if (strpos($filename, '.jpg') || strpos($filename, '.gif') || strpos($filename, '.png') || strpos($filename, '.ico') ) {
$flist .= "
$filename"; //it's a picture
}
}
echo $dlist . $flist;
function insensitive($a, $b) { //used by usort to sort file list case insensitive -------------------------
return strcmp(strtolower($a), strtolower($b));
}
?>