packages/ssoinabox-webui/root/usr/local/share/ssoinabox/htdocs/includes/template-wrapper.php
equal
deleted
inserted
replaced
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( |