BODY { margin: 1em; font-family: Arial; line-height: 1.1; background: #2f2f5f; color: #BBBBBB; } A:link { color: #EEEEEE;} /* unvisited link */ A:visited { color: #EEEEEE;} /* visited links */ A:active { color: #EEEEEE; background: #999999;} /* active links */ A:hover { color: #EEEEEE; background: #555588;} TD { background: #555577 } INPUT.SUBMIT { background: #BBBBBB; } "; /* ** CSS (Style Sheet) Definition Finished */ /* ** Display Disk Space Usagae and Free */ $scriptStats = "0"; // 1 for Yes - 0 for No /* *********************** DO NOT MODIFY BELOW THIS LINE *********************** */ 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) { $content = ""; $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 = ""; $context = ""; //while (false!=($file = readdir($handle))) { while ($file = readdir($handle)) { if(($file != "index.txt") && ($file != "index.php") && ($file != ".htaccess") && ($file != ".") && ($file != ".index.php.swp")) { $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); } } ?> "); } ?>