Changeset 17866 for branches/comu-ver2/html
- Timestamp:
- 2009/03/04 21:04:28 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/html/install/index.php
r17672 r17866 100 100 $objPage->arrErr = lfCheckDBError($objDBParam); 101 101 if(count($objPage->arrErr) == 0) { 102 // 設定ファイルの生成 103 lfMakeConfigFile(); 102 104 $objPage = lfDispStep3($objPage); 103 105 } else { … … 136 138 $skip = $_POST["db_skip"]; 137 139 if ($skip == "on") { 138 // 設定ファイルの生成139 lfMakeConfigFile();140 140 $objPage = lfDispComplete($objPage); 141 141 //$objPage = lfDispStep4($objPage); … … 194 194 195 195 if(count($objPage->arrErr) == 0) { 196 // 設定ファイルの生成197 lfMakeConfigFile();198 196 $objPage = lfDispStep3($objPage); 199 197 $objPage->tpl_mode = 'step4'; … … 705 703 function lfCheckDBError($objFormParam) { 706 704 global $objPage; 707 global $objDb;708 705 709 706 // 入力データを渡す。 … … 716 713 // 接続確認 717 714 $dsn = $arrRet['db_type']."://".$arrRet['db_user'].":".$arrRet['db_password']."@".$arrRet['db_server'].":".$arrRet['db_port']."/".$arrRet['db_name']; 718 define("DB_TYPE", $arrRet['db_type']);719 715 // Debugモード指定 720 716 $options['debug'] = PEAR_DB_DEBUG; … … 722 718 // 接続成功 723 719 if(!PEAR::isError($objDB)) { 720 $dbFactory = SC_DB_DBFactory_Ex::getInstance(); 724 721 // データベースバージョン情報の取得 725 $objPage->tpl_db_version = $ objDb->sfGetDBVersion($dsn);722 $objPage->tpl_db_version = $dbFactory->sfGetDBVersion($dsn); 726 723 } else { 727 724 $objErr->arrErr['all'] = ">> " . $objDB->message . "<br>";
Note: See TracChangeset
for help on using the changeset viewer.