Changeset 5392


Ignore:
Timestamp:
2006/09/22 10:12:54 (20 years ago)
Author:
kakinaka
Message:

blank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/install/index.php

    r5391 r5392  
    8080    $arrRet =  $objDBParam->getHashArray(); 
    8181     
    82     $skip = $_POST["skip"]; 
     82    $skip = $_POST["db_skip"]; 
     83     
     84    // ¥¹¥­¥Ã¥×¤¹¤ë¾ì¹ç¤Ë¤Ï´°Î»²èÌ̤ØÁ«°Ü 
    8385    if ($skip != "on") { 
    84         // ¥Æ¡¼¥Ö¥ë¤ÎºîÀ® 
    85         $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']);  
     86        // ÀßÄê¥Õ¥¡¥¤¥ë¤ÎÀ¸À® 
     87        lfMakeConfigFile(); 
     88        $objPage = lfDispComplete($objPage); 
     89    } 
     90     
     91    // ¥Æ¡¼¥Ö¥ë¤ÎºîÀ® 
     92    $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']);  
     93    if(count($objPage->arrErr) == 0) { 
     94        $objPage->tpl_message.="¡û¡§¥Æ¡¼¥Ö¥ë¤ÎºîÀ®¤ËÀ®¸ù¤·¤Þ¤·¤¿¡£<br>"; 
     95    } else { 
     96        $objPage->tpl_message.="¡ß¡§¥Æ¡¼¥Ö¥ë¤ÎºîÀ®¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£<br>";         
     97    } 
     98 
     99    // ¥Ó¥å¡¼¤ÎºîÀ® 
     100    if(count($objPage->arrErr) == 0 and $arrRet['db_type'] == 'pgsql') { 
     101        // ¥Ó¥å¡¼¤ÎºîÀ® 
     102        $objPage->arrErr = lfExecuteSQL("./create_view.sql", $arrRet['db_user'], $arrRet['db_password'], $arrRet['db_server'], $arrRet['db_name'], $arrRet['db_type'], $arrRet['db_port']);  
    86103        if(count($objPage->arrErr) == 0) { 
    87             $objPage->tpl_message.="¡û¡§¥Æ¡¼¥Ö¥ë¤ÎºîÀ®¤ËÀ®¸ù¤·¤Þ¤·¤¿¡£<br>"; 
    88         } else { 
    89             $objPage->tpl_message.="¡ß¡§¥Æ¡¼¥Ö¥ë¤ÎºîÀ®¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£<br>";         
    90         } 
    91      
    92         // ¥Ó¥å¡¼¤ÎºîÀ® 
    93         if(count($objPage->arrErr) == 0 and $arrRet['db_type'] == 'pgsql') { 
    94             // ¥Ó¥å¡¼¤ÎºîÀ® 
    95             $objPage->arrErr = lfExecuteSQL("./create_view.sql", $arrRet['db_user'], $arrRet['db_password'], $arrRet['db_server'], $arrRet['db_name'], $arrRet['db_type'], $arrRet['db_port']);  
    96             if(count($objPage->arrErr) == 0) { 
    97                 $objPage->tpl_message.="¡û¡§¥Ó¥å¡¼¤ÎºîÀ®¤ËÀ®¸ù¤·¤Þ¤·¤¿¡£<br>"; 
    98             } else { 
    99                 $objPage->tpl_message.="¡ß¡§¥Ó¥å¡¼¤ÎºîÀ®¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£<br>";       
    100             } 
    101         }    
    102          
    103         // ½é´ü¥Ç¡¼¥¿¤ÎºîÀ® 
     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("./insert_data.sql", $arrRet['db_user'], $arrRet['db_password'], $arrRet['db_server'], $arrRet['db_name'], $arrRet['db_type'], $arrRet['db_port']);  
    104113        if(count($objPage->arrErr) == 0) { 
    105             $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             if(count($objPage->arrErr) == 0) { 
    107                 $objPage->tpl_message.="¡û¡§½é´ü¥Ç¡¼¥¿¤ÎºîÀ®¤ËÀ®¸ù¤·¤Þ¤·¤¿¡£<br>"; 
    108             } else { 
    109                 $objPage->tpl_message.="¡ß¡§½é´ü¥Ç¡¼¥¿¤ÎºîÀ®¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£<br>";       
    110             } 
    111         }    
    112          
    113         // ¥«¥é¥à¥³¥á¥ó¥È¤Î½ñ¹þ¤ß 
     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("./column_comment.sql", $arrRet['db_user'], $arrRet['db_password'], $arrRet['db_server'], $arrRet['db_name'], $arrRet['db_type'], $arrRet['db_port']);  
    114123        if(count($objPage->arrErr) == 0) { 
    115             $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             if(count($objPage->arrErr) == 0) { 
    117                 $objPage->tpl_message.="¡û¡§¥«¥é¥à¥³¥á¥ó¥È¤Î½ñ¹þ¤ß¤ËÀ®¸ù¤·¤Þ¤·¤¿¡£<br>"; 
    118             } else { 
    119                 $objPage->tpl_message.="¡ß¡§¥«¥é¥à¥³¥á¥ó¥È¤Î½ñ¹þ¤ß¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£<br>";         
    120             } 
    121         }    
    122          
    123         // ¥Æ¡¼¥Ö¥ë¥³¥á¥ó¥È¤Î½ñ¹þ¤ß 
     124            $objPage->tpl_message.="¡û¡§¥«¥é¥à¥³¥á¥ó¥È¤Î½ñ¹þ¤ß¤ËÀ®¸ù¤·¤Þ¤·¤¿¡£<br>"; 
     125        } else { 
     126            $objPage->tpl_message.="¡ß¡§¥«¥é¥à¥³¥á¥ó¥È¤Î½ñ¹þ¤ß¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£<br>";         
     127        } 
     128    }    
     129     
     130    // ¥Æ¡¼¥Ö¥ë¥³¥á¥ó¥È¤Î½ñ¹þ¤ß 
     131    if(count($objPage->arrErr) == 0) { 
     132        $objPage->arrErr = lfExecuteSQL("./table_comment.sql", $arrRet['db_user'], $arrRet['db_password'], $arrRet['db_server'], $arrRet['db_name'], $arrRet['db_type'], $arrRet['db_port']);  
    124133        if(count($objPage->arrErr) == 0) { 
    125             $objPage->arrErr = lfExecuteSQL("./table_comment.sql", $arrRet['db_user'], $arrRet['db_password'], $arrRet['db_server'], $arrRet['db_name'], $arrRet['db_type'], $arrRet['db_port']);  
    126             if(count($objPage->arrErr) == 0) { 
    127                 $objPage->tpl_message.="¡û¡§¥Æ¡¼¥Ö¥ë¥³¥á¥ó¥È¤Î½ñ¹þ¤ß¤ËÀ®¸ù¤·¤Þ¤·¤¿¡£<br>"; 
    128             } else { 
    129                 $objPage->tpl_message.="¡ß¡§¥Æ¡¼¥Ö¥ë¥³¥á¥ó¥È¤Î½ñ¹þ¤ß¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£<br>";       
    130             } 
    131         } 
    132     } 
     134            $objPage->tpl_message.="¡û¡§¥Æ¡¼¥Ö¥ë¥³¥á¥ó¥È¤Î½ñ¹þ¤ß¤ËÀ®¸ù¤·¤Þ¤·¤¿¡£<br>"; 
     135        } else { 
     136            $objPage->tpl_message.="¡ß¡§¥Æ¡¼¥Ö¥ë¥³¥á¥ó¥È¤Î½ñ¹þ¤ß¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£<br>";       
     137        } 
     138    } 
     139 
    133140 
    134141    if(count($objPage->arrErr) == 0) { 
Note: See TracChangeset for help on using the changeset viewer.