Commit fbac6fb1 authored by Franco Fichtner's avatar Franco Fichtner

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.
parent d7834708
......@@ -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>
......
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