0.5.1: embed the web console in an iframe with credentials shown

This commit is contained in:
Claw committed 2026-11-17 20:53:18 +01:00
1 parent b2a12eb72a
commit 53332d9a07
3 files changed
+23 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"appname": "VM Manager", "appname": "VM Manager",
"version": "0.5.0", "version": "0.5.1",
"rootfolder": "/mnt/Daten/extensions/vmmngr", "rootfolder": "/mnt/Daten/extensions/vmmngr",
"vm_source": "auto", "vm_source": "auto",
"bridges": ["ix0bridge"], "bridges": ["ix0bridge"],
+21
View File
@@ -190,6 +190,27 @@ vmm_nav('dashboard');
</tr> </tr>
</tbody> </tbody>
</table> </table>
<?php if ($con !== null): ?>
<?php $conUrl = 'http://' . $con['host'] . ':' . (int)$con['port'] . '/'; ?>
<table class="area_data_settings" style="width:100%;border-collapse:collapse;">
<colgroup><col class="area_data_settings_col_tag"><col class="area_data_settings_col_data"></colgroup>
<thead><?php html_separator2(); html_titleline2(gettext('Web console'), 2); ?></thead>
<tbody>
<tr>
<td colspan="2" class="celldata">
<div style="margin-bottom:6px;opacity:.8;font-size:12px;">
<?=gettext('If the frame asks for a login: user');?>
<strong><?=vmm_h((string)$con['user']);?></strong>,
<?=gettext('password');?> <strong><?=vmm_h((string)$con['pass']);?></strong>
· <a href="<?=vmm_h($conUrl);?>" target="_blank"><?=gettext('open in a tab');?></a>
</div>
<iframe src="<?=vmm_h($conUrl);?>" style="width:100%;height:440px;border:1px solid rgba(127,127,127,.4);border-radius:4px;background:#000;"></iframe>
</td>
</tr>
</tbody>
</table>
<?php endif; ?>
<?php endif; ?> <?php endif; ?>
<?php <?php
+1 -1
View File
@@ -1 +1 @@
0.5.0 0.5.1