Navigation Menu

Radio Documentation
Jukebox Documentation
Tony Miller's (FMillera) Website
Telephone Documention
For Consumers
For Businesses
Pinball Information
My Interests
Free Downloads
This Site
FREE Online Backup

Directory Contents:

1023)){$size=round($size/1024, 1)." KB";} elseif(($size<1073741824)&&($size>1048575)){$size=round($size/1048576, 1)." MB";} else{$size=round($size/1073741824, 1)." GB";} return $size; } // Checks to see if veiwing hidden files is enabled $hide="."; // Opens directory $myDirectory=opendir("."); // Gets each entry while($entryName=readdir($myDirectory)) { $dirArray[]=$entryName; } closedir($myDirectory);// Closes directory $indexCount=count($dirArray);// Counts elements in array sort($dirArray);// Sorts files for($index=0; $index < $indexCount; $index++) {// Loops through the array of files // Decides if hidden files should be displayed, based on query above. if(substr("$dirArray[$index]", 0, 1)!=$hide) { // Resets Variables $favicon="; $class="file"; // Gets File Names $name=$dirArray[$index]; $namehref=$dirArray[$index]; // Gets Date Modified $modtime=date("M j Y g:i A", filemtime($dirArray[$index])); $timekey=date("YmdHis", filemtime($dirArray[$index])); $DisplayIt=false; // Separates directories, and performs operations on those directories if(is_dir($dirArray[$index])) { $extn="<Directory>"; $size="<Directory>"; $sizekey="0"; $class="dir"; // Gets favicon.ico, and displays it, only if it exists. if(file_exists("$namehref/favicon.ico")) { $favicon=" style='background-image:url($namehref/favicon.ico);'"; $extn="<Website>"; } // Cleans up . and .. directories if($name=="."){$name=". (Current Directory)"; $extn="<System Dir>"; $favicon=" style='background-image:url($namehref/.favicon.ico);'";} if($name==".."){$name=".. (Parent Directory)"; $extn="<System Dir>";} } // File-only operations else{ // Gets file extension $extn=pathinfo($dirArray[$index], PATHINFO_EXTENSION); // Prettifies file type switch ($extn){ case "png": $extn="PNG Image"; $DisplayIt=true;break; case "jpg": $extn="JPEG Image"; $DisplayIt=true; break; case "jpeg": $extn="JPEG Image"; $DisplayIt=true;break; case "svg": $extn="SVG Image"; $DisplayIt=true;break; case "gif": $extn="GIF Image"; $DisplayIt=true;break; case "ico": $extn="Windows Icon"; break; case "txt": $extn="Text File"; break; case "log": $extn="Log File"; break; case "htm": $extn="HTML File"; break; case "html": $extn="HTML File"; break; case "xhtml": $extn="HTML File"; break; case "shtml": $extn="HTML File"; break; case "php": $extn="PHP Script"; break; case "js": $extn="Javascript File"; break; case "css": $extn="Stylesheet"; break; case "pdf": $extn="PDF Document"; $DisplayIt=true;break; case "xls": $extn="Spreadsheet"; $DisplayIt=true;break; case "xlsx": $extn="Spreadsheet"; $DisplayIt=true;break; case "doc": $extn="MS Word Document"; $DisplayIt=true;break; case "docx": $extn="MS Word Document";$DisplayIt=true; break; case "zip": $extn="ZIP Archive"; $DisplayIt=true;break; case "htaccess": $extn="Apache Config File"; break; case "exe": $extn="Windows Executable"; break; default: if($extn!="){$extn=strtoupper($extn)." File";} else{$extn="Unknown";} break; } // Gets and cleans up file size $size=pretty_filesize($dirArray[$index]); $sizekey=filesize($dirArray[$index]); } // Output if($DisplayIt){ echo(" "); } } } ?>
Filename Type Size Date Modified
$name $extn $size $modtime