Subversion-Projekte lars-tiefland.ci

Revision

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

Revision 847 Revision 930
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: 847 $
8
 * @version $Rev: 930 $
9
 */
9
 */
Zeile 10... Zeile 10...
10
 
10
 
11
class Backend extends CI_Controller
11
class Backend extends CI_Controller
12
{
12
{
13
	public function __construct()
13
	public function __construct()
14
	{
14
	{
15
		parent::__construct();
15
		parent::__construct();
16
	}
16
	}
17
	public function index()
17
	public function index()
18
	{
-
 
19
		if (!isset($_SESSION['username']))
-
 
20
		{
-
 
21
			header("Location:/backend/Login/");
-
 
22
		}
-
 
23
		else
-
 
24
		{
18
	{
25
			$this->smarty->view('index.tpl');
-
 
26
		}
19
		$this->smarty->view('index.tpl');
27
	}
20
	}
Zeile 28... Zeile 21...
28
}
21
}
29
 
22