<?php
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($query 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("r", $item["date"])." | "
		.$item["hash"]." | "
		.$item["filesize"]."\n";
}
?>

Total sum of your distinct uploads: <?php echo $total_size; ?>.

<?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($query 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"])." | "
		.$item["hash"]." | "
		.$item["filesize"]."\n";
}
?>

Total sum of your distinct uploads: <?php echo $total_size; ?>.

Fix alignment of date column in plain text view
Fix alignment of date column in plain text view

This got broken by 2a6a1c63cb21015009fe4fd13f62cdac64e1fe36 and
05a4d686b578794c180ddfaf4945a9d7443f330e.

Signed-off-by: Florian Pritz <753f544d2d01592750fb4bd29251b78abcfc8ecd@xinu.at>
