| @@ 25-32 (lines=8) @@ | ||
| 22 | ############################################################################### |
|
| 23 | class Login extends MX_Controller { |
|
| 24 | ||
| 25 | function Login() { |
|
| 26 | parent::__construct(); |
|
| 27 | $this->load->helper('form'); |
|
| 28 | $this->load->library('astpp/permission'); |
|
| 29 | $this->load->library('encrypt'); |
|
| 30 | $this->load->model('Auth_model'); |
|
| 31 | $this->load->model('db_model'); |
|
| 32 | } |
|
| 33 | ||
| 34 | function set_lang_global($post=false){ |
|
| 35 | if(!is_array($post)){ |
|
| @@ 27-36 (lines=10) @@ | ||
| 24 | ||
| 25 | class User extends MX_Controller { |
|
| 26 | ||
| 27 | function User() { |
|
| 28 | parent::__construct(); |
|
| 29 | $this->load->helper('template_inheritance'); |
|
| 30 | $this->load->helper('form'); |
|
| 31 | $this->load->library("astpp/form"); |
|
| 32 | $this->load->library("user_form"); |
|
| 33 | $this->load->model('Auth_model'); |
|
| 34 | $this->load->model('Astpp_common'); |
|
| 35 | $this->load->model('user_model'); |
|
| 36 | } |
|
| 37 | ||
| 38 | function index() { |
|
| 39 | if ($this->session->userdata('user_login') == FALSE) |
|