return strnatcmp($a, $b); } } $files = array(); $totalsize = 0; clearstatcache(); if ($dh = opendir('./')) { while (($file = readdir($dh)) !== false) { $files[$file] = array(@filesize($leadon . $file), @filemtime($leadon . $file)); } closedir($dh); } //uksort($files,"_c_sort"); foreach ($files as $file => $props) { foreach ($ary as $name => $regexp) { if (preg_match($regexp, $file, $opts)) { echo "<div onmouseover='hoverThis(this)' onmouseout='unhoverThis(this)'><a href='{$file}'>" . str_replace("%s", isset($opts[1]) ? $opts[1] : '', $name) . (isset($opts[3]) ? " ({$opts['3']})" : '') . "</a> <samp>" . properSize($props[0], 1) . "</samp> <kbd>" . date("r", $props[1]) . "</kbd></div>"; $totalsize += $props[0]; break; } } } if (!$totalsize) { echo "<div style='text-align:center'>Currently no file is available.</div>"; } exec("df|grep data", $df); $df = preg_split("/\\s+/", $df[0]); echo "<div style='border-top:1px solid'> <samp>Total Size: " . properSize($totalsize, 2) . "</samp></div>"; if (file_exists('./footer.msg')) { include './footer.msg'; }
echo $thumb2; ?> ><img src="<?php echo $myfilespath; ?> /<?php echo $icon; ?> " alt="<?php echo $files[$i]; ?> " /><strong><?php echo $filename; ?> </strong> <em><?php echo properSize(filesize($leadon . $files[$i]), 2); ?> </em> <?php echo date("M d Y h:i:s A", filemtime($leadon . $files[$i])); echo $thumb; ?> </a></div> <? if($class=='b') $class='w'; else $class = 'b'; } ?></div> <? if($allowuploads) { $phpallowuploads = (bool) ini_get('file_uploads'); $phpmaxsize = ini_get('upload_max_filesize');