user["login"] if (isset($usr) && is_int($usr)) { $id_usr=$usr; $login=$admin->get_login_by_uid($id_usr); } else { $id_usr = $mem->user["uid"]; $login = $mem->user["login"]; } ?>

%s account"),$login); ?>

getquota('web'); if ( $totalweb['u'] > 0 ) { $t=$quota->get_size_unit($totalweb['u'] * 1024); echo "

"._("quota_web")." "; // use quota_web because it's the magically translated string echo sprintf("%.1f", $t['size'])." ".$t['unit']; echo "

"; } ?>

enum_domains($id_usr); $totalmail=0; foreach ($domaines_user as $domaine) { $mstmp = $quota->get_size_mail_sum_domain($domaine); $totalmail+=$mstmp; } $t=$quota->get_size_unit($totalmail); foreach ($domaines_user as $domaine) { $alias_sizes = $quota->get_size_mail_details_domain($domaine); $domsize = 0; foreach ($alias_sizes as $e) { if($e['size'] > 0) { $domsize += $e['size']; echo ""; echo ""; echo ""; $ms = $quota->get_size_unit($e['size']); if ($totalmail) { $pc=intval(100*($e['size']/$totalmail)); } else { $pc=0; } if ($mode==0) { echo sprintf("%.1f", $ms['size'])." ".$ms['unit']; } elseif ($mode==1) { echo sprintf("%.1f", $pc)." %"; } else { $quota->quota_displaybar($pc); } echo ""; } } $d = $quota->get_size_unit($domsize); if ($totalmail) { $tpc = intval(100 * $domsize / $totalmail); } else { $tpc = 0; } if (count($alias_sizes) > 0) { echo ""; echo ""; if ($mode==0) { echo sprintf("%.1f", $d['size'])." ".$d['unit']; } elseif ($mode==1) { echo sprintf("%.1f", $tpc)." %"; } else { $quota->quota_displaybar($tpc); } echo ""; } } ?>
{$domaine}".str_replace("_","@",$e["alias"])."
". _('Total'). " {$domaine}

 

get_size_db_sum_user($login); $t = $quota->get_size_unit($totaldb); echo "

"._("Databases:")." "; echo "

"; ?> get_size_db_details_user($login); foreach ($db_sizes as $d) { echo ""; $ds = $quota->get_size_unit($d["size"]); if ($totaldb) { $pc=intval(100*$d['size']/$totaldb); } else { $pc=0; } if (isset($mode) && $mode==0) { echo sprintf("%.1f", $ds['size'])." ".$ds['unit']; } elseif (isset($mode) &&$mode==1) { echo sprintf("%.1f", $pc)." %"; } else { $quota->quota_displaybar($pc, 0); } echo ""; } if (count($db_sizes) > 0 && $mode==0) { echo ""; echo ""; } ?>
".$d["db"]."
". _('Total'). " " . _("Databases:").""; echo sprintf("%.1f", $t['size'])." ".$t['unit']; echo "
get_size_mailman_sum_user($id_usr); if ($totallist) { // $totalweb is in KB, so we call get_size_unit() with it in Bytes $t=$quota->get_size_unit($totallist * 1024); echo "

"._("Mailman lists:")." "; echo "

"; ?> get_size_mailman_details_user($id_usr); foreach ($mailman_size as $d) { echo ""; $ds = $quota->get_size_unit($d["size"] * 1024); if ($totallist) { $pc=intval(100*$d['size']/$totallist); } else { $pc=0; } if ($mode==0) { echo sprintf("%.1f", $ds['size'])." ".$ds['unit']; } elseif ($mode==1) { echo sprintf("%.1f", $pc)." %"; } else { $quota->quota_displaybar($pc); } echo ""; } if (count($db_sizes) > 0 && $mode==0) { echo ""; echo ""; echo sprintf("%.1f", $t['size'])." ".$t['unit']; echo ""; } ?>
".$d["list"]."
". _('Total'). " " . _("Mailman lists:")."