Changeset 6232 for temp/trunk/data/lib


Ignore:
Timestamp:
2006/10/13 11:26:43 (20 years ago)
Author:
naka
Message:

* empty log message *

File:
1 edited

Legend:

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

    r6225 r6232  
    7878    }        
    7979    //DB¤«¤éÀßÄê¾ðÊó¤ò¼èÆÀ 
    80     if(defined('DB_USER') && defined('DB_PASSWORD') && defined('DB_SERVER') && defined('DB_NAME')) { 
    81         /* 
    82         $objConn = new SC_DbConn(DEFAULT_DSN); 
    83         // ºÇ½é¤Ë¼Â¹Ô¤¹¤ëPHP¥½¡¼¥¹¤ò¸¡º÷¤¹¤ë 
    84         $arrRet = $objConn->getAll("SELECT extern_php FROM dtb_update WHERE main_php = ? OR main_php = '*'",array($_SERVER['PHP_SELF'])); 
    85         foreach($arrRet as $array) { 
    86             if($array['extern_php'] != "") { 
    87                 $path = DATA_PATH . $array['extern_php']; 
    88                 if(file_exists($path)) { 
    89                     require_once($path); 
     80    if(defined('DEFAULT_DSN')) { 
     81        if(sfTabaleExists('dtb_update')) { 
     82            $objConn = new SC_DbConn(); 
     83            // ºÇ½é¤Ë¼Â¹Ô¤¹¤ëPHP¥½¡¼¥¹¤ò¸¡º÷¤¹¤ë 
     84            $arrRet = $objConn->getAll("SELECT extern_php FROM dtb_update WHERE main_php = ? OR main_php = '*'",array($_SERVER['PHP_SELF'])); 
     85            foreach($arrRet as $array) { 
     86                if($array['extern_php'] != "") { 
     87                    $path = DATA_PATH . $array['extern_php']; 
     88                    if(file_exists($path)) { 
     89                        require_once($path); 
     90                    } 
    9091                } 
    9192            } 
    9293        } 
    93         */ 
    9494    } 
    9595} 
Note: See TracChangeset for help on using the changeset viewer.