|
|
@@ -13,7 +13,7 @@ if ($_SESSION['userContext'] !== "admin") {
|
|
|
// CPU info
|
|
|
if (isset($_GET['cpu'])) {
|
|
|
$TAB = 'CPU';
|
|
|
- include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.html');
|
|
|
+ include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.php');
|
|
|
exec (HESTIA_CMD.'v-list-sys-cpu-status', $output, $return_var);
|
|
|
foreach($output as $file) {
|
|
|
echo $file . "\n";
|
|
|
@@ -25,7 +25,7 @@ if (isset($_GET['cpu'])) {
|
|
|
// Memory info
|
|
|
if (isset($_GET['mem'])) {
|
|
|
$TAB = 'MEMORY';
|
|
|
- include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.html');
|
|
|
+ include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.php');
|
|
|
exec (HESTIA_CMD.'v-list-sys-memory-status', $output, $return_var);
|
|
|
foreach($output as $file) {
|
|
|
echo $file . "\n";
|
|
|
@@ -37,7 +37,7 @@ if (isset($_GET['mem'])) {
|
|
|
// Disk info
|
|
|
if (isset($_GET['disk'])) {
|
|
|
$TAB = 'DISK';
|
|
|
- include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.html');
|
|
|
+ include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.php');
|
|
|
exec (HESTIA_CMD.'v-list-sys-disk-status', $output, $return_var);
|
|
|
foreach($output as $file) {
|
|
|
echo $file . "\n";
|
|
|
@@ -49,7 +49,7 @@ if (isset($_GET['disk'])) {
|
|
|
// Network info
|
|
|
if (isset($_GET['net'])) {
|
|
|
$TAB = 'NETWORK';
|
|
|
- include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.html');
|
|
|
+ include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.php');
|
|
|
exec (HESTIA_CMD.'v-list-sys-network-status', $output, $return_var);
|
|
|
foreach($output as $file) {
|
|
|
echo $file . "\n";
|
|
|
@@ -61,7 +61,7 @@ if (isset($_GET['net'])) {
|
|
|
// Web info
|
|
|
if (isset($_GET['web'])) {
|
|
|
$TAB = 'WEB';
|
|
|
- include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.html');
|
|
|
+ include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.php');
|
|
|
exec (HESTIA_CMD.'v-list-sys-web-status', $output, $return_var);
|
|
|
foreach($output as $file) {
|
|
|
$file=str_replace('border="0"', 'border="1"', $file);
|
|
|
@@ -77,7 +77,7 @@ if (isset($_GET['web'])) {
|
|
|
// DNS info
|
|
|
if (isset($_GET['dns'])) {
|
|
|
$TAB = 'DNS';
|
|
|
- include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.html');
|
|
|
+ include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.php');
|
|
|
exec (HESTIA_CMD.'v-list-sys-dns-status', $output, $return_var);
|
|
|
foreach($output as $file) {
|
|
|
echo $file . "\n";
|
|
|
@@ -89,7 +89,7 @@ if (isset($_GET['dns'])) {
|
|
|
// Mail info
|
|
|
if (isset($_GET['mail'])) {
|
|
|
$TAB = 'MAIL';
|
|
|
- include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.html');
|
|
|
+ include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.php');
|
|
|
exec (HESTIA_CMD.'v-list-sys-mail-status', $output, $return_var);
|
|
|
if ($return_var == 0 ) {
|
|
|
foreach($output as $file) {
|
|
|
@@ -103,7 +103,7 @@ if (isset($_GET['mail'])) {
|
|
|
// DB info
|
|
|
if (isset($_GET['db'])) {
|
|
|
$TAB = 'DB';
|
|
|
- include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.html');
|
|
|
+ include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.php');
|
|
|
exec (HESTIA_CMD.'v-list-sys-db-status', $output, $return_var);
|
|
|
if ($return_var == 0 ) {
|
|
|
foreach($output as $file) {
|