| | |
| | | $rec['hard'] = $monitor_data['user'][$username]['hard']; |
| | | $rec['files'] = $monitor_data['user'][$username]['files']; |
| | | |
| | | if (!is_numeric($rec['used'])) $rec['used']=$rec['used'][1]; |
| | | if (!is_numeric($rec['used'])){ |
| | | if ($rec['used'][0] > $rec['used'][1]){ |
| | | $rec['used'] = $rec['used'][0]; |
| | | } else { |
| | | $rec['used'] = $rec['used'][1]; |
| | | } |
| | | } |
| | | if (!is_numeric($rec['soft'])) $rec['soft']=$rec['soft'][1]; |
| | | if (!is_numeric($rec['hard'])) $rec['hard']=$rec['hard'][1]; |
| | | if (!is_numeric($rec['files'])) $rec['files']=$rec['files'][1]; |
| | |
| | | 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) { |
| | |
| | | $rec['hard'] .= ' KB'; |
| | | } |
| | | |
| | | if($rec['soft'] == " KB") $rec['soft'] = $app->lng('unlimited'); |
| | | if($rec['hard'] == " KB") $rec['hard'] = $app->lng('unlimited'); |
| | | |
| | | |
| | | /* |
| | |
| | | |
| | | $list = new list_action; |
| | | $list->SQLExtWhere = "type = 'vhost'"; |
| | | |
| | | $list->SQLOrderBy = 'ORDER BY domain'; |
| | | $list->onLoad(); |
| | | |
| | | |