Changeset 6074 for trunk/include
- Timestamp:
- May 5, 2010, 12:21:11 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/user.inc.php
r5196 r6074 51 51 52 52 // using Apache authentication override the above user search 53 if ($conf['apache_authentication'] and isset($_SERVER['REMOTE_USER']))53 if ($conf['apache_authentication']) 54 54 { 55 if (!($user['id'] = get_userid($_SERVER['REMOTE_USER']))) 55 $remote_user = null; 56 foreach (array('REMOTE_USER', 'REDIRECT_REMOTE_USER') as $server_key) 56 57 { 57 register_user($_SERVER['REMOTE_USER'], '', '', false); 58 $user['id'] = get_userid($_SERVER['REMOTE_USER']); 58 if (isset($_SERVER[$server_key])) 59 { 60 $remote_user = $_SERVER[$server_key]; 61 echo $server_key; 62 break; 63 } 64 } 65 66 if (isset($remote_user)) 67 { 68 if (!($user['id'] = get_userid($remote_user))) 69 { 70 register_user($remote_user, '', '', false); 71 $user['id'] = get_userid($remote_user); 72 } 59 73 } 60 74 }
Note: See TracChangeset
for help on using the changeset viewer.