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 .= "
DIR $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/
\n";
}
} else if (preg_match('/\.(gif|ico|jpg|jpeg|png)$/',$filename)) {
$flist .= "
♠$filename\n"; //it's a picture
}
}
echo $dlist . $flist;
?>