Newer
Older
mailpiler / webui / controller / common / menu.php
@SJ SJ on 8 Feb 2012 528 bytes added the webui to the tarball
<?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();


   }


}



?>