Changeset 16313 for branches/feature-module-update/html/install/index.php
- Timestamp:
- 2007/10/07 00:00:08 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/html/install/index.php
r16292 r16313 97 97 // 入力データを渡す。 98 98 $arrRet = $objDBParam->getHashArray(); 99 define("DB_TYPE", $arrRet['db_type']); 99 100 $dsn = $arrRet['db_type']."://".$arrRet['db_user'].":".$arrRet['db_password']."@".$arrRet['db_server'].":".$arrRet['db_port']."/".$arrRet['db_name']; 100 101 … … 153 154 if(count($objPage->arrErr) == 0) { 154 155 $objPage->arrErr = lfExecuteSQL("./sql/insert_data.sql", $dsn); 155 156 156 if(count($objPage->arrErr) == 0) { 157 157 $objPage->tpl_message.="○:初期データの作成に成功しました。<br>"; … … 198 198 // 入力データを渡す。 199 199 $arrRet = $objDBParam->getHashArray(); 200 if (!defined("DB_TYPE")) { 201 define("DB_TYPE", $arrRet['db_type']); 202 } 200 203 $dsn = $arrRet['db_type']."://".$arrRet['db_user'].":".$arrRet['db_password']."@".$arrRet['db_server'].":".$arrRet['db_port']."/".$arrRet['db_name']; 201 204 … … 555 558 556 559 $arrDbParam = $objDBParam->getHashArray(); 560 if (!defined("DB_TYPE")) { 561 define("DB_TYPE", $arrDbParam['db_type']); 562 } 557 563 $dsn = $arrDbParam['db_type']."://".$arrDbParam['db_user'].":".$arrDbParam['db_password']."@".$arrDbParam['db_server'].":".$arrDbParam['db_port']."/".$arrDbParam['db_name']; 558 564 … … 707 713 function lfCheckDBError($objFormParam) { 708 714 global $objPage; 715 global $objDb; 709 716 710 717 // 入力データを渡す。 … … 717 724 // 接続確認 718 725 $dsn = $arrRet['db_type']."://".$arrRet['db_user'].":".$arrRet['db_password']."@".$arrRet['db_server'].":".$arrRet['db_port']."/".$arrRet['db_name']; 726 define("DB_TYPE", $arrRet['db_type']); 719 727 // Debugモード指定 720 728 $options['debug'] = PEAR_DB_DEBUG; … … 729 737 ereg("\[(.*)\]", $objDB->userinfo, $arrKey); 730 738 $objErr->arrErr['all'].= $arrKey[0] . "<br>"; 731 gfPrintLog($objDB->userinfo, INSTALL_LOG);739 GC_Utils_Ex::gfPrintLog($objDB->userinfo, INSTALL_LOG); 732 740 } 733 741 } … … 763 771 $arrErr['all'].= $arrKey[0] . "<br>"; 764 772 $objPage->update_mess.=">> テーブル構成の変更に失敗しました。<br>"; 765 gfPrintLog($ret->userinfo, INSTALL_LOG);773 GC_Utils_Ex::gfPrintLog($ret->userinfo, INSTALL_LOG); 766 774 } 767 775 } … … 769 777 } else { 770 778 $arrErr['all'] = ">> " . $objDB->message; 771 gfPrintLog($objDB->userinfo, INSTALL_LOG);779 GC_Utils_Ex::gfPrintLog($objDB->userinfo, INSTALL_LOG); 772 780 } 773 781 } … … 799 807 800 808 // ディレクトリの取得 801 $url_dir = ereg_replace("^https?://[a-zA-Z0-9_ ~=&\?\.\-]+", "", $normal_url);809 $url_dir = ereg_replace("^https?://[a-zA-Z0-9_:~=&\?\.\-]+", "", $normal_url); 802 810 803 811 $data_path = SC_Utils_Ex::sfRmDupSlash($root_dir . HTML2DATA_DIR); … … 904 912 ereg("\[(.*)\]", $objDB->userinfo, $arrKey); 905 913 $arrErr['all'].= $arrKey[0] . "<br>"; 906 gfPrintLog($objDB->userinfo, INSTALL_LOG);914 GC_Utils_Ex::gfPrintLog($objDB->userinfo, INSTALL_LOG); 907 915 } 908 916 } … … 913 921 function lfAddColumn($dsn) { 914 922 global $objDBParam; 923 global $objDb; 915 924 916 925 // 受注テーブル … … 971 980 if (!$objDb->sfColumnExists("dtb_customer", "mobile_phone_id", "text", $dsn, true)) { 972 981 // インデックスの追加 973 sfIndexExists("dtb_customer", "mobile_phone_id", "dtb_customer_mobile_phone_id_key", 64, $dsn, true);982 $objDb->sfIndexExists("dtb_customer", "mobile_phone_id", "dtb_customer_mobile_phone_id_key", 64, $dsn, true); 974 983 } 975 984
Note: See TracChangeset
for help on using the changeset viewer.
