26 require_once(
"../class/config.php");
27 if (!defined(
"QUOTASONE"))
return;
37 if (isset($usr) && is_int($usr)) {
39 $login=$admin->get_login_by_uid($id_usr);
41 $id_usr =
$mem->user[
"uid"];
47 <h3 style=
"text-align:center;"><?php printf(_(
"<b>%s</b> account"),
$login); ?></h3>
49 <div style=
"width: 600px">
58 echo
"<p>"._(
"quota_web").
" ";
59 echo sprintf(
"%.1f",
$t[
'size']).
" ".
$t[
'unit'];
66 <p style=
"text-align: left; font-size:16px;"><b><?php
__(
"Emails"); ?></b></p>
68 <table
class=
"tedit" width=
"100%">
71 <th><?php
__(
"Domains"); ?></th>
72 <th><?php
__(
"Emails"); ?></th>
73 <th><?php
__(
"Space"); ?></th>
82 $mstmp = $quota->get_size_mail_sum_domain($domaine);
89 $alias_sizes = $quota->get_size_mail_details_domain($domaine);
91 foreach ($alias_sizes as $e) {
93 $domsize += $e[
'size'];
94 echo
"<tr><td>{$domaine}</td>";
95 echo
"<td>".str_replace(
"_",
"@",$e[
"alias"]).
"</td>";
96 echo
"<td";
if (
$mode!=2) echo
" style=\"text-align: right\""; echo
">";
97 $ms = $quota->get_size_unit($e[
'size']);
104 echo sprintf(
"%.1f", $ms[
'size']).
" ".$ms[
'unit'];
106 echo sprintf(
"%.1f", $pc).
" %";
108 $quota->quota_displaybar($pc);
114 $d = $quota->get_size_unit($domsize);
121 if (count($alias_sizes) > 0) {
122 echo
"<tr><td style=\"text-align: right\"><i><b>". _(
'Total').
" {$domaine}</b></i></td><td></td>";
124 if (
$mode!=2) echo
" style=\"text-align: right\"";
127 echo sprintf(
"%.1f",
$d[
'size']).
" ".
$d[
'unit'];
129 echo sprintf(
"%.1f", $tpc).
" %";
131 $quota->quota_displaybar($tpc);
133 echo
"</b></i></td></tr>";
148 echo
"<p style=\"text-align: left; font-size:16px;\"><b>"._(
"Databases:").
" ";
152 <table
class=
"tedit" width=
"100%">
155 <th width=
'50%'><?php
__(
"DB"); ?></th>
156 <th width=
'50%'><?php
__(
"Space"); ?></th>
164 echo
"<tr><td>".$d[
"db"].
"</td><td";
165 if (
$mode!=2) echo
" style=\"text-align: right\"";
167 $ds = $quota->get_size_unit(
$d[
"size"]);
174 echo sprintf(
"%.1f", $ds[
'size']).
" ".$ds[
'unit'];
176 echo sprintf(
"%.1f", $pc).
" %";
178 $quota->quota_displaybar($pc, 0);
184 echo
"<tr><td style=\"text-align: right\"><i><b>". _(
'Total').
" " . _(
"Databases:").
"</b></i></td>";
185 echo
"<td style=\"text-align: right\"><i><b>";
186 echo sprintf(
"%.1f",
$t[
'size']).
" ".
$t[
'unit'];
187 echo
"</b></i></td></tr>";
193 <!-- Mailing lists -->
201 echo
"<p style=\"text-align: left; font-size:16px;\"><b>"._(
"Mailman lists:").
" ";
205 <table
class=
"tedit" width=
'100%'>
208 <th><?php
__(
"Lists"); ?></th>
209 <th><?php
__(
"Space"); ?></th>
215 $mailman_size = $quota->get_size_mailman_details_user($id_usr);
216 foreach ($mailman_size as
$d) {
217 echo
"<tr><td>".$d[
"list"].
"</td><td";
218 if (
$mode!=2) echo
" style=\"text-align: right\"";
220 $ds = $quota->get_size_unit(
$d[
"size"] * 1024);
227 echo sprintf(
"%.1f", $ds[
'size']).
" ".$ds[
'unit'];
229 echo sprintf(
"%.1f", $pc).
" %";
231 $quota->quota_displaybar($pc);
237 echo
"<tr><td style=\"text-align: right\"><i><b>". _(
'Total').
" " . _(
"Mailman lists:").
"</b></i></td>";
239 if (
$mode!=2) echo
" style=\"text-align: right\"";
241 echo sprintf(
"%.1f",
$t[
'size']).
" ".
$t[
'unit'];
242 echo
"</b></i></td></tr>";
if(empty($site_name)) elseif($piwik->site_add( $site_name, $site_urls))
foreach($db_sizes as $d) if(count($db_sizes) > 0 && $mode==0) $totallist
foreach($domaines_user as $domaine) $t
foreach($domaines_user as $domaine) $totaldb