Skrypt:
<html>
<head>
<style>
body {
background-color: #ffffff;
font-family: sans-serif;
color: #000;
margin: 0px;
padding: 2em 0px 2em 0px;
}
a {
text-decoration: none;
color: #000099;
background-color: #ffffff;
font-weight: normal;
}
a:hover {
background-color: #99CCFF;
background-color: #ffffff;
font-weight: bolder
}
h1 {
text-align: center;
padding-left: 8%;
margin-top: 1em;
background-color: #ddeeff;
font-size: x-large;
border-top: 1px solid #000000;
border-bottom: 1px solid #000000;
clear: both;
}
h2 {
padding-left: 8%;
margin-top: 1em;
background-color: #ddeeff;
font-size: large;
border-top: 1px solid #000000;
border-bottom: 1px solid #000000;
clear: both;
}
h3 {
padding-left: 10%;
margin-top: 1em;
background-color: #ddeeff;
font-size: medium;
border-top: 1px solid #000000;
border-bottom: 1px solid #000000;
clear: both;
}
h4 {
padding: 0px;
margin: 10px 5% 2px 5%;
font-weight: bold;
color: #000099;
}
table {
margin: 2px 5% 2px 5%;
border: none;
}
table tr,table td,table th {
border: none;
}
ul {
margin: 2px 5% 2px 5%;
}
pre {
margin: 2px 5% 2px 5%;
}
li {
padding-bottom: 0em;
}
textarea {
overflow: auto;
}
</style>
</head>
<body>
<?php
/* CFG */
$home_dir = "./";
/* jeb** hakerow */
/* By mi patch dir sie nie rozjfalil */
if ($home_dir) $home_dir = realpath($home_dir)."/"; else if (!$home_dir && $os == 2)
$home_dir = dirname($SCRIPT_FILENAME)."/";
/* potem dla katalogow */
if ($path == "/" || $path == "./" || $path == "\\" || $path == ".\\")
unset($path);
/* SCRIPT */
$open = opendir($home_dir.$path);
for($i=0;($file = readdir($open)) != false;$i++)
if (is_file($home_dir.$path.$file))
$files[$i] = $file;
closedir($open);
sort($files,SORT_REGULAR);
echo "<h1>Files:</h1>";
echo "
<table width=\"60%\" align=\"left\" valign=\"top\">
<tr>
<td width=\"35%\">File Name:</td>
<td width=\"10%\">-</td>
<td width=\"20%\">File Size:</td>
<td width=\"10%\">-</td>
<td width=\"25%\">Modified:</td>
</tr>
</table>
<br>
<br>
";
echo "<table width=\"60%\" align=\"left\" valign=\"top\">";
if ($files) foreach($files as $file)
{
print "<tr><td width=\"35%\"><li><a href=$path$file>$path$file</a></li></td><td width=\"10%\">-</td><td width=\"20%\">"; $filesize = filesize($home_dir.$path.$file); if ($filesize >= 1048576
) print number_format($filesize/1024/1024, 2, ',', '.')." MB"; print "</td><td width=\"10%\">-</td><td width=\"25%\">"; }
?>
I jak zrobić by sortowało pliki po ich dacie modyfikacji

:x
Skrypt troche chaotyczny ale nic wiecej nie wymyślę, styl wzięty z phpmyadmin, by się nikt nie doczepił ;o