packages/ssoinabox-webui/root/usr/local/share/ssoinabox/htdocs/includes/template-wrapper.php
changeset 3 a044870a9d3d
parent 0 3906ca745819
child 4 2212b2ded8bf
equal deleted inserted replaced
2:700d61d93b1b 3:a044870a9d3d
    12 	$smarty->assign('session', $_SESSION);
    12 	$smarty->assign('session', $_SESSION);
    13 	
    13 	
    14 	$smarty->assign('user', isset($_SERVER['REMOTE_USER']) ? $_SERVER['REMOTE_USER'] : false);
    14 	$smarty->assign('user', isset($_SERVER['REMOTE_USER']) ? $_SERVER['REMOTE_USER'] : false);
    15 	if ( isset($_SERVER['REMOTE_USER']) )
    15 	if ( isset($_SERVER['REMOTE_USER']) )
    16 		$smarty->assign('userinfo', $ui = ldap_get_user($_SERVER['REMOTE_USER']));
    16 		$smarty->assign('userinfo', $ui = ldap_get_user($_SERVER['REMOTE_USER']));
       
    17 	
       
    18 	$smarty->assign('is_admin', IS_ADMIN);
    17 	
    19 	
    18 	if ( $ui === false )
    20 	if ( $ui === false )
    19 		redirect('/logout');
    21 		redirect('/logout');
    20 	
    22 	
    21 	$smarty->assign('msgcodes', array(
    23 	$smarty->assign('msgcodes', array(