Intranet page based on group membership
I have two intranet pages (index-staff.php and index-student.php) and then an index.php which I want to check the currently logged on users group membership and redirect them to one of the relevant pages.
I know if I turn on authentication it will pick up the username and do the relevant checks OK, but as this is an intranet page i dont really want a login box showing. is there anyway to have PHP (or any other language i can google help for) check the currently logged in user name and if they are a member of group x, show page x, group y show page y, etc without it asking for a username and password in IE.
ive seen some php examples but in that you have to specify the username as a variable, which i wont know, it would have to get that variable from somewhere else.
any help would be great, thanks