Subversion-Projekte lars-tiefland.ci

Revision

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

Revision 1982 Revision 1983
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: 1982 $
8
 * @version $Rev: 1983 $
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
		$csrf_name = $CI->security->get_csrf_token_name();
16
		$csrf_name = $CI->security->get_csrf_token_name();
16
		$csrf_value = $CI->security->get_csrf_hash();
17
		$csrf_value = $CI->security->get_csrf_hash();
17
		if (!isset($_SESSION['username']))
18
		if (!isset($_SESSION['username']))
18
		{
19
		{
Zeile 22... Zeile 23...
22
				header("Location:/backend/Login/");
23
				header("Location:/backend/Login/");
23
				exit;
24
				exit;
24
			}
25
			}
25
			return;
26
			return;
26
		}
27
		}
27
		$CI = &get_instance();
-
 
28
		$CI->smarty->assign('csrf_name', $csrf_name);
28
		$CI->smarty->assign('csrf_name', $csrf_name);
29
		$CI->smarty->assign('csrf_value', $csrf_value);
29
		$CI->smarty->assign('csrf_value', $csrf_value);
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');