mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
expand product info to MVC view; closes #1446
There is still some glue in the product info that is irrelevant to the product. Will be removed eventually.
This commit is contained in:
parent
d783470868
commit
fbac6fb1a6
@ -221,6 +221,11 @@ class ControllerBase extends ControllerRoot
|
||||
$this->view->ui_theme = $cnf->object()->theme;
|
||||
}
|
||||
|
||||
$product_vars = json_decode(file_get_contents('/usr/local/opnsense/firmware-product'), true);
|
||||
foreach ($product_vars as $product_key => $product_var) {
|
||||
$this->view->$product_key = $product_var;
|
||||
}
|
||||
|
||||
// info about the current user and box
|
||||
$this->view->session_username = !empty($_SESSION['Username']) ? $_SESSION['Username'] : '(unknown)';
|
||||
$this->view->system_hostname = $cnf->object()->system->hostname;
|
||||
|
||||
@ -250,7 +250,9 @@
|
||||
<!-- page footer -->
|
||||
<footer class="page-foot col-sm-push-3 col-lg-push-2">
|
||||
<div class="container-fluid">
|
||||
<a target="_blank" href="https://opnsense.org/" class="redlnk">OPNsense</a> (c) 2014-2017 <a href="https://www.deciso.com" class="tblnk">Deciso B.V.</a>
|
||||
<a target="_blank" href="{{ product_website }}" class="redlnk">{{ product_name }}</a>
|
||||
(c) {{ product_copyright_years }}
|
||||
<a href="{{ product_copyright_url }}" class="tblnk">{{ product_copyright_owner }}</a>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user