packages/ssoinabox-webui/root/usr/local/share/ssoinabox/htdocs/includes/starthere.php
changeset 4 2212b2ded8bf
parent 3 a044870a9d3d
child 8 f68fdcc18df9
equal deleted inserted replaced
3:a044870a9d3d 4:2212b2ded8bf
    20 session_start();
    20 session_start();
    21 
    21 
    22 $adm = !empty($_SERVER['REMOTE_USER']) && ldap_test_group_membership($_SERVER['REMOTE_USER'], 'rtp');
    22 $adm = !empty($_SERVER['REMOTE_USER']) && ldap_test_group_membership($_SERVER['REMOTE_USER'], 'rtp');
    23 define('IS_ADMIN', $adm);
    23 define('IS_ADMIN', $adm);
    24 
    24 
       
    25 if ( !IS_ADMIN && defined('NEED_ADMIN') )
       
    26 {
       
    27 	queue_message(E_ERROR, "Access to that URL is restricted to administrators.");
       
    28 	redirect('/');
       
    29 }
       
    30 
    25 if ( !isset($_SESSION['messages']) )
    31 if ( !isset($_SESSION['messages']) )
    26 	$_SESSION['messages'] = array();
    32 	$_SESSION['messages'] = array();