/[drupal]/contributions/modules/webserver_auth/webserver_auth.module
ViewVC logotype

Diff of /contributions/modules/webserver_auth/webserver_auth.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.14, Fri Mar 3 05:08:46 2006 UTC revision 1.15, Sat Mar 25 05:53:56 2006 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: webserver_auth.module,v 1.13 2006/03/03 05:02:28 weitzman Exp $  // $Id: webserver_auth.module,v 1.14 2006/03/03 05:08:46 weitzman Exp $
3    
4  function webserver_auth_init() {  function webserver_auth_init() {
5    global $user, $account;    global $user, $account;
# Line 8  function webserver_auth_init() { Line 8  function webserver_auth_init() {
8      //do nothing because user is already logged into Drupal      //do nothing because user is already logged into Drupal
9    }    }
10    else {    else {
11      if ($name = $_SERVER["REMOTE_USER"]) {      if ($name = $_SERVER["REMOTE_USER"] || ($name = $_SERVER["REDIRECT_REMOTE_USER"])) {
12        // user is logged into webserver.        // user is logged into webserver.
13        $account->name = $name;        $account->name = $name;
14        //modules get to change the user bits before saving. use a global $account to do so.        //modules get to change the user bits before saving. use a global $account to do so.

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.2