BODY { margin: 1em; font-family: Arial; line-height: 1.1; background: #333333; color: #999999; } A:link { color: #cccccc;} /* unvisited link */ A:visited { color: #cccccc;} /* visited links */ A:active { color: #555555; background: #999999;} /* active links */ A:hover { color: #ffff00; background: #555555;} TD { background: #555555 } INPUT.SUBMIT { background: #999999; } "; $scriptStats = "0"; // 1 for Yes - 0 for No function dirHeader() { $content = ""; return $content; } function dirTable() { $content = ""; return $content; } function dirFooter() { $content = "
TypeNameSizeModified
"; return $content; } function fType($file) { $varFileType = filetype($file); if($varFileType != "dir") { $curdir = getcwd(); $pInfo = pathinfo("$curdir/$file"); $varFileType = $pInfo["extension"]; } return $varFileType; } function fileView($file) { $varType = strtolower(fType($file)); $varJSSettings = "width=300,height=300,resizable=1,scrollbars=1,menubar=0,status=0,titlebar=0,toolbar=0,hotkeys=0,locationbar=0"; $txtArray[] = "txt"; $txtArray[] = "nfo"; $txtArray[] = "diz"; $txtArray[] = "now"; $txtArray[] = "bmp"; $txtArray[] = "jpg"; $txtArray[] = "gif"; $txtArray[] = "doc"; $txtArray[] = "1st"; $txtArray[] = "now"; $txtArray[] = "me"; if(in_array($varType, $txtArray)) { $content = " - (view)"; } return $content; } function display_size($file_size){ if($file_size >= 1073741824) { $file_size = round($file_size / 1073741824 * 100) / 100 . "g"; } elseif($file_size >= 1048576) { $file_size = round($file_size / 1048576 * 100) / 100 . "m"; } elseif($file_size >= 1024) { $file_size = round($file_size / 1024 * 100) / 100 . "k"; } else { $file_size = $file_size . "b"; } return $file_size; } function dirGather() { $handle=opendir("."); $content = ""; //while (false!=($file = readdir($handle))) { while ($file = readdir($handle)) { if(($file != "index.txt") && ($file != "index.php")) { $filetype = fType($file); if($filetype == "dir") { $dirtext[] = "$file"; } else { $context[] = "$file"; } } } if($dirtext) { sort($dirtext); for($i=0; $i$file $viewfile"; $content .= "$filesize"; $content .= "$changeddate"; } } if($context) { sort($context); for($i=0; $i$file $viewfile"; $content .= "$filesize"; $content .= "$changeddate"; } } return $content; } function diskStats($scriptStats) { if($scriptStats) { // $diskTotal = display_size(disk_total_space("/")); $diskFree = display_size(diskfreespace("/")); $content = ""; $content .= ""; // $content .= ""; $content .= "
Free Disk Space:$diskFree
Total Disk Space:$diskFree
"; print($content); } } ?> "); } ?> Provided by: Anarchy Artz                 Written by: eeos                 Borrowed from: somebodyelse"); ?>