/**
  * Constructor
  *
  * @access	public
  * @param	object		ipsRegistry reference
  * @param	array 		Configuration info for this method
  * @param	array 		Custom configuration info for this method
  * @return	void
  */
 public function __construct(ipsRegistry $registry, $method, $conf = array())
 {
     $this->method_config = $method;
     $this->openid_config = $conf;
     parent::__construct($registry);
     //-----------------------------------------
     // Fix include path for OpenID libs
     //-----------------------------------------
     $path_extra = dirname(__FILE__);
     $path = ini_get('include_path');
     $path = $path_extra . PATH_SEPARATOR . $path;
     ini_set('include_path', $path);
     define('Auth_OpenID_RAND_SOURCE', null);
     //-----------------------------------------
     // OpenID libraries are not STRICT compliant
     //-----------------------------------------
     ob_start();
     /**
      * Turn off strict error reporting for openid
      */
     if (version_compare(PHP_VERSION, '5.2.0', '>=')) {
         error_reporting(E_ERROR | E_WARNING | E_PARSE | E_RECOVERABLE_ERROR | E_COMPILE_ERROR | E_USER_ERROR | E_USER_WARNING);
     } else {
         error_reporting(E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR | E_USER_ERROR | E_USER_WARNING);
     }
     //-----------------------------------------
     // And grab libs
     //-----------------------------------------
     require_once "Auth/OpenID/Consumer.php";
     require_once "Auth/OpenID/FileStore.php";
     require_once "Auth/OpenID/SReg.php";
     require_once "Auth/OpenID/PAPE.php";
 }
Example #2
0
 /**
  * Constructor
  *
  * @access	public
  * @param	object		ipsRegistry reference
  * @param	array 		Configuration info for this method
  * @param	array 		Custom configuration info for this method
  * @return	@e void
  */
 public function __construct(ipsRegistry $registry, $method, $conf = array())
 {
     $this->method_config = $method;
     $this->connectConfig = $conf;
     require_once IPS_KERNEL_PATH . 'classFileManagement.php';
     $this->cfm = new classFileManagement();
     parent::__construct($registry);
 }
Example #3
0
 /**
  * Constructor
  *
  * @access	public
  * @param	object		ipsRegistry reference
  * @param	array 		Configuration info for this method
  * @param	array 		Custom configuration info for this method
  * @return	void
  */
 public function __construct(ipsRegistry $registry, $method, $conf = array())
 {
     $this->method_config = $method;
     $this->external_conf = $conf;
     //		require_once(IPS_ROOT_PATH . "applications/forums/extensions/dbconfig.php");
     //		require_once(IPS_ROOT_PATH . "applications/forums/extensions/dle_config.php");
     parent::__construct($registry);
     require_once IPS_ROOT_PATH . "applications/forums/extensions/memberSync.php";
     $this->dle = new forumsMemberSync();
 }
 /**
  * Constructor
  *
  * @access	public
  * @param	object		ipsRegistry reference
  * @param	array 		Configuration info for this method
  * @param	array 		Custom configuration info for this method
  * @return	void
  */
 public function __construct(ipsRegistry $registry, $method, $conf = array())
 {
     $this->method_config = $method;
     $this->live_config = $conf;
     parent::__construct($registry);
     //-----------------------------------------
     // Check for necessary extensions
     //-----------------------------------------
     if (!function_exists('mhash') or !function_exists('mcrypt_decrypt')) {
         $this->missingExtensions = true;
         return false;
     }
     //-----------------------------------------
     // And grab libs
     //-----------------------------------------
     require_once IPS_ROOT_PATH . "sources/loginauth/live/lib/windowslivelogin.php";
     $this->live = WindowsLiveLogin::initFromXml($this->live_config['key_file_location']);
     $this->live->setDebug(FALSE);
 }
Example #5
0
 /**
  * Constructor
  *
  * @access	public
  * @param	object		ipsRegistry reference
  * @param	array 		Configuration info for this method
  * @param	array 		Custom configuration info for this method
  * @return	@e void
  */
 public function __construct(ipsRegistry $registry, $method, $conf = array())
 {
     $this->method_config = $method;
     parent::__construct($registry);
 }
Example #6
0
 /**
  * Constructor
  *
  * @access	public
  * @param	object		ipsRegistry reference
  * @param	array 		Configuration info for this method
  * @param	array 		Custom configuration info for this method
  * @return	@e void
  */
 public function __construct(ipsRegistry $registry, $method, $conf = array())
 {
     /**
      * Turn off strict error reporting for Windows Live
      */
     error_reporting(E_ALL ^ E_NOTICE ^ E_STRICT);
     $this->method_config = $method;
     $this->live_config = $conf;
     parent::__construct($registry);
     //-----------------------------------------
     // Check for necessary extensions
     //-----------------------------------------
     if (!function_exists('mhash')) {
         $this->missingModules[] = 'mhash';
     }
     if (!function_exists('mcrypt_decrypt')) {
         $this->missingModules[] = 'mcrypt_decrypt';
     }
     /* Got missing modules? */
     if (count($this->missingModules)) {
         $this->missingExtensions = true;
         $this->return_code = 'MISSING_EXTENSIONS';
         return false;
     }
     /* Got our key file? */
     if (!is_file($this->live_config['key_file_location'])) {
         $this->missingModules[] = $this->live_config['key_file_location'];
         $this->missingExtensions = true;
         $this->return_code = 'MISSING_EXTENSIONS';
         return false;
     }
     //-----------------------------------------
     // And grab libs
     //-----------------------------------------
     require_once IPS_ROOT_PATH . 'sources/loginauth/live/lib/windowslivelogin.php';
     /*noLibHook*/
     $this->live = WindowsLiveLogin::initFromXml($this->live_config['key_file_location']);
     $this->live->setDebug(FALSE);
 }