function lfDispStep4($objPage) { global $objWebParam; global $objDBParam; global $objDb; // 設定ファイルの生成 lfMakeConfigFile(); // hiddenに入力値を保持 $objPage->arrHidden = $objWebParam->getHashArray(); $objPage->arrHidden = array_merge($objPage->arrHidden, $objDBParam->getHashArray()); // hiddenに入力値を保持 $objPage->arrHidden['agreement'] = $_POST['agreement']; $normal_url = $objWebParam->getValue('normal_url'); // 語尾に'/'をつける $normal_url = rtrim($normal_url, '/') . '/'; $arrDsn = getArrayDsn($objDBParam); $objPage->tpl_site_url = $normal_url; $objPage->tpl_shop_name = $objWebParam->getValue('shop_name'); $objPage->tpl_cube_ver = ECCUBE_VERSION; $objPage->tpl_php_ver = phpversion(); $dbFactory = SC_DB_DBFactory_Ex::getInstance($arrDsn['phptype']); $objPage->tpl_db_ver = $dbFactory->sfGetDBVersion($arrDsn); $objPage->tpl_db_skip = $_POST['db_skip']; $objPage->tpl_mainpage = 'step4.tpl'; $objPage->tpl_mode = 'complete'; return $objPage; }
} else { $objPage->tpl_message .= "×:カラムコメントの書込みに失敗しました。<br>"; } } // テーブルコメントの書込み if (count($objPage->arrErr) == 0) { $objPage->arrErr = lfExecuteSQL("./sql/table_comment.sql", $dsn); if (count($objPage->arrErr) == 0) { $objPage->tpl_message .= "○:テーブルコメントの書込みに成功しました。<br>"; } else { $objPage->tpl_message .= "×:テーブルコメントの書込みに失敗しました。<br>"; } } if (count($objPage->arrErr) == 0) { // 設定ファイルの生成 lfMakeConfigFile(); $objPage = lfDispStep3($objPage); $objPage->tpl_mode = 'step4'; } else { $objPage = lfDispStep3($objPage); } break; case 'step4': $objPage = lfDispStep4($objPage); break; // テーブル類削除 // テーブル類削除 case 'drop': // 入力データを渡す。 $arrRet = $objDBParam->getHashArray(); if (!defined("DB_TYPE")) {
function lfDispStep4($objPage) { global $objWebParam; global $objDBParam; global $objDb; // 設定ファイルの生成 lfMakeConfigFile(); // hiddenに入力値を保持 $objPage->arrHidden = $objWebParam->getHashArray(); $objPage->arrHidden = array_merge($objPage->arrHidden, $objDBParam->getHashArray()); // hiddenに入力値を保持 $objPage->arrHidden['agreement'] = $_POST['agreement']; $normal_url = $objWebParam->getValue('normal_url'); // 語尾に'/'をつける if (!ereg("/\$", $normal_url)) { $normal_url = $normal_url . "/"; } $arrDbParam = $objDBParam->getHashArray(); if (!defined("DB_TYPE")) { define("DB_TYPE", $arrDbParam['db_type']); } $dsn = $arrDbParam['db_type'] . "://" . $arrDbParam['db_user'] . ":" . $arrDbParam['db_password'] . "@" . $arrDbParam['db_server'] . ":" . $arrDbParam['db_port'] . "/" . $arrDbParam['db_name']; if (!defined('DEFAULT_DSN')) { define('DEFAULT_DSN', $dsn); } $objPage->tpl_site_url = $normal_url; $objPage->tpl_shop_name = $objWebParam->getValue('shop_name'); $objPage->tpl_cube_ver = ECCUBE_VERSION; $objPage->tpl_php_ver = phpversion(); $dbFactory = SC_DB_DBFactory_Ex::getInstance($arrDbParam['db_type']); $objPage->tpl_db_ver = $dbFactory->sfGetDBVersion($dsn); $objPage->tpl_db_skip = $_POST['db_skip']; $objPage->tpl_mainpage = 'step4.tpl'; $objPage->tpl_mode = 'complete'; return $objPage; }