Fixed database size usage and disk usage output on the info pages

devel
alexey 11 hours ago
parent e37e8a0d1e
commit ec4bb73609

@ -2,6 +2,14 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
## [1.9.6.rpm] - Release
- Fix error on all web and mail domains after Apache 2.4.64 update
- Fix error on local php installation and extension activation
- Added templates for nginx mod_rewrite activation
- Added nginx with mod_rewrite
- Fixed database size usage and disk usage output on the info pages
## [1.9.5.rpm] - Release ## [1.9.5.rpm] - Release
- Added support installation of alternative php not only remi - Added support installation of alternative php not only remi

@ -3,7 +3,7 @@
Name: hestia Name: hestia
Version: 1.9.6 Version: 1.9.6
Release: 5%{dist} Release: 6%{dist}
Summary: Hestia Control Panel Summary: Hestia Control Panel
Group: System Environment/Base Group: System Environment/Base
License: GPLv3 License: GPLv3
@ -184,6 +184,9 @@ fi
%{_tmpfilesdir}/%{name}.conf %{_tmpfilesdir}/%{name}.conf
%changelog %changelog
* Thu Mar 26 2026 Alexey Berezhok <a@bayrepo.ru> - 1.9.6-6
- Fixed database size usage and disk usage output on the info pages
* Thu Mar 19 2026 Alexey Berezhok <a@bayrepo.ru> - 1.9.6-5 * Thu Mar 19 2026 Alexey Berezhok <a@bayrepo.ru> - 1.9.6-5
- Added nginx with mod_rewrite - Added nginx with mod_rewrite
- Added templates for nginx mod_rewrite activation - Added templates for nginx mod_rewrite activation

@ -4,6 +4,10 @@ $TAB = "DB";
// Main include // Main include
include $_SERVER["DOCUMENT_ROOT"] . "/inc/main.php"; include $_SERVER["DOCUMENT_ROOT"] . "/inc/main.php";
//Update data before $output
exec(HESTIA_CMD . "v-update-databases-disk $user", $output, $return_var);
unset($output);
// Data // Data
exec(HESTIA_CMD . "v-list-databases $user json", $output, $return_var); exec(HESTIA_CMD . "v-list-databases $user json", $output, $return_var);
$data = json_decode(implode("", $output), true); $data = json_decode(implode("", $output), true);

@ -4,8 +4,20 @@ $TAB = "WEB";
// Main include // Main include
include $_SERVER["DOCUMENT_ROOT"] . "/inc/main.php"; include $_SERVER["DOCUMENT_ROOT"] . "/inc/main.php";
//Update data before output
exec(HESTIA_CMD . "v-update-web-domains-disk " . $user, $output, $return_var);
unset($output);
exec(HESTIA_CMD . "v-update-web-domains-stat " . $user, $output, $return_var);
unset($output);
exec(HESTIA_CMD . "v-update-web-domains-traff " . $user, $output, $return_var);
unset($output);
// Data // Data
exec(HESTIA_CMD . "v-list-web-domains " . $user . " 'json'", $output, $return_var); exec(
HESTIA_CMD . "v-list-web-domains " . $user . " 'json'",
$output,
$return_var,
);
$data = json_decode(implode("", $output), true); $data = json_decode(implode("", $output), true);
if ($_SESSION["userSortOrder"] == "name") { if ($_SESSION["userSortOrder"] == "name") {
ksort($data); ksort($data);

Loading…
Cancel
Save