Commit 92508ff7 authored by Franco Fichtner's avatar Franco Fichtner

dashboard: consolidate style some more for version info

parent 7a7ec82a
...@@ -103,14 +103,14 @@ $filesystems = get_mounted_filesystems(); ...@@ -103,14 +103,14 @@ $filesystems = get_mounted_filesystems();
<td width="75%" class="listr"><?php echo $config['system']['hostname'] . "." . $config['system']['domain']; ?></td> <td width="75%" class="listr"><?php echo $config['system']['hostname'] . "." . $config['system']['domain']; ?></td>
</tr> </tr>
<tr> <tr>
<td width="25%" valign="top" class="vncellt"><?=gettext("Version");?></td> <td width="25%" valign="top" class="vncellt"><?=gettext("Versions");?></td>
<td width="75%" class="listr"> <td width="75%" class="listr">
<strong><span id="version"><?php <?php
$pkgver = explode('-', file_get_contents('/usr/local/opnsense/version/opnsense')); $pkgver = explode('-', trim(file_get_contents('/usr/local/opnsense/version/opnsense')));
echo sprintf('%s %s-%s (%s)', $g['product_name'], $pkgver[0], php_uname('m'), $pkgver[1]); echo sprintf('%s %s-%s', $g['product_name'], $pkgver[0], php_uname('m'));
?></span></strong> ?>
<br /><?php echo exec('/usr/local/bin/openssl version'); ?> <br /><?php echo php_uname('s') . ' ' . php_uname('r'); ?>
<br /><div id="uname"><a href="#" onclick='swapuname(); return false;'><?php echo php_uname("s") . " " . php_uname("r"); ?></a></div> <br /><?php echo exec('/usr/local/bin/openssl version'); ?>
</td> </td>
</tr> </tr>
...@@ -283,9 +283,6 @@ $filesystems = get_mounted_filesystems(); ...@@ -283,9 +283,6 @@ $filesystems = get_mounted_filesystems();
</table> </table>
<script type="text/javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
function swapuname() {
jQuery('#uname').html("<?php echo php_uname("a"); ?>");
}
function checkupdate() { function checkupdate() {
jQuery('#updatestatus').html('<span class="text-info">Updating.... (may take up to 30 seconds) </span>'); jQuery('#updatestatus').html('<span class="text-info">Updating.... (may take up to 30 seconds) </span>');
jQuery.ajax({ jQuery.ajax({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment