blob: 8f3e8c273f32637ae4f37c68b9316c37b754fb58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
<?php
session_start();
include('logo.html');
include('menulist.html');
include('static-configuration');
?>
<div class='content'>
<h1> Contents of CCAN <?=$argv[1]?> </h1>
<p>
<table align="center" width="80%" border="0" cellpadding="3" cellspacing="1">
<?php
$d = dir($argv[1]);
$files = array();
while (false !== ($entry = $d->read())) {
if ($entry[0] != '.') {
array_push($files, $entry);
}
}
$d->close();
sort($files);
foreach ($files as $file) {
$size = round((filesize($argv[1]."/".$file) + 1023) / 1024);
?>
<tr>
<td><a href="<?=$argv[2]."/".$file?>"><?=$file?> (<?=$size?>K)</td>
</tr>
<?php
}
?>
</table>
</div>
</body></html>
|