Commit 40028613 authored by mlutfy's avatar mlutfy
Browse files

better formatting of disk quotas info

parent a248eee9
......@@ -51,8 +51,10 @@ if (!is_array($q)) {
echo _($val);
if ($q[$key]["u"] >= $q[$key]["t"]) echo "</font>";
if ($val == 'quota_bw_web') {
if ($key == 'bw_web') {
echo "&nbsp;</td><td align=\"center\">". format_size($q[$key]["u"]) ."&nbsp;</td><td align=\"center\">". format_size($q[$key]["t"]) ."&nbsp;</td>";
} elseif ($key == 'web') {
echo "&nbsp;</td><td align=\"center\">". format_size($q[$key]["u"] * 1024) . "&nbsp;</td><td align=\"center\">". format_size($q[$key]["t"]) ."&nbsp;</td>";
} else {
echo "&nbsp;</td><td align=\"center\">".$q[$key]["u"]."&nbsp;</td><td align=\"center\">".$q[$key]["t"]."&nbsp;</td>";
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment