Changeset 6262 for temp/trunk/html
- Timestamp:
- 2006/10/13 13:14:41 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/install/index.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/install/index.php
r6261 r6262 533 533 $options['debug'] = PEAR_DB_DEBUG; 534 534 $objDB = DB::connect($dsn, $options); 535 // Àܳ¥¨¥é¡¼ 536 if(PEAR::isError($objDB)) { 535 // ÀܳÀ®¸ù 536 if(!PEAR::isError($objDB)) { 537 // ¥Ç¡¼¥¿¥Ù¡¼¥¹¥Ð¡¼¥¸¥ç¥ó¾ðÊó¤Î¼èÆÀ 538 $objPage->tpl_db_version = sfGetDBVersion($dsn); 539 } else { 537 540 $objErr->arrErr['all'] = ">> " . $objDB->message . "<br>"; 538 541 // ¥¨¥é¡¼Ê¸¤ò¼èÆÀ¤¹¤ë … … 540 543 $objErr->arrErr['all'].= $arrKey[0] . "<br>"; 541 544 gfPrintLog($objDB->userinfo, "./temp/install.log"); 542 } else {543 if($arrRet['db_type'] == 'mysql') {544 $arrRet = $objDB->getAll("SHOW VARIABLES");545 foreach($arrRet as $array) {546 if($array[0] == 'version') {547 $objPage->tpl_db_version = "MySQL " . $array[1];548 }549 }550 }551 if($arrRet['db_type'] == 'pgsql') {552 $arrRet = $objDB->getAll("select version()");553 $arrLine = split(" " , $arrRet[0][0]);554 $objPage->tpl_db_version = $arrLine[0] . " " . $arrLine[1];555 }556 545 } 557 546 }
Note: See TracChangeset
for help on using the changeset viewer.
