Index: /branches/feature-module-update/html/install/sql/insert_data.sql
===================================================================
--- /branches/feature-module-update/html/install/sql/insert_data.sql	(revision 16311)
+++ /branches/feature-module-update/html/install/sql/insert_data.sql	(revision 16313)
@@ -982,6 +982,4 @@
 INSERT INTO mtb_constants VALUES ('SITE_CONTROL_TRACKBACK','1',282,'サイト管理 トラックバック');
 INSERT INTO mtb_constants VALUES ('SITE_CONTROL_AFFILIATE','2',283,'サイト管理 アフィリエイト');
-
--- テンプレート関連
 INSERT INTO mtb_constants VALUES ('DEFAULT_TEMPLATE_NAME', '"default"', 300,'デフォルトテンプレート名');
 INSERT INTO mtb_constants VALUES ('TEMPLATE_NAME', 'DEFAULT_TEMPLATE_NAME', 301,'テンプレート名');
@@ -994,6 +992,4 @@
 INSERT INTO mtb_constants VALUES ('BLOC_DIR','"bloc/"', 308,'ブロックファイル保存先');
 INSERT INTO mtb_constants VALUES ('BLOC_PATH','TEMPLATE_DIR . BLOC_DIR', 309,'ブロックファイル保存先');
-
--- モバイル関連
 INSERT INTO mtb_constants VALUES ('MOBILE_TEMPLATE_DIR', 'TEMPLATE_DIR . "mobile/"', 400,'SMARTYテンプレート(mobile)');
 INSERT INTO mtb_constants VALUES ('MOBILE_COMPILE_DIR', 'COMPILE_DIR . "mobile/"', 401,'SMARTYコンパイル(mobile)');
Index: /branches/feature-module-update/html/install/index.php
===================================================================
--- /branches/feature-module-update/html/install/index.php	(revision 16292)
+++ /branches/feature-module-update/html/install/index.php	(revision 16313)
@@ -97,4 +97,5 @@
     // 入力データを渡す。
     $arrRet =  $objDBParam->getHashArray();
+    define("DB_TYPE", $arrRet['db_type']);
     $dsn = $arrRet['db_type']."://".$arrRet['db_user'].":".$arrRet['db_password']."@".$arrRet['db_server'].":".$arrRet['db_port']."/".$arrRet['db_name'];
 
@@ -153,5 +154,4 @@
     if(count($objPage->arrErr) == 0) {
         $objPage->arrErr = lfExecuteSQL("./sql/insert_data.sql", $dsn);
-
         if(count($objPage->arrErr) == 0) {
             $objPage->tpl_message.="○：初期データの作成に成功しました。<br>";
@@ -198,4 +198,7 @@
     // 入力データを渡す。
     $arrRet =  $objDBParam->getHashArray();
+    if (!defined("DB_TYPE")) {
+        define("DB_TYPE", $arrRet['db_type']);
+    }
     $dsn = $arrRet['db_type']."://".$arrRet['db_user'].":".$arrRet['db_password']."@".$arrRet['db_server'].":".$arrRet['db_port']."/".$arrRet['db_name'];
 
@@ -555,4 +558,7 @@
 
     $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'];
 
@@ -707,4 +713,5 @@
 function lfCheckDBError($objFormParam) {
     global $objPage;
+    global $objDb;
 
     // 入力データを渡す。
@@ -717,4 +724,5 @@
         // 接続確認
         $dsn = $arrRet['db_type']."://".$arrRet['db_user'].":".$arrRet['db_password']."@".$arrRet['db_server'].":".$arrRet['db_port']."/".$arrRet['db_name'];
+        define("DB_TYPE", $arrRet['db_type']);
         // Debugモード指定
         $options['debug'] = PEAR_DB_DEBUG;
@@ -729,5 +737,5 @@
             ereg("\[(.*)\]", $objDB->userinfo, $arrKey);
             $objErr->arrErr['all'].= $arrKey[0] . "<br>";
-            gfPrintLog($objDB->userinfo, INSTALL_LOG);
+            GC_Utils_Ex::gfPrintLog($objDB->userinfo, INSTALL_LOG);
         }
     }
@@ -763,5 +771,5 @@
                         $arrErr['all'].= $arrKey[0] . "<br>";
                         $objPage->update_mess.=">> テーブル構成の変更に失敗しました。<br>";
-                        gfPrintLog($ret->userinfo, INSTALL_LOG);
+                        GC_Utils_Ex::gfPrintLog($ret->userinfo, INSTALL_LOG);
                     }
                 }
@@ -769,5 +777,5 @@
         } else {
             $arrErr['all'] = ">> " . $objDB->message;
-            gfPrintLog($objDB->userinfo, INSTALL_LOG);
+            GC_Utils_Ex::gfPrintLog($objDB->userinfo, INSTALL_LOG);
         }
     }
@@ -799,5 +807,5 @@
 
     // ディレクトリの取得
-    $url_dir = ereg_replace("^https?://[a-zA-Z0-9_~=&\?\.\-]+", "", $normal_url);
+    $url_dir = ereg_replace("^https?://[a-zA-Z0-9_:~=&\?\.\-]+", "", $normal_url);
 
     $data_path = SC_Utils_Ex::sfRmDupSlash($root_dir . HTML2DATA_DIR);
@@ -904,5 +912,5 @@
             ereg("\[(.*)\]", $objDB->userinfo, $arrKey);
             $arrErr['all'].= $arrKey[0] . "<br>";
-            gfPrintLog($objDB->userinfo, INSTALL_LOG);
+            GC_Utils_Ex::gfPrintLog($objDB->userinfo, INSTALL_LOG);
         }
     }
@@ -913,4 +921,5 @@
 function lfAddColumn($dsn) {
     global $objDBParam;
+    global $objDb;
 
     // 受注テーブル
@@ -971,5 +980,5 @@
     if (!$objDb->sfColumnExists("dtb_customer", "mobile_phone_id", "text", $dsn, true)) {
         // インデックスの追加
-        sfIndexExists("dtb_customer", "mobile_phone_id", "dtb_customer_mobile_phone_id_key", 64, $dsn, true);
+        $objDb->sfIndexExists("dtb_customer", "mobile_phone_id", "dtb_customer_mobile_phone_id_key", 64, $dsn, true);
     }
 
