- Timestamp:
- 2006/10/27 21:59:31 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/install/index.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/install/index.php
r6980 r6988 8 8 $INSTALL_DIR = realpath(dirname( __FILE__)); 9 9 require_once("../../data/module/Request.php"); 10 11 define("INSTALL_LOG", "./temp/install.log"); 10 12 11 13 class LC_Page { … … 619 621 ereg("\[(.*)\]", $objDB->userinfo, $arrKey); 620 622 $objErr->arrErr['all'].= $arrKey[0] . "<br>"; 621 gfPrintLog($objDB->userinfo, "./temp/install.log");623 gfPrintLog($objDB->userinfo, INSTALL_LOG); 622 624 } 623 625 } … … 653 655 $arrErr['all'].= $arrKey[0] . "<br>"; 654 656 $objPage->update_mess.=">> ¥Æ¡¼¥Ö¥ë¹½À®¤ÎÊѹ¹¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£<br>"; 655 gfPrintLog($ret->userinfo, "./temp/install.log");657 gfPrintLog($ret->userinfo, INSTALL_LOG); 656 658 } 657 659 } … … 659 661 } else { 660 662 $arrErr['all'] = ">> " . $objDB->message; 661 gfPrintLog($objDB->userinfo, "./temp/install.log");663 gfPrintLog($objDB->userinfo, INSTALL_LOG); 662 664 } 663 665 } … … 727 729 return $arrErr; 728 730 } 731 732 // ¥Æ¡¼¥Ö¥ë¤Îºï½ü¡Ê´û¤Ë¥Æ¡¼¥Ö¥ë¤¬Â¸ºß¤¹¤ë¾ì¹ç¤Î¤ßºï½ü¤¹¤ë¡Ë 733 function lfDropTable($table_name, $dsn) { 734 $arrErr = array(); 735 if(sfTabaleExists($table_name, $dsn)) { 736 // Debug¥â¡¼¥É»ØÄê 737 $options['debug'] = PEAR_DB_DEBUG; 738 $objDB = DB::connect($dsn, $options); 739 // ÀܳÀ®¸ù 740 if(!PEAR::isError($objDB)) { 741 $objDB->query("DROP TABLE " . $table_name); 742 } else { 743 $arrErr['all'] = ">> " . $objDB->message . "<br>"; 744 // ¥¨¥é¡¼Ê¸¤ò¼èÆÀ¤¹¤ë 745 ereg("\[(.*)\]", $objDB->userinfo, $arrKey); 746 $arrErr['all'].= $arrKey[0] . "<br>"; 747 gfPrintLog($objDB->userinfo, INSTALL_LOG); 748 } 749 } 750 return $arrErr; 751 } 752 729 753 ?>
Note: See TracChangeset
for help on using the changeset viewer.
