diff --git a/src/opnsense/mvc/app/controllers/OPNsense/Base/ControllerBase.php b/src/opnsense/mvc/app/controllers/OPNsense/Base/ControllerBase.php index 45a37d55c..240139246 100644 --- a/src/opnsense/mvc/app/controllers/OPNsense/Base/ControllerBase.php +++ b/src/opnsense/mvc/app/controllers/OPNsense/Base/ControllerBase.php @@ -229,6 +229,11 @@ class ControllerBase extends ControllerRoot $this->view->ui_theme = $cnf->object()->theme; } + // info about the current user and box + $this->view->system_hostname = $cnf->object()->system->hostname; + $this->view->system_domain = $cnf->object()->system->domain; + $this->view->session_username = $_SESSION['Username']; + // append ACL object to view $this->view->acl = new \OPNsense\Core\ACL(); } diff --git a/src/opnsense/mvc/app/views/layouts/default.volt b/src/opnsense/mvc/app/views/layouts/default.volt index 72f046c77..5d7f272df 100644 --- a/src/opnsense/mvc/app/views/layouts/default.volt +++ b/src/opnsense/mvc/app/views/layouts/default.volt @@ -119,11 +119,7 @@
diff --git a/src/www/fbegin.inc b/src/www/fbegin.inc index 6e101dcc0..64ccc2a95 100644 --- a/src/www/fbegin.inc +++ b/src/www/fbegin.inc @@ -114,8 +114,6 @@ if($need_alert_display == true) { echo '