mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Add logged in user to Dashboard sysinfo widget. Implements #8817
This commit is contained in:
parent
d629601ab0
commit
0fa7e6bfb5
@ -32,6 +32,7 @@ include_once("includes/functions.inc.php");
|
||||
|
||||
$sysinfo_items = array(
|
||||
'name' => gettext('Name'),
|
||||
'user' => gettext('User'),
|
||||
'system' => gettext('System'),
|
||||
'bios' => gettext('BIOS'),
|
||||
'version' => gettext('Version'),
|
||||
@ -153,6 +154,14 @@ $temp_use_f = (isset($user_settings['widgets']['thermal_sensors-0']) && !empty($
|
||||
<th><?=gettext("Name");?></th>
|
||||
<td><?php echo htmlspecialchars($config['system']['hostname'] . "." . $config['system']['domain']); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
endif;
|
||||
if (!in_array('user', $skipsysinfoitems)):
|
||||
$rows_displayed = true;
|
||||
?>
|
||||
<tr>
|
||||
<th><?=gettext("User");?></th>
|
||||
<td><?php echo htmlspecialchars(get_config_user()); ?></td>
|
||||
<?php
|
||||
endif;
|
||||
if (!in_array('system', $skipsysinfoitems)):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user