Changeset 6262 for temp/trunk/html


Ignore:
Timestamp:
2006/10/13 13:14:41 (20 years ago)
Author:
naka
Message:

* empty log message *

File:
1 edited

Legend:

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

    r6261 r6262  
    533533        $options['debug'] = PEAR_DB_DEBUG; 
    534534        $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 { 
    537540            $objErr->arrErr['all'] = ">> " . $objDB->message . "<br>"; 
    538541            // ¥¨¥é¡¼Ê¸¤ò¼èÆÀ¤¹¤ë 
     
    540543            $objErr->arrErr['all'].= $arrKey[0] . "<br>"; 
    541544            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             } 
    556545        } 
    557546    } 
Note: See TracChangeset for help on using the changeset viewer.