Subversion-Projekte lars-tiefland.ci

Revision

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

Revision 1983 Revision 1984
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: 1983 $
8
 * @version $Rev: 1984 $
9
 */
9
 */
Zeile 10... Zeile 10...
10
 
10
 
11
class Weban_backend
11
class Weban_backend
12
{
12
{
13
	public function __construct()
13
	public function __construct()
14
	{
14
	{
15
		$CI = &get_instance();
15
		$CI = &get_instance();
16
		$csrf_name = $CI->security->get_csrf_token_name();
16
		$csrf_name = $CI->security->get_csrf_token_name();
-
 
17
		$csrf_value = $CI->security->get_csrf_hash();
-
 
18
		$CI->smarty->assign('csrf_name', $csrf_name);
17
		$csrf_value = $CI->security->get_csrf_hash();
19
		$CI->smarty->assign('csrf_value', $csrf_value);
18
		if (!isset($_SESSION['username']))
20
		if (!isset($_SESSION['username']))
19
		{
21
		{
20
			if (!isset($_SESSION["redirected"]))
22
			if (!isset($_SESSION["redirected"]))
21
			{
23
			{
22
				$_SESSION["redirected"] = true;
24
				$_SESSION["redirected"] = true;
23
				header("Location:/backend/Login/");
25
				header("Location:/backend/Login/");
24
				exit;
26
				exit;
25
			}
27
			}
26
			return;
28
			return;
27
		}
-
 
28
		$CI->smarty->assign('csrf_name', $csrf_name);
-
 
29
		$CI->smarty->assign('csrf_value', $csrf_value);
29
		}
30
		$web_rechte = array();
30
		$web_rechte = array();
31
		$user_rechte = array();
31
		$user_rechte = array();
32
		$CI->load->model('termine_model', 'termine');
32
		$CI->load->model('termine_model', 'termine');
33
		$termine = $CI->termine->get_list();
33
		$termine = $CI->termine->get_list();