mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 01:37:02 +02:00
added the webui to the tarball
This commit is contained in:
30
webui/controller/common/menu.php
Normal file
30
webui/controller/common/menu.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
|
||||
class ControllerCommonMenu extends Controller {
|
||||
|
||||
protected function index() {
|
||||
|
||||
$this->id = "menu";
|
||||
$this->template = "common/menu.tpl";
|
||||
|
||||
|
||||
$db = Registry::get('db');
|
||||
|
||||
$this->data['admin_user'] = Registry::get('admin_user');
|
||||
$this->data['auditor_user'] = Registry::get('auditor_user');
|
||||
$this->data['readonly_admin'] = Registry::get('readonly_admin');
|
||||
|
||||
if($this->data['admin_user'] == 1) { $this->template = "common/menu-admin.tpl"; }
|
||||
|
||||
$this->render();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
Reference in New Issue
Block a user