<?php __(" /> 
getquota(); $qlist=$quota->qlist(); reset($qlist); $col=1; if (!is_array($q) || empty($q) ) { // "No quotas for this account, or quotas currently unavailable return; } $first=true; while (list($key,$val)=each($qlist)) { $col=3-$col; // FIXME: rewrite it if (($key == 'bw_web' || $key == 'web') && (isset($q[$key]["t"]) && $q[$key]["t"] > 0)) { /* // Quite useless, so i commented it out if ($first) { echo '
' . _("Quotas") . '
'; $first=false; } */ if ($key == 'web') { $q[$key]["u"] = $q[$key]["u"] * 1024; $q[$key]["t"] = $q[$key]["t"] * 1024; } $usage_percent = (int) ($q[$key]["u"] / $q[$key]["t"] * 100); $usage_color = ($q[$key]["u"] > $q[$key]["t"] ? '#800' : '#080'); $usage_color = ((85 < $usage_percent && $usage_percent <= 100) ? '#ff8800' : $usage_color); // yellow $url = ($key == 'bw_web' ? 'stats_show_per_month.php' : 'quota_show.php'); echo '
  • '; echo '
    ' . /* _($val) */ _("quota_".$key) . " " . sprintf(_("%s%% of %s"),$usage_percent,format_size($q[$key]["t"])) . '
    '; echo "
  • \n"; echo '
  • '; echo '
    '; echo '
     
    '; echo '
    '; echo '
'; } } ?>