function actionSiteConfig()
 {
     $this->_oView->pageStart();
     $oSiteConfig = new BxDolInstallSiteConfig();
     $sForm = $oSiteConfig->getFormHtml();
     $this->_oView->out('site_config.php', compact('sForm'));
     $this->_oView->setToolbarItem('question', 'http://www.boonex.com/trac/dolphin/wiki/DetailedInstall#Part2:CreateaDatabaseandaUser', _t('_sys_inst_help_site_config'), '_blank');
     $this->_oView->pageEnd($this->_getTitle());
 }
Exemple #2
0
 public function createSiteConfig()
 {
     $oSiteConfig = new BxDolInstallSiteConfig($this->_aSiteConfig['server_http_host'], $this->_aSiteConfig['server_php_self'], $this->_aSiteConfig['server_doc_root'], false);
     $sFormData = $this->_aSiteConfig;
     unset($sFormData['server_http_host']);
     unset($sFormData['server_php_self']);
     unset($sFormData['server_doc_root']);
     $sErrorMessage = '';
     $mixedResult = $oSiteConfig->getFormHtml(array_merge($oSiteConfig->getAutoValues(), $sFormData), false, $sErrorMessage);
     if (true !== $mixedResult) {
         $this->finish($this->_aReturnCodes['create config failed']['code'], $sErrorMessage ? $sErrorMessage : $this->_aReturnCodes['create config failed']['msg']);
     }
     // install custom additional modules
     if (!empty($this->_aAdditionalModules)) {
         foreach ($this->_aAdditionalModules as $sModuleName) {
             $sErrorMessage = $oSiteConfig->processModuleByName($sModuleName);
             if ($sErrorMessage) {
                 $this->finish($this->_aReturnCodes['module failed']['code'], $this->_aReturnCodes['module failed']['msg'] . strip_tags($sErrorMessage));
             }
         }
     }
 }