Indentation de fichiers sur les quotas
This commit is contained in:
parent
01e220f6ce
commit
b496a01f04
|
@ -31,7 +31,7 @@ reset($qlist);
|
|||
$col=1;
|
||||
|
||||
|
||||
if (!is_array($q)) {
|
||||
if (!is_array($q) || empty($q) ) {
|
||||
// "No quotas for this account, or quotas currently unavailable
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -36,10 +36,14 @@ include_once("head.php");
|
|||
<br />
|
||||
<?php
|
||||
$q=$quota->getquota();
|
||||
if (!is_array($q)) {
|
||||
if (!is_array($q) || empty($q) ) {
|
||||
echo "<p class=\"error\">"._("No quotas for this account, or quotas currently unavailable!")."</p>";
|
||||
} else {
|
||||
echo "<table cellspacing=\"0\" cellpadding=\"4\"><tr><th>"._("Quota")."</th><th>"._("Used")."</th><th>"._("Total")."</th></tr>";
|
||||
include_once("foot.php");
|
||||
die();
|
||||
}
|
||||
|
||||
echo "<table cellspacing=\"0\" cellpadding=\"4\" class='tlist'>";
|
||||
echo "<tr><th>"._("Quota")."</th><th>"._("Used")."</th><th>"._("Total")."</th></tr>";
|
||||
$qlist=$quota->qlist();
|
||||
reset($qlist);
|
||||
$col=1;
|
||||
|
@ -53,16 +57,17 @@ if (!is_array($q)) {
|
|||
if ($q[$key]["u"] >= $q[$key]["t"]) echo "</font>";
|
||||
|
||||
if ($key == 'bw_web') {
|
||||
echo " </td><td align=\"center\">". format_size($q[$key]["u"]) ." </td><td align=\"center\">". format_size($q[$key]["t"]) ." </td>";
|
||||
echo " </td><td>". format_size($q[$key]["u"]) ." </td><td>". format_size($q[$key]["t"]) ." </td>";
|
||||
} elseif ($key == 'web') {
|
||||
echo " </td><td align=\"center\">". format_size($q[$key]["u"] * 1024) . " </td><td align=\"center\">". format_size($q[$key]["t"] * 1024) ." </td>";
|
||||
echo " </td><td>". format_size($q[$key]["u"] * 1024) . " </td><td>". format_size($q[$key]["t"] * 1024) ." </td>";
|
||||
} else {
|
||||
echo " </td><td align=\"center\">".$q[$key]["u"]." </td><td align=\"center\">".$q[$key]["t"]." </td>";
|
||||
echo " </td><td>".$q[$key]["u"]." </td><td>".$q[$key]["t"]." </td>";
|
||||
}
|
||||
|
||||
echo "</tr>";
|
||||
}
|
||||
echo "</table>";
|
||||
}
|
||||
|
||||
include_once("foot.php");
|
||||
|
||||
?>
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
Loading…
Reference in New Issue