function BxWmapModule(&$aModule) { parent::BxDolModule($aModule); $this->_iProfileId = getLoggedId(); $this->_aParts = $this->_oDb->getParts(); $this->_oDb->_aParts =& $this->_aParts; }
function BxGSearchModule(&$aModule) { parent::BxDolModule($aModule); $GLOBALS['aModule'] = $aModule; $this->_iProfileId = getLoggedId(); $GLOBALS['oBxGSearchModule'] =& $this; }
function BxGSearchModule(&$aModule) { parent::BxDolModule($aModule); $GLOBALS['aModule'] = $aModule; $this->_iProfileId = $GLOBALS['logged']['member'] || $GLOBALS['logged']['admin'] ? $_COOKIE['memberID'] : 0; $GLOBALS['oBxGSearchModule'] =& $this; }
/** * Constructor */ function BxProfileCustomizeModule($aModule) { parent::BxDolModule($aModule); $this->iUserId = getLoggedId(); $this->_oConfig->init($this->_oDb); $this->_oTemplate->init($this, $this->_oDb); $this->_aCssMatch = $this->_oDb->getUnits(); }
/** * Class constructor ; * * @param : $aModule (array) - contain some information about this module; * [ id ] - (integer) module's id ; * [ title ] - (string) module's title ; * [ vendor ] - (string) module's vendor ; * [ path ] - (string) path to this module ; * [ uri ] - (string) this module's URI ; * [ class_prefix ] - (string) this module's php classes file prefix ; * [ db_prefix ] - (string) this module's Db tables prefix ; * [ date ] - (string) this module's date installation ; */ function BxShoutBoxModule(&$aModule) { parent::BxDolModule($aModule); // prepare the location link ; $this->sPathToModule = BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri(); $this->aModuleInfo = $aModule; $this->iMemberId = getLoggedId(); }
/** * Class constructor ; * * @param : $aModule (array) - contain some information about this module; * [ id ] - (integer) module's id ; * [ title ] - (string) module's title ; * [ vendor ] - (string) module's vendor ; * [ path ] - (string) path to this module ; * [ uri ] - (string) this module's URI ; * [ class_prefix ] - (string) this module's php classes file prefix ; * [ db_prefix ] - (string) this module's Db tables prefix ; * [ date ] - (string) this module's date installation ; */ function BxDataMigrationModule(&$aModule) { parent::BxDolModule($aModule); // prepare the location link ; $this->sPathToModule = BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri(); $this->aModuleInfo = $aModule; $this->aMigrationModules = array('profiles' => array('is_module' => false, 'module_name' => 'profiles', 'module_class' => '', 'migration_class' => 'BxDataMigrationProfiles', 'dependencies' => array()), 'poll' => array('is_module' => true, 'module_name' => 'poll', 'module_class' => 'BxPollModule', 'migration_class' => 'BxDataMigrationPoll', 'dependencies' => array('profiles')), 'events' => array('is_module' => true, 'module_name' => 'events', 'module_class' => 'BxEventsModule', 'migration_class' => 'BxDataMigrationEvents', 'dependencies' => array('profiles', 'photos')), 'blogs' => array('is_module' => true, 'module_name' => 'blogs', 'module_class' => 'BxBlogsModule', 'migration_class' => 'BxDataMigrationBlogs', 'dependencies' => array('profiles')), 'ads' => array('is_module' => true, 'module_name' => 'ads', 'module_class' => 'BxAdsModule', 'migration_class' => 'BxDataMigrationAds', 'dependencies' => array('profiles')), 'news' => array('is_module' => true, 'module_name' => 'news', 'module_class' => 'BxNewsModule', 'migration_class' => 'BxDataMigrationNews', 'dependencies' => array('profiles')), 'articles' => array('is_module' => true, 'module_name' => 'articles', 'module_class' => 'BxArlModule', 'migration_class' => 'BxDataMigrationArticles', 'dependencies' => array('profiles')), 'feedback' => array('is_module' => true, 'module_name' => 'feedback', 'module_class' => 'BxFdbModule', 'migration_class' => 'BxDataMigrationFeedback', 'dependencies' => array('profiles')), 'sounds' => array('is_module' => true, 'module_name' => 'sounds', 'module_class' => 'BxSoundsModule', 'migration_class' => 'BxDataMigrationSounds', 'dependencies' => array('profiles')), 'photos' => array('is_module' => true, 'module_name' => 'photos', 'module_class' => 'BxPhotosModule', 'migration_class' => 'BxDataMigrationPhotos', 'dependencies' => array('profiles')), 'videos' => array('is_module' => true, 'module_name' => 'videos', 'module_class' => 'BxVideosModule', 'migration_class' => 'BxDataMigrationVideos', 'dependencies' => array('profiles')), 'forum' => array('is_module' => true, 'module_name' => 'forum', 'module_class' => 'Orca Forum', 'migration_class' => 'BxDataMigrationForum', 'dependencies' => array('profiles')), 'acl_levels' => array('is_module' => false, 'module_name' => 'acl_levels', 'module_class' => '', 'migration_class' => 'BxDataMigrationMembership', 'dependencies' => array('profiles')), 'custom_profile_fields' => array('is_module' => false, 'module_name' => 'custom_profile_fields', 'module_class' => '', 'migration_class' => 'BxDataMigrationProfilesCustomFields', 'dependencies' => array('profiles')), 'groups' => array('is_module' => true, 'module_name' => 'groups', 'module_class' => 'BxGroupsModule', 'migration_class' => 'BxDataMigrationGroups', 'dependencies' => array('profiles', 'photos'))); }
/** * Constructor */ function BxProfileCustomizeModule($aModule) { parent::BxDolModule($aModule); $this->iUserId = $GLOBALS['logged']['member'] || $GLOBALS['logged']['admin'] ? $_COOKIE['memberID'] : 0; $this->_oConfig->init($this->_oDb); $this->_oTemplate->init($this, $this->_oDb); $this->_aCssMatch = $this->_oDb->getUnits(); }
/** * Constructor */ function BxSctrModule($aModule) { parent::BxDolModule($aModule); $this->iUserId = isLogged() && isAdmin() ? getLoggedId() : 0; $this->_oConfig->init($this->_oDb); $this->_oTemplate->init($this, $this->_oDb); $this->_aCssMatch = $this->_oDb->getUnits(); }
/** * Constructor */ function BxWallModule($aModule) { parent::BxDolModule($aModule); $this->_oConfig->init($this->_oDb); $this->_oTemplate->init($this); $this->_iOwnerId = 0; //--- Define Membership Actions ---// defineMembershipActions(array('timeline post comment', 'timeline delete comment'), 'ACTION_ID_'); }
function BxWmapModule(&$aModule) { parent::BxDolModule($aModule); $this->_iProfileId = getLoggedId(); $this->_aParts = $this->_oDb->getParts(); $this->_oDb->_aParts =& $this->_aParts; if (0 == strncmp('https', BX_DOL_URL_ROOT, 5)) { $this->_sProto = 'https'; } }
function BxGSearchModule(&$aModule) { parent::BxDolModule($aModule); $GLOBALS['aModule'] = $aModule; $this->_iProfileId = getLoggedId(); $GLOBALS['oBxGSearchModule'] =& $this; if (0 == strncmp('https', BX_DOL_URL_ROOT, 5)) { $this->_sProto = 'https'; } }
/** * Class constructor ; * * @param : $aModule (array) - contain some information about this module; * [ id ] - (integer) module's id ; * [ title ] - (string) module's title ; * [ vendor ] - (string) module's vendor ; * [ path ] - (string) path to this module ; * [ uri ] - (string) this module's URI ; * [ class_prefix ] - (string) this module's php classes file prefix ; * [ db_prefix ] - (string) this module's Db tables prefix ; * [ date ] - (string) this module's date installation ; */ function BxSimpleMessengerModule($aModule) { parent::BxDolModule($aModule); $this->sHomeUrl = $this->_oConfig->_sHomeUrl; $this->aModuleInfo = $aModule; $this->iLoggedMemberId = getLoggedId(); $this->aCoreSettings = array('update_time' => $this->_oConfig->iUpdateTime, 'number_visible_messages' => $this->_oConfig->iVisibleMessages, 'limit_returning_messages' => $this->_oConfig->iCountRetMessages, 'number_of_allowed_chat_boxes' => $this->_oConfig->iCountAllowedChatBoxes, 'output_block' => $this->_oConfig->sOutputBlock, 'page_receiver' => BX_DOL_URL_ROOT . 'modules/?r=' . $this->aModuleInfo['uri'] . '/get_operation', 'history_block_prefix' => $this->_oConfig->sOutputBlockPrefix, 'save_chat_history' => $this->_oConfig->bSaveChatHistory, 'language_keys' => array('empty_message' => _t('_simple_messenger_empty_message')), 'blink_counter' => $this->_oConfig->iBlinkCounter, 'message_date_format' => $this->_oConfig->sMessageDateFormat); $this->sMemberMenuPosition = isset($_COOKIE['menu_position']) ? $_COOKIE['menu_position'] : getParam('ext_nav_menu_top_position'); $this->oPrivacy = new BxSimpleMessengerPrivacy($this); }
function BxDolTextModule($aModule) { parent::BxDolModule($aModule); $this->_oConfig->init($this->_oDb); $this->_oTemplate->init($this); $sClassPrefix = $this->_oConfig->getClassPrefix(); $sClassName = $sClassPrefix . 'Privacy'; $this->_oPrivacy = class_exists($sClassName) ? new $sClassName($this) : null; $sClassName = $sClassPrefix . 'Data'; $this->_oTextData = class_exists($sClassName) ? new $sClassName($this) : null; }
function BxOAuthModule(&$aModule) { parent::BxDolModule($aModule); $aConfig = array('client_table' => 'bx_oauth_clients', 'access_token_table' => 'bx_oauth_access_tokens', 'refresh_token_table' => 'bx_oauth_refresh_tokens', 'code_table' => 'bx_oauth_authorization_codes', 'user_table' => 'Profiles', 'jwt_table' => '', 'jti_table' => '', 'scope_table' => 'bx_oauth_scopes', 'public_key_table' => ''); $this->_oStorage = new OAuth2\Storage\Pdo(array('dsn' => $this->_buildDSN(), 'username' => $GLOBALS['db']['user'], 'password' => $GLOBALS['db']['passwd'], 'options' => array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'UTF8'")), $aConfig); $this->_oServer = new OAuth2\Server($this->_oStorage, array('require_exact_redirect_uri' => false)); // Add the "Client Credentials" grant type (it is the simplest of the grant types) $this->_oServer->addGrantType(new OAuth2\GrantType\ClientCredentials($this->_oStorage)); // Add the "Authorization Code" grant type (this is where the oauth magic happens) $this->_oServer->addGrantType(new OAuth2\GrantType\AuthorizationCode($this->_oStorage)); }
/** * Class constructor ; * * @param : $aModule (array) - contain some information about this module; * [ id ] - (integer) module's id ; * [ title ] - (string) module's title ; * [ vendor ] - (string) module's vendor ; * [ path ] - (string) path to this module ; * [ uri ] - (string) this module's URI ; * [ class_prefix ] - (string) this module's php classes file prefix ; * [ db_prefix ] - (string) this module's Db tables prefix ; * [ date ] - (string) this module's date installation ; */ function BxSimpleMessengerModule($aModule) { parent::BxDolModule($aModule); $this->sHomeUrl = $this->_oConfig->_sHomeUrl; $this->aModuleInfo = $aModule; $this->iLoggedMemberId = getLoggedId(); $this->aCoreSettings = array('update_time' => $this->_oConfig->iUpdateTime, 'number_visible_messages' => $this->_oConfig->iVisibleMessages, 'limit_returning_messages' => $this->_oConfig->iCountRetMessages, 'number_of_allowed_chat_boxes' => $this->_oConfig->iCountAllowedChatBoxes, 'output_block' => $this->_oConfig->sOutputBlock, 'page_receiver' => BX_DOL_URL_ROOT . 'modules/?r=' . $this->aModuleInfo['uri'] . '/get_operation', 'history_block_prefix' => $this->_oConfig->sOutputBlockPrefix, 'save_chat_history' => $this->_oConfig->bSaveChatHistory, 'procces_smiles' => $this->_oConfig->bProccesSmiles, 'language_keys' => array('empty_message' => _t('_simple_messenger_empty_message')), 'blink_counter' => $this->_oConfig->iBlinkCounter, 'message_date_format' => $this->_oConfig->sMessageDateFormat); $this->sMemberMenuPosition = isset($_COOKIE['menu_position']) ? $_COOKIE['menu_position'] : getParam('ext_nav_menu_top_position'); $this->aSmiles = array(':arrow:' => 'icon_arrow.gif', ':D' => 'icon_biggrin.gif', ':-D' => 'icon_biggrin.gif', ':grin:' => 'icon_biggrin.gif', ':?' => 'icon_confused.gif', ':-?' => 'icon_confused.gif', '???:' => 'icon_confused.gif', '8)' => 'icon_cool.gif', '8-)' => 'icon_cool.gif', ':cool:' => 'icon_cool.gif', ':cry:' => 'icon_cry.gif', ':shock:' => 'icon_eek.gif', ':evil:' => 'icon_evil.gif', ':!:' => 'icon_exclaim.gif', ':idea:' => 'icon_idea.gif', ':lol:' => 'icon_lol.gif', ':x' => 'icon_mad.gif', ':-x' => 'icon_mad.gif', ':mad:' => 'icon_mad.gif', ':mrgreen' => 'icon_mrgreen.gif', ':|' => 'icon_neutral.gif', ':-|' => 'icon_neutral.gif', ':neutral' => 'icon_neutral.gif', ':?:' => 'icon_question.gif', ':P' => 'icon_razz.gif', ':-P' => 'icon_razz.gif', ':razz:' => 'icon_razz.gif', ':oops:' => 'icon_redface.gif', ':roll:' => 'icon_rolleyes.gif', ':(' => 'icon_sad.gif', ':-(' => 'icon_sad.gif', ':sad:' => 'icon_sad.gif', ':)' => 'icon_smile.gif', ':-)' => 'icon_smile.gif', ':smile:' => 'icon_smile.gif', ':o' => 'icon_surprised.gif', ':-o' => 'icon_surprised.gif', ':eek:' => 'icon_surprised.gif', ':twisted' => 'icon_twisted.gif', ':wink:' => 'icon_wink.gif', ';)' => 'icon_wink.gif', ';-)' => 'icon_wink.gif'); $this->oPrivacy = new BxSimpleMessengerPrivacy($this); }
/** * Class constructor ; * * @param : $aModule (array) - contain some information about this module; * [ id ] - (integer) module's id ; * [ title ] - (string) module's title ; * [ vendor ] - (string) module's vendor ; * [ path ] - (string) path to this module ; * [ uri ] - (string) this module's URI ; * [ class_prefix ] - (string) this module's php classes file prefix ; * [ db_prefix ] - (string) this module's Db tables prefix ; * [ date ] - (string) this module's date installation ; */ function BxFaceBookConnectModule(&$aModule) { parent::BxDolModule($aModule); require_once BX_DIRECTORY_PATH_MODULES . $aModule['path'] . '/inc/facebook.php'; // prepare the location link ; $this->sPathToModule = BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri(); $this->aModuleInfo = $aModule; $this->sHomeUrl = $this->_oConfig->_sHomeUrl; // Create our Application instance. $this->oFacebook = new Facebook(array('appId' => $this->_oConfig->mApiID, 'secret' => $this->_oConfig->mApiSecret, 'cookie' => true)); }
/** * Constructor */ function BxWallModule($aModule) { parent::BxDolModule($aModule); $this->_oConfig->init($this->_oDb); $this->_oTemplate->init($this); $this->_iOwnerId = 0; $this->_sJsPostObject = $this->_oConfig->getJsObject('post'); $this->_sJsViewObject = $this->_oConfig->getJsObject('view'); $this->_sJsOutlineObject = $this->_oConfig->getJsObject('outline'); //--- Define Membership Actions ---// defineMembershipActions(array('timeline post comment', 'timeline delete comment'), 'ACTION_ID_'); }
/** * Constructor */ function BxMsgModule($aModule) { parent::BxDolModule($aModule); //--- Define Membership Actions ---// $aActions = $this->_oDb->getMembershipActions(); foreach ($aActions as $aAction) { $sName = 'ACTION_ID_' . strtoupper(str_replace(' ', '_', $aAction['name'])); if (!defined($sName)) { define($sName, $aAction['id']); } } }
/** * Constructor */ function BxDolFilesModule(&$aModule) { parent::BxDolModule($aModule); $this->_iProfileId = $this->_oDb->iViewer; $this->_oTemplate->init($this->_oDb); $this->aPageTmpl = array('name_index' => 1, 'header' => $GLOBALS['site']['title'], 'header_text' => ''); $sClassName = $this->_oConfig->getClassPrefix() . 'Privacy'; bx_import('Privacy', $aModule); $this->oPrivacy = new $sClassName(); $this->oAlbumPrivacy = new $sClassName('sys_albums'); $this->oAlbums = new BxDolAlbums($this->_oConfig->getMainPrefix(), $this->_iProfileId); $this->aSectionsAdmin = array('approved' => array('exclude_btns' => array('activate')), 'disapproved' => array('exclude_btns' => array('deactivate', 'featured', 'unfeatured')), 'pending' => array('exclude_btns' => array('activate', 'deactivate', 'featured', 'unfeatured'))); }
/** * Constructor */ function BxWallModule($aModule) { parent::BxDolModule($aModule); $this->_oConfig->init($this->_oDb); $this->_bJsMode = false; $this->_iOwnerId = 0; $this->_aHandlers = array(); foreach ($this->_oDb->getHandlers() as $aHandler) { $this->_aHandlers[$aHandler['alert_unit'] . '_' . $aHandler['alert_action']] = $aHandler; } $this->_sJsPostObject = 'oWallPost'; $this->_sJsViewObject = 'oWallView'; //--- Define Membership Actions ---// defineMembershipActions(array('wall post comment', 'wall delete comment'), 'ACTION_ID_'); }
/** * Class constructor ; * * @param : $aModule (array) - contain some information about this module; * [ id ] - (integer) module's id ; * [ title ] - (string) module's title ; * [ vendor ] - (string) module's vendor ; * [ path ] - (string) path to this module ; * [ uri ] - (string) this module's URI ; * [ class_prefix ] - (string) this module's php classes file prefix ; * [ db_prefix ] - (string) this module's Db tables prefix ; * [ date ] - (string) this module's date installation ; */ function BxFaceBookConnectModule(&$aModule) { parent::BxDolModule($aModule); require_once BX_DIRECTORY_PATH_PLUGINS . 'facebook-php-sdk/src/Facebook/autoload.php'; // prepare the location link ; $this->sPathToModule = BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri(); $this->aModuleInfo = $aModule; $this->sHomeUrl = $this->_oConfig->_sHomeUrl; // Create our Application instance. $this->oFacebook = null; if ($this->_oConfig->mApiID) { session_start(); $this->oFacebook = new Facebook\Facebook(array('app_id' => $this->_oConfig->mApiID, 'app_secret' => $this->_oConfig->mApiSecret, 'default_graph_version' => 'v2.4')); } }
/** * Constructor */ function BxPmtModule($aModule) { parent::BxDolModule($aModule); $this->_oConfig->init($this->_oDb); $this->_iUserId = $this->getUserId(); $this->_oDetails = new BxPmtDetails($this->_oDb, $this->_oConfig); $this->_oCart = new BxPmtCart($this->_oDb, $this->_oConfig, $this->_oTemplate); $this->_oOrders = new BxPmtOrders($this->_iUserId, $this->_oDb, $this->_oConfig, $this->_oTemplate); $this->_aOrderTypes = array(BX_PMT_ORDERS_TYPE_PENDING, BX_PMT_ORDERS_TYPE_PROCESSED, BX_PMT_ORDERS_TYPE_HISTORY); }
function BxBlogsModule($aModule) { parent::BxDolModule($aModule); $this->iIconSize = (int) getParam('bx_blogs_iconsize'); $this->iThumbSize = (int) getParam('bx_blogs_thumbsize'); $this->iBigThumbSize = (int) getParam('bx_blogs_bigthumbsize'); $this->iImgSize = (int) getParam('bx_blogs_imagesize'); $this->sHomeUrl = $this->_oConfig->getHomeUrl(); $this->sHomePath = $this->_oConfig->getHomePath(); $this->_iVisitorID = isLogged() ? getLoggedId() : 0; //temple $this->bAdminMode = $this->isAdmin() == true; $this->iPostViewType = 1; $this->iViewingPostID = -1; $this->iLastPostedPostID = -1; $this->aViewingPostInfo = array(); $this->sSpacerPath = getTemplateIcon('spacer.gif'); $this->_sPageHeader = ''; $this->oPrivacy = new BxBlogsPrivacy($this); }
function BxAdsModule($aModule) { global $site; parent::BxDolModule($aModule); $this->sHomeUrl = $this->_oConfig->getHomeUrl(); $this->sHomePath = $this->_oConfig->getHomePath(); $this->sUploadDir = 'media/images/classifieds/'; $this->bUseFriendlyLinks = getParam('permalinks_module_ads') == 'on' ? true : false; $this->_oConfig->bUseFriendlyLinks = $this->bUseFriendlyLinks; $this->sPicNotAvail = $this->_oTemplate->getImageUrl('no-image-thumb.png'); $this->sPicNotAvailPath = $this->_oTemplate->getImagePath('no-image-thumb.png'); $this->sSpacerPath = getTemplateIcon('spacer.gif'); $this->_iVisitorID = isLogged() ? getLoggedId() : 0; $this->bAdminMode = $this->isAdmin() == true ? true : false; $this->_oConfig->bAdminMode = $this->isAdmin() == true ? true : false; $this->sCurrBrowsedFile = $this->sHomeUrl . 'classifieds.php'; $this->_oConfig->sCurrBrowsedFile = $this->sCurrBrowsedFile; bx_import('Privacy', $this->_aModule); $this->oPrivacy = new BxAdsPrivacy($this); $this->aPageTmpl['name_index'] = 71; }
/** * Constructor */ function BxPageACModule($aModule) { parent::BxDolModule($aModule); }
function BxDolConnectModule($aModule) { parent::BxDolModule($aModule); }
function BxH5avModule(&$aModule) { parent::BxDolModule($aModule); }
/** * Constructor */ function BxDskModule($aModule) { parent::BxDolModule($aModule); }
function BxDolTwigModule(&$aModule) { parent::BxDolModule($aModule); $this->_iProfileId = isLogged() ? getLoggedId() : 0; }
function BxZIPModule(&$aModule) { parent::BxDolModule($aModule); }