mirror of
https://github.com/KuJoe/kontrolvm.git
synced 2025-04-21 12:33:41 +00:00

Uploading the code in its entirety, basic testing completed but still more work and code clean-up needed.
26 lines
No EOL
578 B
PHP
26 lines
No EOL
578 B
PHP
<?php
|
|
/** KontrolVM By KuJoe (https://github.com/KuJoe/kontrolvm) **/
|
|
|
|
if(!defined('AmAllowed')) {
|
|
die('Error 001A');
|
|
}
|
|
require_once('functions.php');
|
|
$servers = getServerList('1');
|
|
|
|
if (count($servers) > 0) {
|
|
foreach ($servers as $server) {
|
|
$node_id = $server['node_id'];
|
|
$ipaddr = $server['ipaddr'];
|
|
$sshport = $server['sshport'];
|
|
$sshuser = $server['sshuser'];
|
|
$sshkey = $server['sshkey'];
|
|
getNodeInfo($node_id, $ipaddr, $sshport, $sshuser, $sshkey);
|
|
getNodeStats($node_id, $ipaddr, $sshport, $sshuser, $sshkey);
|
|
}
|
|
} else {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
|
|
?>
|