get_size_web_sum_user($c["uid"]);
echo "
"._("Web Space:")." ";
echo sprintf("%.1f", $totalweb / 1024)." "._("MB");
echo "
";
?>
|
|
|
enum_domains($c["uid"]);
$totalmail=0;
foreach ($domaines_user as $domaine) {
$mstmp = $quota->get_size_mail_sum_domain($domaine);
$totalmail+=$mstmp;
}
echo ""._("Mail boxes:")." ";
echo sprintf("%.1f", $totalmail / 1024)." "._("MB");
echo "
";
foreach ($domaines_user as $domaine) {
$alias_sizes = $quota->get_size_mail_details_domain($domaine);
$domsize = 0;
foreach ($alias_sizes as $e) {
$domsize += $e['size'];
echo "{$domaine} | ";
echo "".str_replace("_","@",$e["alias"])." | ";
echo "";
$ms=$e["size"];
if ($totalmail) {
$pc=intval(100*$ms/$totalmail);
} else {
$pc=0;
}
if ($mode==0) {
echo sprintf("%.1f", $ms / 1024)." "._("MB");
} elseif ($mode==1) {
echo sprintf("%.1f", $pc)." %";
} else {
echo "";
}
echo " |
";
}
if ($totalmail) {
$tpc = intval(100 * $domsize / $totalmail);
} else {
$tpc = 0;
}
if (count($alias_sizes) > 0) {
echo "". _('Total'). " {$domaine} | | ";
echo "";
if ($mode==0) {
echo sprintf("%.1f", $domsize / 1024)." "._("MB");
} elseif ($mode==1) {
echo sprintf("%.1f", $tpc)." %";
} else {
echo "";
}
echo " |
";
}
}
?>
get_size_db_sum_user($c["login"]);
echo "
"._("Databases:")." ";
echo sprintf("%.1f", $totaldb/(1024*1024))." "._("MB");
echo "
";
?>
|
|
get_size_db_details_user($c["login"]);
foreach ($db_sizes as $d) {
echo "".$d["db"]." | ";
$ds=$d["size"];
if ($totaldb) {
$pc=intval(100*$ds/$totaldb);
} else {
$pc=0;
}
if (isset($mode) && $mode==0) {
echo sprintf("%.1f", $ds / 1024/1024)." "._("MB");
} elseif (isset($mode) &&$mode==1) {
echo sprintf("%.1f", $pc)." %";
} else {
echo "";
}
echo " |
";
}
?>
get_size_mailman_sum_user($c["uid"]);
if ($totallist) {
?>
"._("Mailman lists:")." ";
echo sprintf("%.1f", $totallist/1024)." "._("MB");
echo "";
?>
|
|
get_size_mailman_details_user($c["uid"]);
foreach ($mailman_size as $d) {
echo "".$d["list"]." | ";
$ds=$d["size"];
if ($totallist) {
$pc=intval(100*$ds/$totallist);
} else {
$pc=0;
}
if ($mode==0) {
echo sprintf("%.1f", $ds / 1024)." "._("MB");
} elseif ($mode==1) {
echo sprintf("%.1f", $pc)." %";
} else {
echo "";
}
echo " |
";
}
?>