html_textinfo("system_bios", gettext("System bios"), sprintf("%s %s %s %s", htmlspecialchars($smbios['bios']['vendor']), gettext("version:"), htmlspecialchars($smbios['bios']['version']), htmlspecialchars($smbios['bios']['reldate']))); ?> <?php html_textinfo("system_datetime", gettext("System time"), htmlspecialchars(shell_exec("date"))); ?> <?php html_textinfo("system_uptime", gettext("System uptime"), htmlspecialchars(system_get_uptime())); ?> <?php if (Session::isAdmin()) { ?> <?php if ($config['lastchange']) { ?> <?php html_textinfo("last_config_change", gettext("Last config change"), htmlspecialchars(date("D M j G:i:s T Y", $config['lastchange']))); ?> <?php } ?> <?php if (!empty($cpuinfo['temperature2'])) { echo "<tr>"; echo "<td width='25%' class='vncellt'>" . gettext("CPU temperature") . "</td>"; echo "<td width='75%' class='listr'>"; echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td>\n"; $cpus = system_get_cpus(); for ($idx = 0; $idx < $cpus; $idx++) { if (empty($cpuinfo['temperature2'][$idx])) { continue; }
<table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <form action="extensions_bhyve_edit.php" method="post" name="iform" id="iform"> <td class="tabcont"> <?php if (!empty($input_errors)) { print_input_errors($input_errors); } ?> <table width="100%" border="0" cellpadding="5" cellspacing="0"> <tr> <?php html_titleline("Bhyve - Virtual machine configuration"); ?> <?php html_textinfo("remark", "Attension", "<b><font color ='red'>THIS IS TEST ONLY now</font></b>"); ?> <?php html_inputbox("vmname", gettext("Name"), $pconfig['vmname'], "Define name of virtual machine", true, 16, false); ?> <?php html_combobox("guest", "VM guest OS", $pconfig['vmguest'], array("freebsd", "netbsd", "openbsd", "centos", "centos-grub", "alpine", "ubuntu", "debian", "windows", "generic"), "The type of operating system this virtual machine will use. Different systems often require specific steps to load the virtual machine, or specific bhyve options. The generic option does no specific loading and can be used for standard uefi guests.", true, false); ?> <?php html_inputbox("vmuefi", gettext("UEFI"), $pconfig['vmuefi'], "Tells bhyve that it should load the UEFI firmware. To use UEFIthis can be any value other than <b>[empty]/off/false/no/0</b>. If it contains the string 'csm', the UEFI BIOS compatability (CSM), firmware will be used", false, 16, false); ?> <?php $cpuinfo = system_get_cpu_info(); $cpucount = array(); for ($i = 1; $i <= $cpuinfo['number']; $i++) { $cpucount[] = $i;