|
13 | 13 | // CPU info |
14 | 14 | if (isset($_GET['cpu'])) { |
15 | 15 | $TAB = 'CPU'; |
16 | | - include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.html'); |
| 16 | + include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.php'); |
17 | 17 | exec (HESTIA_CMD.'v-list-sys-cpu-status', $output, $return_var); |
18 | 18 | foreach($output as $file) { |
19 | 19 | echo $file . "\n"; |
|
25 | 25 | // Memory info |
26 | 26 | if (isset($_GET['mem'])) { |
27 | 27 | $TAB = 'MEMORY'; |
28 | | - include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.html'); |
| 28 | + include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.php'); |
29 | 29 | exec (HESTIA_CMD.'v-list-sys-memory-status', $output, $return_var); |
30 | 30 | foreach($output as $file) { |
31 | 31 | echo $file . "\n"; |
|
37 | 37 | // Disk info |
38 | 38 | if (isset($_GET['disk'])) { |
39 | 39 | $TAB = 'DISK'; |
40 | | - include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.html'); |
| 40 | + include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.php'); |
41 | 41 | exec (HESTIA_CMD.'v-list-sys-disk-status', $output, $return_var); |
42 | 42 | foreach($output as $file) { |
43 | 43 | echo $file . "\n"; |
|
49 | 49 | // Network info |
50 | 50 | if (isset($_GET['net'])) { |
51 | 51 | $TAB = 'NETWORK'; |
52 | | - include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.html'); |
| 52 | + include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.php'); |
53 | 53 | exec (HESTIA_CMD.'v-list-sys-network-status', $output, $return_var); |
54 | 54 | foreach($output as $file) { |
55 | 55 | echo $file . "\n"; |
|
61 | 61 | // Web info |
62 | 62 | if (isset($_GET['web'])) { |
63 | 63 | $TAB = 'WEB'; |
64 | | - include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.html'); |
| 64 | + include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.php'); |
65 | 65 | exec (HESTIA_CMD.'v-list-sys-web-status', $output, $return_var); |
66 | 66 | foreach($output as $file) { |
67 | 67 | $file=str_replace('border="0"', 'border="1"', $file); |
|
77 | 77 | // DNS info |
78 | 78 | if (isset($_GET['dns'])) { |
79 | 79 | $TAB = 'DNS'; |
80 | | - include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.html'); |
| 80 | + include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.php'); |
81 | 81 | exec (HESTIA_CMD.'v-list-sys-dns-status', $output, $return_var); |
82 | 82 | foreach($output as $file) { |
83 | 83 | echo $file . "\n"; |
|
89 | 89 | // Mail info |
90 | 90 | if (isset($_GET['mail'])) { |
91 | 91 | $TAB = 'MAIL'; |
92 | | - include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.html'); |
| 92 | + include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.php'); |
93 | 93 | exec (HESTIA_CMD.'v-list-sys-mail-status', $output, $return_var); |
94 | 94 | if ($return_var == 0 ) { |
95 | 95 | foreach($output as $file) { |
|
103 | 103 | // DB info |
104 | 104 | if (isset($_GET['db'])) { |
105 | 105 | $TAB = 'DB'; |
106 | | - include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.html'); |
| 106 | + include($_SERVER['DOCUMENT_ROOT'].'/templates/pages/list_server_info.php'); |
107 | 107 | exec (HESTIA_CMD.'v-list-sys-db-status', $output, $return_var); |
108 | 108 | if ($return_var == 0 ) { |
109 | 109 | foreach($output as $file) { |
|
0 commit comments