";
print "";
print " | ";
}
print "";
# Display the File Name.
#-----------------------
if ($display_filename == 1){
print "$display_filename_tag\n";
print "\n";
print "$fileattr[1]$display_filename_tag_end \n"; } # Display File Description. #-------------------------- if ($display_description == 1){ print "$display_description_tag $fileattr[7] $display_description_tag_end \n"; } # Display the "More Info" link. #------------------------------ if ($display_moreinfo == 1){ print "$display_moreinfo_tagMore Info$display_moreinfo_tag_end \n"; } # Display the File Type. #----------------------- if ($display_filetype == 1){ print "$display_filetype_tag$xtrainfo$display_filetype_tag_end\n"; } # Display the File Size. #----------------------- if ($display_filesize == 1){ print " | $display_filesize_tag Size $size$display_filesize_tag_end | \n";
}
# Display Accessed.
#------------------
if ($display_accessed == 1){
print "$display_accessed_tag Accesses $fileattr[6] $display_accessed_tag_end | \n";
}
# Display File Date.
#-------------------
$file_time = date("m-d-y", $fileattr[9]);
if ($display_filedate == 1){
print "$display_filedate_tag File Dated $file_time$display_filedate_tag_end | \n";
}
print "
";
if ($flag == 0){
$previouspage = $currentpage-1;
if ($previouspage < 1){
$previouspage = 1;
}
$nextpage = $currentpage+1;
if ($nextpage > $totalpages){
$nextpage = $totalpages;
}
print " $display_pagination_tag Back | "; $z = 1; while ($z <= $totalpages){ if ($z == $currentpage){ $size = $display_selected_size; }ELSE{ $size = $display_pagination_size; } print "$z | "; $z++; } print "Next"; print "$display_pagination_tag_end |
";
}
#.Fix and format Byte Length.
#----------------------------
if ($totalbytes < pow(2,10)){
$totalsize = "$totalbytes B";
}
if ($totalbytes >= pow(2,10) && $totalbytes < pow(2,20)) {
$totalsize = round($totalbytes / pow(2,10), 2)." KB";
}
if ($totalbytes >= pow(2,20) && $totalbytes < pow(2,30)) {
$totalsize = round($totalbytes / pow(2,20), 2)." MB";
}
if ($totalbytes > pow(2,30)) {
$totalsize = round($totalbytes / pow(2,30), 2)." GB";
}
?>
|