packages/ssoinabox-webui/root/usr/local/share/ssoinabox/htdocs/includes/starthere.php
changeset 3 a044870a9d3d
parent 0 3906ca745819
child 4 2212b2ded8bf
equal deleted inserted replaced
2:700d61d93b1b 3:a044870a9d3d
    13 require_once(ACCOUNTS . 'includes/smarty/Smarty.class.php');
    13 require_once(ACCOUNTS . 'includes/smarty/Smarty.class.php');
    14 require_once(ACCOUNTS . 'includes/template-wrapper.php');
    14 require_once(ACCOUNTS . 'includes/template-wrapper.php');
    15 require_once(ACCOUNTS . 'includes/ldap.php');
    15 require_once(ACCOUNTS . 'includes/ldap.php');
    16 require_once(ACCOUNTS . 'includes/kadm5.php');
    16 require_once(ACCOUNTS . 'includes/kadm5.php');
    17 require_once(ACCOUNTS . 'includes/users.php');
    17 require_once(ACCOUNTS . 'includes/users.php');
       
    18 require_once(ACCOUNTS . 'includes/smtp.php');
    18 
    19 
    19 session_start();
    20 session_start();
    20 
    21 
       
    22 $adm = !empty($_SERVER['REMOTE_USER']) && ldap_test_group_membership($_SERVER['REMOTE_USER'], 'rtp');
       
    23 define('IS_ADMIN', $adm);
       
    24 
    21 if ( !isset($_SESSION['messages']) )
    25 if ( !isset($_SESSION['messages']) )
    22 	$_SESSION['messages'] = array();
    26 	$_SESSION['messages'] = array();