Files
hestiacp/web/list/extmodules/index.php

29 lines
601 B
PHP
Raw Normal View History

2024-12-03 21:44:39 +03:00
<?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);
2025-01-02 17:18:21 +03:00
$error_message = "";
if (!empty($_SESSION["error_msg"])){
$error_message = $_SESSION["error_msg"];
$_SESSION["error_msg"] = "";
}
2024-12-03 21:44:39 +03:00
unset($output);
// Render page
render_page($user, $TAB, "extmodules");
// Back uri
$_SESSION["back"] = $_SERVER["REQUEST_URI"];