function index()
 {
     $this->load->library('statuscheck');
     $this->template->set('page_title', 'Status report');
     $statuscheck = new Statuscheck();
     $statuscheck->check_permissions();
     $data['error_messages'] = $statuscheck->error_messages;
     $this->template->load('admin_template', 'admin/status', $data);
     return;
 }
 function index()
 {
     $this->template->set('page_title', 'Administer Webzash');
     /* Check status report */
     $this->load->library('statuscheck');
     $statuscheck = new Statuscheck();
     $statuscheck->check_permissions();
     if (count($statuscheck->error_messages) > 0) {
         $this->messages->add('One or more problems were detected with your installation. Check the ' . anchor('admin/status', 'Status report', array('title' => 'Check Status report', 'class' => 'anchor-link-a')) . ' for more information.', 'error');
     }
     $this->template->load('admin_template', 'admin/welcome');
     return;
 }