Changeset 16313
- Timestamp:
- 2007/10/07 00:00:08 (16 years ago)
- Location:
- branches/feature-module-update/html/install
- Files:
-
- 2 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 -
branches/feature-module-update/html/install/sql/insert_data.sql
r16311 r16313 982 982 INSERT INTO mtb_constants VALUES ('SITE_CONTROL_TRACKBACK','1',282,'サイト管理 トラックバック'); 983 983 INSERT INTO mtb_constants VALUES ('SITE_CONTROL_AFFILIATE','2',283,'サイト管理 アフィリエイト'); 984 985 -- テンプレート関連986 984 INSERT INTO mtb_constants VALUES ('DEFAULT_TEMPLATE_NAME', '"default"', 300,'デフォルトテンプレート名'); 987 985 INSERT INTO mtb_constants VALUES ('TEMPLATE_NAME', 'DEFAULT_TEMPLATE_NAME', 301,'テンプレート名'); … … 994 992 INSERT INTO mtb_constants VALUES ('BLOC_DIR','"bloc/"', 308,'ブロックファイル保存先'); 995 993 INSERT INTO mtb_constants VALUES ('BLOC_PATH','TEMPLATE_DIR . BLOC_DIR', 309,'ブロックファイル保存先'); 996 997 -- モバイル関連998 994 INSERT INTO mtb_constants VALUES ('MOBILE_TEMPLATE_DIR', 'TEMPLATE_DIR . "mobile/"', 400,'SMARTYテンプレート(mobile)'); 999 995 INSERT INTO mtb_constants VALUES ('MOBILE_COMPILE_DIR', 'COMPILE_DIR . "mobile/"', 401,'SMARTYコンパイル(mobile)');
Note: See TracChangeset
for help on using the changeset viewer.