mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
Fix for lscpu on OpenVZ
This commit is contained in:
parent
d4cd7cfb3a
commit
49739b5c4e
1 changed files with 12 additions and 24 deletions
|
@ -16,11 +16,9 @@ if (isset($_GET['cpu'])) {
|
|||
$TAB = 'CPU';
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_server_info.html');
|
||||
exec (VESTA_CMD.'v-list-sys-cpu-status', $output, $return_var);
|
||||
if ($return_var == 0 ) {
|
||||
foreach($output as $file) {
|
||||
echo $file . "\n";
|
||||
}
|
||||
}
|
||||
echo " </pre>\n</body>\n</html>\n";
|
||||
exit();
|
||||
}
|
||||
|
@ -30,11 +28,9 @@ if (isset($_GET['mem'])) {
|
|||
$TAB = 'MEMORY';
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_server_info.html');
|
||||
exec (VESTA_CMD.'v-list-sys-memory-status', $output, $return_var);
|
||||
if ($return_var == 0 ) {
|
||||
foreach($output as $file) {
|
||||
echo $file . "\n";
|
||||
}
|
||||
}
|
||||
echo " </pre>\n</body>\n</html>\n";
|
||||
exit();
|
||||
}
|
||||
|
@ -44,11 +40,9 @@ if (isset($_GET['disk'])) {
|
|||
$TAB = 'MEMORY';
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_server_info.html');
|
||||
exec (VESTA_CMD.'v-list-sys-disk-status', $output, $return_var);
|
||||
if ($return_var == 0 ) {
|
||||
foreach($output as $file) {
|
||||
echo $file . "\n";
|
||||
}
|
||||
}
|
||||
echo " </pre>\n</body>\n</html>\n";
|
||||
exit();
|
||||
}
|
||||
|
@ -58,11 +52,9 @@ if (isset($_GET['net'])) {
|
|||
$TAB = 'MEMORY';
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_server_info.html');
|
||||
exec (VESTA_CMD.'v-list-sys-network-status', $output, $return_var);
|
||||
if ($return_var == 0 ) {
|
||||
foreach($output as $file) {
|
||||
echo $file . "\n";
|
||||
}
|
||||
}
|
||||
echo " </pre>\n</body>\n</html>\n";
|
||||
exit();
|
||||
}
|
||||
|
@ -72,11 +64,9 @@ if (isset($_GET['web'])) {
|
|||
$TAB = 'WEB';
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_server_info.html');
|
||||
exec (VESTA_CMD.'v-list-sys-web-status', $output, $return_var);
|
||||
if ($return_var == 0 ) {
|
||||
foreach($output as $file) {
|
||||
echo $file . "\n";
|
||||
}
|
||||
}
|
||||
echo " </pre>\n</body>\n</html>\n";
|
||||
exit();
|
||||
}
|
||||
|
@ -87,11 +77,9 @@ if (isset($_GET['dns'])) {
|
|||
$TAB = 'DNS';
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_server_info.html');
|
||||
exec (VESTA_CMD.'v-list-sys-dns-status', $output, $return_var);
|
||||
if ($return_var == 0 ) {
|
||||
foreach($output as $file) {
|
||||
echo $file . "\n";
|
||||
}
|
||||
}
|
||||
echo " </pre>\n</body>\n</html>\n";
|
||||
exit();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue