enabled) { __("This page is restricted to authorized staff"); exit(); } include_once ("head.php"); ?>
Cette page résume les informations d`hébergement des comptes AlternC
Les tailles sont exprimées en
Global
Détail:
En pourcentage
En graphique
En Mo
En graphique
En Mo
En pourcentage
Afficher les domaines
Cacher les domaines
Tous les comptes
Nombre | Espace | |
---|---|---|
Domaines | Mo | |
Mails | Mo | |
Listes | Mo | |
Bases | Mo | |
Total | Mo |
Compte | Nombre de | Espace | ||||||
---|---|---|---|---|---|---|---|---|
Dom | Mails | Listes | Web | Listes | Bases | Total | ||
";
// On affiche le compte et ses domaines :
echo "".$c["login"]." \n"; $s=mysql_query("SELECT * FROM domaines WHERE compte='".$c["uid"]."';"); $dc=0; // Domain Count $ms=0; // Mail Space $mls=0; while ($d=mysql_fetch_array($s)) { if ($sd) echo " - ".$d["domaine"]." \n"; $dc++; list($mstmp)=@mysql_fetch_array(mysql_query("SELECT SUM(size) FROM size_mail WHERE alias LIKE '%\_".$d["domaine"]."';")); $ms+=$mstmp; list($mlstmp)=@mysql_fetch_array(mysql_query("SELECT SUM(size) FROM size_mailman WHERE list LIKE '%@".$d["domaine"]."';")); $mls+=$mlstmp; } // Mail Count list($mc)=@mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mail_domain WHERE type=0 AND uid='".$c["uid"]."';")); // Mailman List Count list($mlc)=@mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mailman WHERE uid='".$c["uid"]."';")); echo " | $dc | $mc | $mlc | "; // Espace WEB list($ws)=@mysql_fetch_array(mysql_query("SELECT size FROM size_web WHERE uid='".$c["uid"]."';")); if ($totalweb) $pc=intval(100*$ws/$totalweb); else $pc=0; if ($mode==0) { echo sprintf("%.1f", $ws / 1024)." Mo"; } elseif ($mode==1) { echo sprintf("%.1f",$pc)." %"; } else { echo ""; } echo " | "; // Espace Mail : if ($totalmail) $pc=intval(100*$ms/$totalmail); else $pc=0; if ($mode==0) { echo sprintf("%.1f", $ms / 1024)." Mo"; } elseif ($mode==1) { echo sprintf("%.1f",$pc)." %"; } else { echo ""; } echo " | "; // Espace Mailman : if ($totallist) $pc=intval(100*$mls/$totallist); else $pc=0; if ($mode==0) { echo sprintf("%.1f", $mls / 1024)." Mo"; } elseif ($mode==1) { echo sprintf("%.1f",$pc)." %"; } else { echo ""; } echo " | "; // Espace DB : list($ds)=@mysql_fetch_array(mysql_query("SELECT SUM(size) FROM size_db WHERE db='".$c["login"]."' OR db LIKE '".$c["login"]."\_%';")); if ($totaldb) $pc=intval(100*$ds/$totaldb); else $pc=0; if ($mode==0) { echo sprintf("%.1f", $ds / 1024/1024)." Mo"; } elseif ($mode==1) { echo sprintf("%.1f",$pc)." %"; } else { echo ""; } echo " | "; $ts=$ds/1024+$ws+$ms+$mls; if ($mode==0) { echo sprintf("%.1f", $ts/1024)." Mo"; } elseif ($mode==1) { echo sprintf("%.1f",(100*$ts/$totaltotal))." %"; } else { if ($totaltotal) { $pc=intval(100*$ts/$totaltotal); } else { $pc=0; } echo ""; } echo " | "; echo "
Compte
Espace WEB: "; echo sprintf("%.1f", $totalweb / 1024)." Mo"; echo ""; ?>Domaine | Espace | ".$d["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)." Mo"; } elseif ($mode==1) { echo sprintf("%.1f", $pc)." %"; } else { echo ""; } echo " | "; } } ?>
---|
DB | Espace | ".$d["db"]." | "; $ds=$d["size"]; if ($totaldb) $pc=intval(100*$ds/$totaldb); else $pc=0; if ($mode==0) { echo sprintf("%.1f", $ds / 1024/1024)." Mo"; } elseif ($mode==1) { echo sprintf("%.1f", $pc)." %"; } else { echo ""; } echo " | "; } ?>
---|
Liste | Espace | ".$d["list"]." | "; $ds=$d["size"]; if ($totallist) $pc=intval(100*$ds/$totallist); else $pc=0; if ($mode==0) { echo sprintf("%.1f", $ds / 1024)." Mo"; } elseif ($mode==1) { echo sprintf("%.1f", $pc)." %"; } else { echo ""; } echo " | "; } ?>
---|