packages/ssoinabox-webui/root/usr/local/share/ssoinabox/htdocs/includes/starthere.php
changeset 3 a044870a9d3d
parent 0 3906ca745819
child 4 2212b2ded8bf
--- a/packages/ssoinabox-webui/root/usr/local/share/ssoinabox/htdocs/includes/starthere.php	Tue Jan 08 23:21:25 2013 -0500
+++ b/packages/ssoinabox-webui/root/usr/local/share/ssoinabox/htdocs/includes/starthere.php	Fri Jan 11 00:32:54 2013 -0500
@@ -15,8 +15,12 @@
 require_once(ACCOUNTS . 'includes/ldap.php');
 require_once(ACCOUNTS . 'includes/kadm5.php');
 require_once(ACCOUNTS . 'includes/users.php');
+require_once(ACCOUNTS . 'includes/smtp.php');
 
 session_start();
 
+$adm = !empty($_SERVER['REMOTE_USER']) && ldap_test_group_membership($_SERVER['REMOTE_USER'], 'rtp');
+define('IS_ADMIN', $adm);
+
 if ( !isset($_SESSION['messages']) )
 	$_SESSION['messages'] = array();