2012-02-08 23:14:28 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
class ControllerCommonMenu extends Controller {
|
|
|
|
|
|
|
|
protected function index() {
|
|
|
|
|
|
|
|
$this->id = "menu";
|
|
|
|
$this->template = "common/menu.tpl";
|
|
|
|
|
|
|
|
$db = Registry::get('db');
|
2013-10-16 14:55:17 +02:00
|
|
|
$session = Registry::get('session');
|
2012-02-08 23:14:28 +01:00
|
|
|
|
2013-07-16 07:36:48 +02:00
|
|
|
$this->load->model('saas/customer');
|
|
|
|
|
2012-02-08 23:14:28 +01:00
|
|
|
$this->data['admin_user'] = Registry::get('admin_user');
|
|
|
|
$this->data['auditor_user'] = Registry::get('auditor_user');
|
|
|
|
$this->data['readonly_admin'] = Registry::get('readonly_admin');
|
|
|
|
|
2013-07-16 07:36:48 +02:00
|
|
|
$this->data['settings'] = $this->model_saas_customer->get_customer_settings_by_email();
|
|
|
|
|
2013-10-16 14:55:17 +02:00
|
|
|
$this->data['realname'] = $session->get('realname');
|
|
|
|
|
2012-02-08 23:14:28 +01:00
|
|
|
$this->render();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|