wordygo/application/controllers/ms.php
2013-11-26 12:54:17 +01:00

21 lines
577 B
PHP

<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class Ms extends CI_Controller {
public function __construct() {
parent::__construct();
$this->load->helper('form');
$this->load->library('form_validation');
}
public function login() {
if($this->ms->is_authenticated()) {
redirect('', 'refresh');
}
$data['content'] = $this->load->view('ms/block-login-frm', '', true);
$this->load->view('masters/login', $data);
}
public function logout() {
$this->ms->logout();
redirect('login', 'refresh');
}
}
?>