@@ 16-29 (lines=14) @@ | ||
13 | class Login extends BaseAdminController |
|
14 | { |
|
15 | ||
16 | public function __construct() { |
|
17 | parent::__construct(); |
|
18 | ||
19 | $this->load->library('DX_Auth'); |
|
20 | if ($this->dx_auth->is_admin() == TRUE) { |
|
21 | redirect('/admin'); |
|
22 | } |
|
23 | ||
24 | $this->load->library('lib_admin'); |
|
25 | $this->load->library('form_validation'); |
|
26 | ||
27 | $this->lib_admin->init_settings(); |
|
28 | $this->form_validation->set_error_delimiters('<div class="alert alert-error">', '</div>'); |
|
29 | } |
|
30 | ||
31 | public function index() { |
|
32 | if ($this->dx_auth->is_max_login_attempts_exceeded()) { |
@@ 23-35 (lines=13) @@ | ||
20 | ||
21 | public $_Config = ['per_page' => 20]; |
|
22 | ||
23 | public function __construct() { |
|
24 | ||
25 | parent::__construct(); |
|
26 | ||
27 | $this->load->library('DX_Auth'); |
|
28 | admin_or_redirect(); |
|
29 | ||
30 | $this->load->library('lib_admin'); |
|
31 | $this->load->library('lib_category'); |
|
32 | $this->load->library('pagination'); |
|
33 | $this->load->library('lib_seo'); |
|
34 | $this->lib_admin->init_settings(); |
|
35 | } |
|
36 | ||
37 | public function index() { |
|
38 |