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 <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"]; echo ecif($r["sub"][$i]["name"] , $r["sub"][$i]["name"]."." , "" , 0) . $r["name"];
?></a></div></td> ?></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 <?php
//if ($r["sub"][$i]['type'] === 'VHOST') { //if ($r["sub"][$i]['type'] === 'VHOST') {
if ( @$dt[$r["sub"][$i]['type']]['target'] === 'DIRECTORY') { if ( @$dt[$r["sub"][$i]['type']]['target'] === 'DIRECTORY') {

View File

@ -35,6 +35,9 @@ if ($script) {
echo "VM_STATUS:OK\n"; echo "VM_STATUS:OK\n";
echo "VM_START:".$infos['starttime']."\n"; echo "VM_START:".$infos['starttime']."\n";
echo "VM_HOSTNAME:".$infos['hostname']."\n"; echo "VM_HOSTNAME:".$infos['hostname']."\n";
foreach($infos['ssh-keys'] as $k)
if (trim($k))
echo "VM_SSHKEY:".trim($k)."\n";
} else { } else {
echo "VM_STATUS:NONE\n"; echo "VM_STATUS:NONE\n";
} }