Subversion-Projekte lars-tiefland.ci

Revision

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

Revision 767 Revision 769
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: 767 $
8
 * @version $Rev: 769 $
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
	{
14
	{
15
		$data["formstart"] = form_open("/login/execute/");
15
		$data["formstart"] = form_open("/login/execute/");
16
		$data["formend"] = "</form>";
16
		$data["formend"] = "</form>";
17
		$this->smarty->view('login.tpl', $data);
17
		$this->smarty->view('login.tpl', $data);
18
	}
18
	}
19
	
19
 
20
	function execute()
20
	function execute()
-
 
21
	{
-
 
22
		if ($this->form_validation->run() === false)
-
 
23
		{
-
 
24
			$data["errors"] = validation_errors();
-
 
25
			$data["formstart"] = form_open("/login/execute/");
-
 
26
			$data["formend"] = "</form>";
21
	{
27
			$this->smarty->view('login.tpl', $data);
22
		
28
		}
23
	}
29
	}
Zeile 24... Zeile 30...
24
}
30
}
25
 
31