mirror of
https://github.com/KuJoe/kontrolvm.git
synced 2025-04-21 04:23:39 +00:00

Uploading the code in its entirety, basic testing completed but still more work and code clean-up needed.
16 lines
No EOL
357 B
PHP
16 lines
No EOL
357 B
PHP
<?php
|
|
/** KontrolVM By KuJoe (https://github.com/KuJoe/kontrolvm) **/
|
|
|
|
define('AmAllowed', TRUE);
|
|
require_once('functions.php');
|
|
|
|
$vmname = $_POST['vmname'];
|
|
$ipaddr = $_POST['nodeip'];
|
|
$sshport = $_POST['nodeport'];
|
|
$sshuser = $_POST['nodeuser'];
|
|
$sshkey = $_POST['nodepw'];
|
|
|
|
$state = getVMState($vmname,$ipaddr,$sshport,$sshuser,$sshkey);
|
|
echo $state;
|
|
|
|
?>
|