adding SSH keys to VM scripted output

This commit is contained in:
Benjamin Sonntag 2013-10-18 12:56:46 +00:00
parent c044241bdb
commit 2d682b1196
2 changed files with 5 additions and 2 deletions

View File

@ -150,7 +150,7 @@ for($i=0;$i<$r["nsub"];$i++) {
<td><div class="retour-auto"><a href="http://<?php ecif($r["sub"][$i]["name"],$r["sub"][$i]["name"]."."); echo $r["name"] ?>" target="_blank"><?php
echo ecif($r["sub"][$i]["name"] , $r["sub"][$i]["name"]."." , "" , 0) . $r["name"];
?></a></div></td>
<td><div class="retour-auto"><?php __($r['sub'][$i]['type_desc']); ?>
<td><div class="retour-auto"><?php if ($r['sub'][$i]['type_desc']) { __($r['sub'][$i]['type_desc']); } else { echo __("ERROR, please check your server setup"); } ?>
<?php
//if ($r["sub"][$i]['type'] === 'VHOST') {
if ( @$dt[$r["sub"][$i]['type']]['target'] === 'DIRECTORY') {

View File

@ -35,6 +35,9 @@ if ($script) {
echo "VM_STATUS:OK\n";
echo "VM_START:".$infos['starttime']."\n";
echo "VM_HOSTNAME:".$infos['hostname']."\n";
foreach($infos['ssh-keys'] as $k)
if (trim($k))
echo "VM_SSHKEY:".trim($k)."\n";
} else {
echo "VM_STATUS:NONE\n";
}
@ -69,7 +72,7 @@ include_once("head.php");
<input type="submit" class="inb" name="go" value="<?php __("Click here to start a virtual machine."); ?>" />
</form>
<?php
} else {
} else {
echo "<table class='tedit'>";
echo "<tr><th>"._("Hostname")."</th><td>".$infos['hostname']."</td></tr>";
echo "<tr><th>"._("Start time")."</th><td>".date('Y-m-d H:i:s',$infos['starttime'])."</td></tr>";