Ignore:
Timestamp:
2006/08/28 11:54:29 (20 years ago)
Author:
naka
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/data/lib/slib.php

    r1970 r2186  
    2323function sfLoadUpdateModule() { 
    2424    //DB¤«¤éÀßÄê¾ðÊó¤ò¼èÆÀ 
    25     $objConn = new SC_DbConn(DEFAULT_DSN); 
    26     $arrRet = $objConn->getAll("SELECT extern_php FROM dtb_update WHERE main_php = ?",array($_SERVER['PHP_SELF'])); 
    27          
    28     if($arrRet[0]['extern_php'] != "") { 
    29         $path = ROOT_DIR . $arrRet[0]['extern_php']; 
    30         if(file_exists($path)) { 
    31             require_once($path); 
     25    if(defined('DB_USER') && defined('DB_PASSWORD') && defined('DB_SERVER') && defined('DB_NAME')) { 
     26        $objConn = new SC_DbConn(DEFAULT_DSN); 
     27        $arrRet = $objConn->getAll("SELECT extern_php FROM dtb_update WHERE main_php = ?",array($_SERVER['PHP_SELF'])); 
     28             
     29        if($arrRet[0]['extern_php'] != "") { 
     30            $path = ROOT_DIR . $arrRet[0]['extern_php']; 
     31            if(file_exists($path)) { 
     32                require_once($path); 
     33            } 
    3234        } 
    3335    } 
Note: See TracChangeset for help on using the changeset viewer.