Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
- class Admin extends CI_Controller {
- public $Template;
- public function __construct()
- {
- parent::__construct();
- $this->Template = array();
- $this->Template['msg'] = FALSE;
- $this->lang->load('xmpms_auth', $this->language->GetCurrentLang());
- $this->lang->load('xmpms_message', $this->language->GetCurrentLang());
- }
- public function login()
- {
- $this->auth->CheckRememberMeToken();
- If($this->auth->IsLoggedIn()){ redirect(site_url().'/admin/dashboard'); }
- $ret = '';
- $max = 'max';
- $ret = do_action("test.hook", $max);
- echo $ret;
- //activate('helloworld');
- If($this->input->post('login')){
- If($this->input->post('remember_me') == "true"){
- $RememberMe = TRUE;
- }else{
- $RememberMe = FALSE;
- }
- $this->Template['msg'] = $this->auth->LoginUser($this->input->post('username'), $this->input->post('password'), $RememberMe);
- }
- If($this->input->post('lost_password')){
- }
- $this->asset->SetMasterPath('admin');
- $this->parser->parse('login', $this->Template);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement