Example #1
0
 function install($aParams)
 {
     $aResult = parent::install($aParams);
     $this->updateEmailTemplatesExceptions();
     $this->updateProfileFieldsHtml();
     return $aResult;
 }
Example #2
0
 function install($aParams)
 {
     $aResult = parent::install($aParams);
     $this->addHtmlFields(array('POST.content', 'REQUEST.content'));
     $this->updateEmailTemplatesExceptions();
     return $aResult;
 }
Example #3
0
 function install($aParams)
 {
     $aResult = parent::install($aParams);
     if ($aResult['result']) {
         BxDolService::call('wmap', 'part_install', array('profiles', array('part' => 'profiles', 'title' => '_Profiles', 'title_singular' => '_Profile', 'icon' => 'map_marker_profiles.png', 'icon_site' => 'user', 'join_table' => 'Profiles', 'join_where' => "AND `p`.`Status` = 'Active'", 'join_field_id' => 'ID', 'join_field_country' => 'Country', 'join_field_city' => 'City', 'join_field_state' => '', 'join_field_zip' => 'zip', 'join_field_address' => '', 'join_field_title' => 'NickName', 'join_field_uri' => 'ID', 'join_field_author' => 'ID', 'join_field_privacy' => 'allow_view_to', 'permalink' => 'profile.php?ID=')));
     }
     return $aResult;
 }
Example #4
0
 function install($aParams)
 {
     $aResult = parent::install($aParams);
     if ($aResult['result'] && BxDolRequest::serviceExists('wall', 'update_handlers')) {
         BxDolService::call('wall', 'update_handlers', array($this->_aConfig['home_uri'], true));
     }
     return $aResult;
 }
Example #5
0
 function install($aParams)
 {
     $aResult = parent::install($aParams);
     if ($aResult['result']) {
         BxDolService::call($this->_aConfig['home_uri'], 'update_dependent_modules');
     }
     return $aResult;
 }
Example #6
0
 function install($aParams)
 {
     $aResult = parent::install($aParams);
     if ($aResult['result']) {
         BxDolService::call($this->_aConfig['home_uri'], 'update_handlers');
     }
     $this->addHtmlFields(array('POST.content', 'REQUEST.content'));
     return $aResult;
 }
Example #7
0
 function install($aParams)
 {
     $aResult = parent::install($aParams);
     if ($aResult['result'] && BxDolRequest::serviceExists('spy', 'update_handlers')) {
         BxDolService::call('spy', 'update_handlers', array($this->_aConfig['home_uri'], true));
     }
     $this->updateEmailTemplatesExceptions();
     return $aResult;
 }
Example #8
0
 function install($aParams)
 {
     $aResult = parent::install($aParams);
     if ($aResult['result'] && BxDolRequest::serviceExists('spy', 'update_handlers')) {
         BxDolService::call('spy', 'update_handlers', array($this->_aConfig['home_uri'], true));
     }
     $this->addHtmlFields(array('POST.PostText', 'REQUEST.PostText', 'POST.Description', 'REQUEST.Description'));
     $this->updateEmailTemplatesExceptions();
     return $aResult;
 }
Example #9
0
 function install($aParams)
 {
     $aResult = parent::install($aParams);
     if ($aResult['result'] && BxDolRequest::serviceExists('payment', 'update_dependent_modules')) {
         BxDolService::call('payment', 'update_dependent_modules', array($this->_aConfig['home_uri'], true));
     }
     if ($aResult['result'] && BxDolRequest::serviceExists('payflow', 'update_dependent_modules')) {
         BxDolService::call('payflow', 'update_dependent_modules', array($this->_aConfig['home_uri'], true));
     }
     return $aResult;
 }
Example #10
0
 function install($aParams)
 {
     $aResult = parent::install($aParams);
     if ($aResult['result'] && getParam($this->_sParamDefaultPayment) == '') {
         setParam($this->_sParamDefaultPayment, $this->_aConfig['home_uri']);
     }
     if ($aResult['result']) {
         BxDolService::call($this->_aConfig['home_uri'], 'update_dependent_modules');
     }
     return $aResult;
 }
Example #11
0
 function install($aParams)
 {
     $bInclude = @(include $this->sFilePath);
     if (!$bInclude || empty($LANG) || empty($LANG_INFO) || !$this->_addLanguage($LANG, $LANG_INFO)) {
         return array('operation_title' => _t('_adm_txt_modules_operation_install', $this->_aConfig['title']), 'message' => 'Language file parse error or such language already exists: ' . $this->sFileName, 'result' => false);
     }
     $iLangId = getLangIdByName($LANG_INFO['Name']);
     $this->_recompileLanguageForAllModules($iLangId);
     compileLanguage($iLangId);
     return parent::install($aParams);
 }
Example #12
0
 function install($aParams)
 {
     $aResult = parent::install($aParams);
     $s = $this->_readFromUrl("http://ws.geonames.org/postalCodeCountryInfo?");
     $a = $this->_getCountriesArray($s);
     if (count($a)) {
         db_res("TRUNCATE TABLE `bx_zip_countries_geonames`");
         foreach ($a as $sCountry) {
             db_res("INSERT INTO `bx_zip_countries_geonames` VALUES ('{$sCountry}')");
         }
     } else {
         return array('code' => BX_DOL_INSTALLER_FAILED, 'content' => 'Network error - can not get list of countries');
     }
     return $aResult;
 }
Example #13
0
 function install($aParams)
 {
     $aResult = parent::install($aParams);
     if (!$aResult['result']) {
         return $aResult;
     }
     if (BxDolRequest::serviceExists('wall', 'update_handlers')) {
         BxDolService::call('wall', 'update_handlers', array($this->_aConfig['home_uri'], true));
     }
     if (BxDolRequest::serviceExists('spy', 'update_handlers')) {
         BxDolService::call('spy', 'update_handlers', array($this->_aConfig['home_uri'], true));
     }
     $this->addHtmlFields(array('POST.desc', 'REQUEST.desc'));
     $this->updateEmailTemplatesExceptions();
     BxDolService::call($this->_aConfig['home_uri'], 'map_install');
     return $aResult;
 }
Example #14
0
 function install($aParams)
 {
     $aResult = parent::install($aParams);
     if (!$aResult['result']) {
         return $aResult;
     }
     if (BxDolRequest::serviceExists('wall', 'update_handlers')) {
         BxDolService::call('wall', 'update_handlers', array($this->_aConfig['home_uri'], true));
     }
     if (BxDolRequest::serviceExists('spy', 'update_handlers')) {
         BxDolService::call('spy', 'update_handlers', array($this->_aConfig['home_uri'], true));
     }
     if (BxDolRequest::serviceExists('shoutbox', 'update_objects')) {
         BxDolService::call('shoutbox', 'update_objects', array($this->_aConfig['home_uri'], true));
     }
     BxDolService::call($this->_aConfig['home_uri'], 'map_install');
     return $aResult;
 }
Example #15
0
 function install($aParams)
 {
     $aResult = parent::install($aParams);
     $this->addExceptionsFields(array('POST.bx_map_key', 'REQUEST.bx_map_key'));
     return $aResult;
 }
Example #16
0
 function install($aParams)
 {
     $aResult = parent::install($aParams);
     return $aResult;
 }
Example #17
0
 function install($aParams)
 {
     return parent::install($aParams);
 }