| 134 | | $msg= $this->lang->line('FAL_no_records'); |
|---|
| 135 | | flashMsg($msg); |
|---|
| 136 | | |
|---|
| 137 | | } |
|---|
| 138 | | |
|---|
| 139 | | //let's display the page |
|---|
| 140 | | $data['heading'] = 'VIEW admins'; |
|---|
| 141 | | $data['action'] = 'Manage admins'; |
|---|
| 142 | | $data['pagination_links'] = $this->pagination->create_links(); |
|---|
| 143 | | $data['controller'] = 'admins'; |
|---|
| 144 | | $data['page'] = $this->config->item('FAL_template_dir').'template_admin/users/list'; |
|---|
| 145 | | |
|---|
| 146 | | $this->load->vars($data); |
|---|
| 147 | | |
|---|
| 148 | | $this->load->view($this->_container); |
|---|
| 149 | | //$this->output->enable_profiler(TRUE); |
|---|
| | 134 | // If we arrive here, it means that we have no admins in the db |
|---|
| | 135 | // hence no SUPERADMIN. But only superadmins are allowed to |
|---|
| | 136 | // use this controller. |
|---|
| | 137 | // The only way to arrive here is to log in as a superadmin, |
|---|
| | 138 | // then delete all superadmins and admins 'by hand' |
|---|
| | 139 | // (since FAL do not allow it), and try to display the admins list. |
|---|
| | 140 | show_error('No superadmin or admin in the database. Please reinstall FreakAuth light.'); |
|---|
| | 141 | } |
|---|
| | 142 | |
|---|
| | 143 | //let's display the page |
|---|
| | 144 | $data['heading'] = 'VIEW admins'; |
|---|
| | 145 | $data['action'] = 'Manage admins'; |
|---|
| | 146 | $data['pagination_links'] = $this->pagination->create_links(); |
|---|
| | 147 | $data['controller'] = 'admins'; |
|---|
| | 148 | $data['page'] = $this->config->item('FAL_template_dir').'template_admin/users/list'; |
|---|
| | 149 | |
|---|
| | 150 | $this->load->vars($data); |
|---|
| | 151 | |
|---|
| | 152 | $this->load->view($this->_container); |
|---|
| | 153 | //$this->output->enable_profiler(TRUE); |
|---|