blob: 53801494fb8e2a744b761e59b6bfbf58ccb5d9ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php
$dateformat = "r";
$lengths["date"] = max($lengths["date"], strlen(date($dateformat, time())));
echo
mb_str_pad($fields["id"], $lengths["id"])." | "
.mb_str_pad($fields["filename"], $lengths["filename"])." | "
.mb_str_pad($fields["mimetype"], $lengths["mimetype"])." | "
.mb_str_pad($fields["date"], $lengths["date"])." | "
.mb_str_pad($fields["hash"], $lengths["hash"])." | "
.mb_str_pad($fields["filesize"], $lengths["filesize"])."\n";
foreach($items as $key => $item) {
echo
mb_str_pad($item["id"], $lengths["id"])." | "
.mb_str_pad($item["filename"], $lengths["filename"])." | "
.mb_str_pad($item["mimetype"], $lengths["mimetype"])." | "
.date($dateformat, $item["date"])." | "
.mb_str_pad($item["hash"], $lengths["hash"])." | "
.$item["filesize"]."\n";
}
?>
Total sum of your distinct uploads: <?php echo $total_size; ?>.
|