BxTriConConfig.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
  4. * CC-BY License - http://creativecommons.org/licenses/by/3.0/
  5. *
  6. * @defgroup TridentConnect Trident Connect
  7. * @ingroup TridentModules
  8. *
  9. * @{
  10. */
  11. class BxTriConConfig extends BxBaseModConnectConfig
  12. {
  13. public $sApiID;
  14. public $sApiSecret;
  15. public $sApiUrl;
  16. public $sPageStart;
  17. public $sPageHandle;
  18. public $sScope = 'basic';
  19. function __construct($aModule)
  20. {
  21. parent::__construct($aModule);
  22. $this -> sApiID = getParam('bx_tricon_api_key');
  23. $this -> sApiSecret = getParam('bx_tricon_secret');
  24. $this -> sApiUrl = trim(getParam('bx_tricon_url'), '/') . (getParam('bx_tricon_url_rewrite') ? '/m/oauth2/' : '/modules/?r=oauth2/');
  25. $this -> sSessionUid = 'tricon_session';
  26. $this -> sSessionProfile = 'tricon_session_profile';
  27. $this -> sEmailTemplatePasswordGenerated = 'bx_tricon_password_generated';
  28. $this -> sDefaultTitleLangKey = '_bx_tricon';
  29. $this -> sRedirectPage = getParam('bx_tricon_redirect_page');
  30. $this -> sProfilesModule = getParam('bx_tricon_module');
  31. $this -> isAlwaysConfirmEmail = (bool)getParam('bx_tricon_confirm_email');
  32. $this -> isAlwaysAutoApprove = (bool)getParam('bx_tricon_approve');
  33. $this -> bAutoFriends = 'on' == getParam('bx_tricon_auto_friends');
  34. $this -> sPageStart = BX_DOL_URL_ROOT . $this -> getBaseUri() . 'start';
  35. $this -> sPageHandle = BX_DOL_URL_ROOT . $this -> getBaseUri() . 'handle';
  36. }
  37. }
  38. /** @} */