Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2012
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.08 KB | None | 0 0
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2.  
  3. class Admin extends CI_Controller {
  4.     public $Template;
  5.     public function __construct()
  6.     {
  7.     parent::__construct();
  8.     $this->Template = array();
  9.     $this->Template['msg'] = FALSE;
  10.     $this->lang->load('xmpms_auth', $this->language->GetCurrentLang());
  11.     $this->lang->load('xmpms_message', $this->language->GetCurrentLang());
  12.     }
  13.     public function login()
  14.     {
  15.     $this->auth->CheckRememberMeToken();
  16.     If($this->auth->IsLoggedIn()){ redirect(site_url().'/admin/dashboard'); }
  17.    
  18.     $ret = '';
  19.     $max = 'max';
  20.     $ret = do_action("test.hook", $max);
  21.     echo $ret;
  22.     //activate('helloworld');
  23.    
  24.     If($this->input->post('login')){
  25.     If($this->input->post('remember_me') == "true"){
  26.     $RememberMe = TRUE;
  27.     }else{
  28.     $RememberMe = FALSE;
  29.     }
  30.     $this->Template['msg'] = $this->auth->LoginUser($this->input->post('username'), $this->input->post('password'), $RememberMe);
  31.     }
  32.    
  33.     If($this->input->post('lost_password')){
  34.    
  35.     }
  36.  
  37.  
  38.     $this->asset->SetMasterPath('admin');
  39.     $this->parser->parse('login', $this->Template);
  40.    
  41.     }
  42.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement