Subversion-Projekte lars-tiefland.ci

Revision

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

Revision 783 Revision 785
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: 783 $
8
 * @version $Rev: 785 $
9
 */
9
 */
Zeile 10... Zeile 10...
10
 
10
 
11
class Login extends CI_Controller
11
class Login extends CI_Controller
12
{
12
{
13
	public function index()
13
	public function index()
14
	{
-
 
15
		$data["formstart"] = form_open("/login/execute/", array("class" => "login-form", ));
14
	{
16
		$data["formend"] = "</form>";
-
 
17
		$this->smarty->view('login.tpl', $data);
15
		$this->login_form();
Zeile 18... Zeile 16...
18
	}
16
	}
19
 
17
 
20
	function execute()
18
	function execute()
21
	{
19
	{
22
		if ($this->form_validation->run() === false)
-
 
23
		{
-
 
24
			$data["errors"] = validation_errors();
20
		if ($this->form_validation->run() === false)
25
			$data["formstart"] = form_open("/login/execute/", array("class" => "login-form", ));
-
 
26
			$data["formend"] = "</form>";
21
		{
27
			$this->smarty->view('login.tpl', $data);
22
			$this->login_form();
-
 
23
		}
-
 
24
	}
-
 
25
	
-
 
26
	private function login_form()
-
 
27
	{
-
 
28
		$data["title"] = "Anmeldung";
-
 
29
		$data["formstart"] = form_open("/login/execute/", array("class" => "login-form", ));
-
 
30
		$data["formend"] = "</form>";
28
		}
31
		$this->smarty->view('login.tpl', $data);
Zeile 29... Zeile 32...
29
	}
32
	}
30
}
33
}