\n"; $output .= "\n"; $output .= "\n"; $output .= "name"; $output .= "\n"; $output .= "\n"; $output .= "dimensions\n"; $output .= "\n"; $output .= "\n"; $output .= "size\n"; $output .= "\n"; $output .= "\n"; $output .= "date\n"; $output .= "\n"; $output .= "\n"; $imgcnt=0; $output .= " ../\n"; $output .= "\n"; $output .= " \n"; $output .= "\n"; $dirs=$files; while (list($key, $value) = each($dirs)) { if ($ext[$key] == "DIR" && $value != '.' && $value != '..') { $output .= " $value/\n"; $output .= " \n"; $output .= " \n"; $output .= "".date( "m/d/Y", $filedate[$key])."\n"; $output .= "\n"; } } while (list($key, $value) = each($files)) { if ($ext[$key] == "IMG") $icon = $icon_img; else if ($icons[$ext[$key]]) $icon = $icons[$ext[$key]]; else $icon = $icon_default; if ($ext[$key] == "IMG") { $imgcnt++; $output .= " $value\n"; $output .= "$imageinfox[$key]x$imageinfoy[$key]\n"; $kb = $filesize[$key]/1024; $kbs = split('\.', $kb); $output .= "$kbs[0] kb\n"; $output .= "".date( "m/d/Y", $filedate[$key])."\n"; $output .= "\n"; } else if ($ext[$key] != "DIR") { $output .= " $value\n"; $output .= "\n"; $kb = $filesize[$key]/1024; $kbs = split('\.', $kb); $kbs[0] = $kbs[0]." kb"; $output .= "$kbs[0]\n"; $output .= "".date( "m/d/Y", $filedate[$key])."\n"; $output .= "\n"; } } $output .= "\n"; $output .= "\n"; } else if (isset($id)) { $output = "\n"; $output .= "
"; $output .= "\n"; $output .= "
\n"; $idback = $id-1; $back=$imgid[$idback]; if ($id>1) {$output .= "prev |\n";} $output .= " index \n"; $idfor = $id+1; $forward = $imgid[$idfor]; if ($id<$imgcnt-1) {$output .= "| next \n";} $output .= "
\n"; $output .= "
"; $output .= "\n"; $output .= "
$files[$img] is $imageinfox[$img]x$imageinfoy[$img]"; $output .= " in $filesize[$img] bytes, created on ".date( "m/d/Y", $filedate[$img])."

"; $output .= "\n"; } echo $output . ""; closedir($filearray); ?>