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