Changeset 5348 for temp/trunk/html/install
- Timestamp:
- 2006/09/21 20:25:29 (20 years ago)
- Location:
- temp/trunk/html/install
- Files:
-
- 2 edited
-
index.php (modified) (1 diff)
-
templates/step3.tpl (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/install/index.php
r5282 r5348 79 79 // ÆþÎϥǡ¼¥¿¤òÅϤ¹¡£ 80 80 $arrRet = $objDBParam->getHashArray(); 81 // ¥Æ¡¼¥Ö¥ë¤ÎºîÀ® 82 $objPage->arrErr = lfExecuteSQL("./create_table_".$arrRet['db_type'].".sql", $arrRet['db_user'], $arrRet['db_password'], $arrRet['db_server'], $arrRet['db_name'], $arrRet['db_type'], $arrRet['db_port']); 83 if(count($objPage->arrErr) == 0) { 84 $objPage->tpl_message.="¡û¡§¥Æ¡¼¥Ö¥ë¤ÎºîÀ®¤ËÀ®¸ù¤·¤Þ¤·¤¿¡£<br>"; 85 } else { 86 $objPage->tpl_message.="¡ß¡§¥Æ¡¼¥Ö¥ë¤ÎºîÀ®¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£<br>"; 87 } 88 89 // ¥Ó¥å¡¼¤ÎºîÀ® 90 if(count($objPage->arrErr) == 0 and $arrRet['db_type'] == 'pgsql') { 81 82 $skip = $_POST["skip"]; 83 if ($skip == "no") { 84 85 // ¥Æ¡¼¥Ö¥ë¤ÎºîÀ® 86 $objPage->arrErr = lfExecuteSQL("./create_table_".$arrRet['db_type'].".sql", $arrRet['db_user'], $arrRet['db_password'], $arrRet['db_server'], $arrRet['db_name'], $arrRet['db_type'], $arrRet['db_port']); 87 if(count($objPage->arrErr) == 0) { 88 $objPage->tpl_message.="¡û¡§¥Æ¡¼¥Ö¥ë¤ÎºîÀ®¤ËÀ®¸ù¤·¤Þ¤·¤¿¡£<br>"; 89 } else { 90 $objPage->tpl_message.="¡ß¡§¥Æ¡¼¥Ö¥ë¤ÎºîÀ®¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£<br>"; 91 } 92 91 93 // ¥Ó¥å¡¼¤ÎºîÀ® 92 $objPage->arrErr = lfExecuteSQL("./create_view.sql", $arrRet['db_user'], $arrRet['db_password'], $arrRet['db_server'], $arrRet['db_name'], $arrRet['db_type'], $arrRet['db_port']); 94 if(count($objPage->arrErr) == 0 and $arrRet['db_type'] == 'pgsql') { 95 // ¥Ó¥å¡¼¤ÎºîÀ® 96 $objPage->arrErr = lfExecuteSQL("./create_view.sql", $arrRet['db_user'], $arrRet['db_password'], $arrRet['db_server'], $arrRet['db_name'], $arrRet['db_type'], $arrRet['db_port']); 97 if(count($objPage->arrErr) == 0) { 98 $objPage->tpl_message.="¡û¡§¥Ó¥å¡¼¤ÎºîÀ®¤ËÀ®¸ù¤·¤Þ¤·¤¿¡£<br>"; 99 } else { 100 $objPage->tpl_message.="¡ß¡§¥Ó¥å¡¼¤ÎºîÀ®¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£<br>"; 101 } 102 } 103 104 // ½é´ü¥Ç¡¼¥¿¤ÎºîÀ® 93 105 if(count($objPage->arrErr) == 0) { 94 $objPage-> tpl_message.="¡û¡§¥Ó¥å¡¼¤ÎºîÀ®¤ËÀ®¸ù¤·¤Þ¤·¤¿¡£<br>";95 } else{96 $objPage->tpl_message.="¡ß¡§¥Ó¥å¡¼¤ÎºîÀ®¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£<br>";97 }98 }99 100 // ½é´ü¥Ç¡¼¥¿¤ÎºîÀ®101 if(count($objPage->arrErr) == 0) {102 $objPage->arrErr = lfExecuteSQL("./insert_data.sql", $arrRet['db_user'], $arrRet['db_password'], $arrRet['db_server'], $arrRet['db_name'], $arrRet['db_type'], $arrRet['db_port']);106 $objPage->arrErr = lfExecuteSQL("./insert_data.sql", $arrRet['db_user'], $arrRet['db_password'], $arrRet['db_server'], $arrRet['db_name'], $arrRet['db_type'], $arrRet['db_port']); 107 if(count($objPage->arrErr) == 0) { 108 $objPage->tpl_message.="¡û¡§½é´ü¥Ç¡¼¥¿¤ÎºîÀ®¤ËÀ®¸ù¤·¤Þ¤·¤¿¡£<br>"; 109 } else { 110 $objPage->tpl_message.="¡ß¡§½é´ü¥Ç¡¼¥¿¤ÎºîÀ®¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£<br>"; 111 } 112 } 113 114 // ¥«¥é¥à¥³¥á¥ó¥È¤Î½ñ¹þ¤ß 103 115 if(count($objPage->arrErr) == 0) { 104 $objPage-> tpl_message.="¡û¡§½é´ü¥Ç¡¼¥¿¤ÎºîÀ®¤ËÀ®¸ù¤·¤Þ¤·¤¿¡£<br>";105 } else{106 $objPage->tpl_message.="¡ß¡§½é´ü¥Ç¡¼¥¿¤ÎºîÀ®¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£<br>";107 }108 }109 110 // ¥«¥é¥à¥³¥á¥ó¥È¤Î½ñ¹þ¤ß111 if(count($objPage->arrErr) == 0) {112 $objPage->arrErr = lfExecuteSQL("./column_comment.sql", $arrRet['db_user'], $arrRet['db_password'], $arrRet['db_server'], $arrRet['db_name'], $arrRet['db_type'], $arrRet['db_port']);116 $objPage->arrErr = lfExecuteSQL("./column_comment.sql", $arrRet['db_user'], $arrRet['db_password'], $arrRet['db_server'], $arrRet['db_name'], $arrRet['db_type'], $arrRet['db_port']); 117 if(count($objPage->arrErr) == 0) { 118 $objPage->tpl_message.="¡û¡§¥«¥é¥à¥³¥á¥ó¥È¤Î½ñ¹þ¤ß¤ËÀ®¸ù¤·¤Þ¤·¤¿¡£<br>"; 119 } else { 120 $objPage->tpl_message.="¡ß¡§¥«¥é¥à¥³¥á¥ó¥È¤Î½ñ¹þ¤ß¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£<br>"; 121 } 122 } 123 124 // ¥Æ¡¼¥Ö¥ë¥³¥á¥ó¥È¤Î½ñ¹þ¤ß 113 125 if(count($objPage->arrErr) == 0) { 114 $objPage->tpl_message.="¡û¡§¥«¥é¥à¥³¥á¥ó¥È¤Î½ñ¹þ¤ß¤ËÀ®¸ù¤·¤Þ¤·¤¿¡£<br>"; 115 } else { 116 $objPage->tpl_message.="¡ß¡§¥«¥é¥à¥³¥á¥ó¥È¤Î½ñ¹þ¤ß¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£<br>"; 117 } 118 } 119 120 // ¥Æ¡¼¥Ö¥ë¥³¥á¥ó¥È¤Î½ñ¹þ¤ß 121 if(count($objPage->arrErr) == 0) { 122 $objPage->arrErr = lfExecuteSQL("./table_comment.sql", $arrRet['db_user'], $arrRet['db_password'], $arrRet['db_server'], $arrRet['db_name'], $arrRet['db_type'], $arrRet['db_port']); 123 if(count($objPage->arrErr) == 0) { 124 $objPage->tpl_message.="¡û¡§¥Æ¡¼¥Ö¥ë¥³¥á¥ó¥È¤Î½ñ¹þ¤ß¤ËÀ®¸ù¤·¤Þ¤·¤¿¡£<br>"; 125 } else { 126 $objPage->tpl_message.="¡ß¡§¥Æ¡¼¥Ö¥ë¥³¥á¥ó¥È¤Î½ñ¹þ¤ß¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£<br>"; 127 } 128 } 129 126 $objPage->arrErr = lfExecuteSQL("./table_comment.sql", $arrRet['db_user'], $arrRet['db_password'], $arrRet['db_server'], $arrRet['db_name'], $arrRet['db_type'], $arrRet['db_port']); 127 if(count($objPage->arrErr) == 0) { 128 $objPage->tpl_message.="¡û¡§¥Æ¡¼¥Ö¥ë¥³¥á¥ó¥È¤Î½ñ¹þ¤ß¤ËÀ®¸ù¤·¤Þ¤·¤¿¡£<br>"; 129 } else { 130 $objPage->tpl_message.="¡ß¡§¥Æ¡¼¥Ö¥ë¥³¥á¥ó¥È¤Î½ñ¹þ¤ß¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£<br>"; 131 } 132 } 133 } 134 130 135 if(count($objPage->arrErr) == 0) { 131 136 // ÀßÄê¥Õ¥¡¥¤¥ë¤ÎÀ¸À®
Note: See TracChangeset
for help on using the changeset viewer.
