Example #1
0
if (!empty($config['vinterfaces']['carp'])) {
    ?>
	<?php 
    html_textinfo("vipstatus", gettext("Virtual IP address"), htmlspecialchars(get_vip_status()));
    ?>
	<?php 
}
?>
	<?php 
html_textinfo("hostname", gettext("Hostname"), system_get_hostname());
?>
	<?php 
html_textinfo("version", gettext("Version"), sprintf("<strong>%s %s</strong> (%s %s)", get_product_version(), get_product_versionname(), gettext("revision"), get_product_revision()));
?>
	<?php 
html_textinfo("builddate", gettext("Build date"), get_product_buildtime());
?>
	<?php 
exec("/sbin/sysctl -n kern.osrevision", $osrevision);
exec("/sbin/sysctl -n kern.version", $osversion);
?>
	<?php 
html_textinfo("platform_os", gettext("Platform OS"), sprintf("FreeBSD Revision: %s<br/>%s", $osrevision[0], $osversion[0]));
?>
	<?php 
html_textinfo("platform", gettext("Platform"), sprintf(gettext("%s on %s"), $g['fullplatform'], $cpuinfo['model']));
?>
	<?php 
html_textinfo("system", gettext("System"), sprintf("%s %s", htmlspecialchars($smbios['planar']['maker']), htmlspecialchars($smbios['planar']['product'])));
?>
	<?php 
Example #2
0
?>
</strong> (<?php 
echo gettext("revision");
?>
 <?php 
echo get_product_revision();
?>
)</td>
			  </tr>
			  <tr>
			    <td width="25%" valign="top" class="vncellt"><?php 
echo gettext("Built on");
?>
</td>
			    <td width="75%" class="listr"><?php 
echo get_product_buildtime();
?>
			    </td>
			  </tr>
			  <tr>
			    <td width="25%" valign="top" class="vncellt"><?php 
echo gettext("OS Version");
?>
</td>
			    <td width="75%" class="listr">
			      <?php 
exec("/sbin/sysctl -n kern.ostype", $ostype);
exec("/sbin/sysctl -n kern.osrelease", $osrelease);
exec("/sbin/sysctl -n kern.osrevision", $osrevision);
echo "{$ostype['0']} {$osrelease['0']} (revision {$osrevision['0']})";
?>