This commit is contained in:
Alexey Berezhok
2026-05-03 16:32:53 +03:00
parent 8add078e7c
commit a3888d10b4
10 changed files with 267 additions and 5 deletions

View File

@@ -17,11 +17,11 @@ exec(
$output,
$return_var,
);
$check_passenger_enabled = json_decode(implode("", $output), true);
$check_bunkerweb_enabled = json_decode(implode("", $output), true);
if (
$return_var != 0 ||
empty($check_passenger_enabled) ||
$check_passenger_enabled[0]["STATE"] != "enabled"
empty($check_bunkerweb_enabled) ||
$check_bunkerweb_enabled[0]["STATE"] != "enabled"
) {
header("Location: /list/extmodules/");
exit();