26 require_once(
"../class/config.php");
27 include_once(
"head.php");
30 <h3><?php
__(
"Account's quotas"); ?> : </h3>
34 $q=$quota->getquota();
35 if (!is_array(
$q) || empty(
$q) ) {
36 $msg->raise(
"ALERT",
"quota", _(
"No quotas for this account, or quotas currently unavailable!"));
37 include_once(
"main.php");
41 echo
"<table cellspacing=\"0\" cellpadding=\"4\" class='tlist'>";
42 echo
"<tr><th>"._(
"Quota").
"</th><th>"._(
"Used").
"</th><th>"._(
"Total").
"</th><th>"._(
"Size on disk").
"</th></tr>";
48 echo
"<tr class=\"lst\">";
50 if (
$q[
$key][
"u"] >=
$q[
$key][
"t"]) echo
"<font class=\"over\">";
54 if ((
$key ==
'web')||(isset(
$q[
$key][
'type'])&&(
$q[
$key][
'type']==
'size'))) {
55 echo
" </td><td>".
format_size(
$q[
$key][
"u"] * 1024) .
" </td><td> </td>";
57 echo
" </td><td>".$q[
$key][
"u"].
" </td><td>".
$q[
$key][
"t"].
" </td>";
60 if (isset(
$q[
$key][
's'])) {
64 echo
"<td>- </td>";
68 echo
"<tr><td colspan='2'></td><td align='right'><b>"._(
"Total").
": </b></td><td><b>".
format_size(
$totalsize * 1024).
" / ".
format_size(
$q[
'web'][
"t"] * 1024).
"</b></td></tr>";
71 include_once(
"foot.php");
format_size($size, $html=0)
if(empty($_POST['key'])||empty($_POST['val'])) $key