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

Diff of /contributions/modules/singlesignon/singlesignon.module

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

revision 1.21.2.13, Tue May 6 00:55:59 2008 UTC revision 1.21.2.14, Thu May 8 10:12:18 2008 UTC
# Line 50  Line 50 
50   * @link     http://drupal.org/project/singlesignon   * @link     http://drupal.org/project/singlesignon
51   * @author   Primary Author: Daniel Convissor <danielc@analysisandsolutions.com>   * @author   Primary Author: Daniel Convissor <danielc@analysisandsolutions.com>
52   * @author   Maintainer: Tim Nelson <wayland@wayland.id.au>   * @author   Maintainer: Tim Nelson <wayland@wayland.id.au>
53   * @version  $Revision: $   * @version  $Revision: 1.21.2.13 $
54   */   */
55    
56  // {{{ core functions  // {{{ core functions
# Line 107  function singlesignon_init() { Line 107  function singlesignon_init() {
107        // Then go to the master site to see if they are logged in over there.        // Then go to the master site to see if they are logged in over there.
108        $_SESSION['singlesignon_prior_sid'] = session_id();        $_SESSION['singlesignon_prior_sid'] = session_id();
109    
110        _singlesignon_goto_url('singlesignon/initial_check');        _singlesignon_goto_url($master_url, 'singlesignon/initial_check');
111      }      }
112    }    }
113    
# Line 155  function singlesignon_init() { Line 155  function singlesignon_init() {
155      }      }
156      else if ($user->uid) {      else if ($user->uid) {
157        // Tell the master site the user just logged in.        // Tell the master site the user just logged in.
158        _singlesignon_goto_url('singlesignon/login');        _singlesignon_goto_url($master_url, 'singlesignon/login');
159      }      }
160    }    }
161  }  }
# Line 204  function _singlesignon_master($master_ur Line 204  function _singlesignon_master($master_ur
204  /**  /**
205   * Sets up the URL and goes to it   * Sets up the URL and goes to it
206   */   */
207  function _singlesignon_goto_url($url) {  function _singlesignon_goto_url($master_url, $url) {
208        // url() only available if bootstrap has reached FULL.        // url() only available if bootstrap has reached FULL.
209        drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);        drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
210    

Legend:
Removed from v.1.21.2.13  
changed lines
  Added in v.1.21.2.14

  ViewVC Help
Powered by ViewVC 1.1.2