Marius Cramer
2013-10-14 d9bcf68e395d6156645a7974b1a992aa6e6c00aa
interface/web/sites/user_quota_stats.php
@@ -42,6 +42,7 @@
      $username = $rec['system_user'];
      
      $rec['used'] = $monitor_data['user'][$username]['used'];
      $rec['used_sort'] = $rec['used'];
      $rec['soft'] = $monitor_data['user'][$username]['soft'];
      $rec['hard'] = $monitor_data['user'][$username]['hard'];
      $rec['files'] = $monitor_data['user'][$username]['files'];
@@ -60,7 +61,7 @@
      if($rec['used'] > 1024) {
         $rec['used'] = round($rec['used'] / 1024,2).' MB';
      } else {
         $rec['used'] .= ' KB';
         if ($rec['used'] != '') $rec['used'] .= ' KB';
      }
      
      if($rec['soft'] > 1024) {
@@ -75,6 +76,8 @@
         $rec['hard'] .= ' KB';
      }
      
      if($rec['soft'] == " KB") $rec['soft'] = $app->lng('unlimited');
      if($rec['hard'] == " KB") $rec['hard'] = $app->lng('unlimited');
      
      
      /*
@@ -93,8 +96,8 @@
}
$list = new list_action;
$list->SQLExtWhere = "type = 'vhost'";
$list->SQLOrderBy = 'ORDER BY domain';
$list->SQLExtWhere = "web_domain.type = 'vhost'";
$list->SQLOrderBy = 'ORDER BY web_domain.domain';
$list->onLoad();