bugfix quota values where not displayed properly
This commit is contained in:
parent
e9cfd81ba4
commit
3864f47b55
|
@ -9,7 +9,7 @@ if (!isset($mode)) { # when included from adm_login, mode is not set
|
||||||
?>
|
?>
|
||||||
<center>
|
<center>
|
||||||
|
|
||||||
<p><h3><center><?php __("Account"); ?> <span style="font-weight: bold;"><?php echo $c["login"]; ?></span></center></h3></p>
|
<p><h3><center><?php __("Account"); ?> <span style="font-weight: bold;"><?php echo $mem->user["login"]; ?></span></center></h3></p>
|
||||||
|
|
||||||
<div style="width: 550px">
|
<div style="width: 550px">
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ if (!isset($mode)) { # when included from adm_login, mode is not set
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$totalweb = $quota->get_size_web_sum_user($c["uid"]);
|
$totalweb = $quota->get_size_web_sum_user($mem->user["uid"]);
|
||||||
|
|
||||||
echo "<p>"._("Web Space:")." ";
|
echo "<p>"._("Web Space:")." ";
|
||||||
echo sprintf("%.1f", $totalweb / 1024)." "._("MB");
|
echo sprintf("%.1f", $totalweb / 1024)." "._("MB");
|
||||||
|
@ -38,7 +38,7 @@ if (!isset($mode)) { # when included from adm_login, mode is not set
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$domaines_user = $dom->enum_domains($c["uid"]);
|
$domaines_user = $dom->enum_domains($mem->user["uid"]);
|
||||||
$totalmail=0;
|
$totalmail=0;
|
||||||
foreach ($domaines_user as $domaine) {
|
foreach ($domaines_user as $domaine) {
|
||||||
$mstmp = $quota->get_size_mail_sum_domain($domaine);
|
$mstmp = $quota->get_size_mail_sum_domain($domaine);
|
||||||
|
@ -99,7 +99,7 @@ if (!isset($mode)) { # when included from adm_login, mode is not set
|
||||||
<!-- Les bases -->
|
<!-- Les bases -->
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$totaldb = $quota->get_size_db_sum_user($c["login"]);
|
$totaldb = $quota->get_size_db_sum_user($mem->user["login"]);
|
||||||
|
|
||||||
echo "<p>"._("Databases:")." ";
|
echo "<p>"._("Databases:")." ";
|
||||||
echo sprintf("%.1f", $totaldb/(1024*1024))." "._("MB");
|
echo sprintf("%.1f", $totaldb/(1024*1024))." "._("MB");
|
||||||
|
@ -116,7 +116,7 @@ if (!isset($mode)) { # when included from adm_login, mode is not set
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$db_sizes = $quota->get_size_db_details_user($c["login"]);
|
$db_sizes = $quota->get_size_db_details_user($mem->user["login"]);
|
||||||
foreach ($db_sizes as $d) {
|
foreach ($db_sizes as $d) {
|
||||||
echo "<tr><td>".$d["db"]."</td><td";
|
echo "<tr><td>".$d["db"]."</td><td";
|
||||||
if ($mode!=2) echo " style=\"text-align: right\"";
|
if ($mode!=2) echo " style=\"text-align: right\"";
|
||||||
|
@ -163,7 +163,7 @@ if (!isset($mode)) { # when included from adm_login, mode is not set
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$mailman_size = $quota->get_size_mailman_details_user($c["uid"]);
|
$mailman_size = $quota->get_size_mailman_details_user($mem->user["uid"]);
|
||||||
foreach ($mailman_size as $d) {
|
foreach ($mailman_size as $d) {
|
||||||
echo "<tr><td>".$d["list"]."</td><td";
|
echo "<tr><td>".$d["list"]."</td><td";
|
||||||
if ($mode!=2) echo " style=\"text-align: right\"";
|
if ($mode!=2) echo " style=\"text-align: right\"";
|
||||||
|
|
Loading…
Reference in New Issue