Added disk and bandwidth percentage values to the session response.

This commit is contained in:
Alexander 2021-11-22 23:14:32 +02:00
commit cae9a1550d
7 changed files with 21 additions and 3 deletions

View file

@ -25,6 +25,8 @@ list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":");
foreach ($data as $key => $value) {
++$i;
$data[$key]['U_DISK_PERCENT'] = get_percentage($data[$key]['U_DISK'],$panel[$user]['DISK_QUOTA']);
if ( $i == 1) {
$total_amount = __('1 database');
} else {