Subversion-Projekte lars-tiefland.ci

Revision

Revision 801 | Revision 810 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 801 Revision 809
Zeile 3... Zeile 3...
3
/**
3
/**
4
 *
4
 *
5
 * @package WebanOS CI
5
 * @package WebanOS CI
6
 * @author Lars Tiefland <ltiefland@gmail.com> 
6
 * @author Lars Tiefland <ltiefland@gmail.com> 
7
 * @copyright 2016
7
 * @copyright 2016
8
 * @version $Rev: 801 $
8
 * @version $Rev: 809 $
9
 */
9
 */
Zeile 10... Zeile 10...
10
 
10
 
11
class Login extends CI_Controller
11
class Login extends CI_Controller
-
 
12
{
-
 
13
	public function __construct()
-
 
14
	{
-
 
15
		parent::__construct();
-
 
16
		$this->load->model('Login_model', 'model');
12
{
17
	}
13
	public function index()
18
	public function index()
14
	{
19
	{
15
		$this->login_form();
20
		$this->login_form();
Zeile 21... Zeile 26...
21
		{
26
		{
22
			$this->login_form();
27
			$this->login_form();
23
		}
28
		}
24
		else
29
		else
25
		{
30
		{
-
 
31
			$res = $this->login->check_user();
-
 
32
			if (!$res)
-
 
33
			{
-
 
34
				$this->login_form();
-
 
35
				exit;
-
 
36
			}
26
			$this->session->username = $this->input->post('user');
37
			$this->session->username = $this->input->post('user');
27
			header("Location:/backend/");
38
			header("Location:/backend/");
28
		}
39
		}
29
	}
40
	}