Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
3986b993
Commit
3986b993
authored
Apr 02, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widgets: swap system platform/version; show openssl/libressl version too
parent
64bc749d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
system_information.widget.php
src/www/widgets/widgets/system_information.widget.php
+6
-12
No files found.
src/www/widgets/widgets/system_information.widget.php
View file @
3986b993
...
...
@@ -105,12 +105,12 @@ $filesystems = get_mounted_filesystems();
<tr>
<td
width=
"25%"
valign=
"top"
class=
"vncellt"
>
<?=
gettext
(
"Version"
);
?>
</td>
<td
width=
"75%"
class=
"listr"
>
<strong>
<
?php
readfile
(
'/usr/local/opnsense/version/opnsense'
);
?>
<span
id=
"version"
></span></strong>
(
<?php
echo
php_uname
(
"m"
);
?>
)
<?php
if
(
!
$g
[
'hideuname'
])
:
?>
<br
/
>
<
div
id=
"uname"
><a
href=
"#"
onclick=
'swapuname(); return false;'
>
<?php
echo
php_uname
(
"s"
)
.
" "
.
php_uname
(
"r"
);
?>
</a></div
>
<
?php
endif
;
?
>
<strong><
span
id=
"version"
>
<?php
$pkgver
=
explode
(
'-'
,
file_get_contents
(
'/usr/local/opnsense/version/opnsense'
));
echo
sprintf
(
'%s %s-%s (%s)'
,
$g
[
'product_name'
],
$pkgver
[
0
],
php_uname
(
'm'
),
$pkgver
[
1
]);
?>
</span></strong
>
<
br
/>
<?php
echo
exec
(
'/usr/local/bin/openssl version'
);
?
>
<
br
/><div
id=
"uname"
><a
href=
"#"
onclick=
'swapuname(); return false;'
>
<?php
echo
php_uname
(
"s"
)
.
" "
.
php_uname
(
"r"
);
?>
</a></div
>
</td>
</tr>
...
...
@@ -124,12 +124,6 @@ $filesystems = get_mounted_filesystems();
</td>
</tr>
<?php
endif
;
?>
<tr>
<td
width=
"25%"
class=
"vncellt"
>
<?=
gettext
(
"Platform"
);
?>
</td>
<td
width=
"75%"
class=
"listr"
>
<?=
htmlspecialchars
(
'OPNsense'
);
?>
</td>
</tr>
<tr>
<td
width=
"25%"
class=
"vncellt"
>
<?=
gettext
(
"CPU Type"
);
?>
</td>
<td
width=
"75%"
class=
"listr"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment