Added passenger support. Partialy 1

This commit is contained in:
Alexey Berezhok
2024-12-03 21:44:39 +03:00
parent 92f77aceca
commit d0da95dfc5
97 changed files with 5316 additions and 31 deletions

View File

@@ -0,0 +1,24 @@
<?php
$TAB = "EXTMODULES";
// Main include
include $_SERVER["DOCUMENT_ROOT"] . "/inc/main.php";
// Check user
if ($_SESSION["userContext"] != "admin") {
header("Location: /list/user");
exit();
}
// Data
exec(HESTIA_CMD . "v-ext-modules list json", $output, $return_var);
$data = json_decode(implode("", $output), true);
ksort($data);
unset($output);
// Render page
render_page($user, $TAB, "extmodules");
// Back uri
$_SESSION["back"] = $_SERVER["REQUEST_URI"];