Changeset 3411 for temp/trunk/data/lib


Ignore:
Timestamp:
2006/08/31 09:29:33 (20 years ago)
Author:
naka
Message:

* empty log message *

File:
1 edited

Legend:

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

    r3375 r3411  
    3535    if(ereg("^/install/", $_SERVER['PHP_SELF'])) { 
    3636        return; 
    37     } 
    38          
     37    }        
    3938    //DB¤«¤éÀßÄê¾ðÊó¤ò¼èÆÀ 
    4039    if(defined('DB_USER') && defined('DB_PASSWORD') && defined('DB_SERVER') && defined('DB_NAME')) { 
    4140        $objConn = new SC_DbConn(DEFAULT_DSN); 
    42         $arrRet = $objConn->getAll("SELECT extern_php FROM dtb_update WHERE main_php = ?",array($_SERVER['PHP_SELF'])); 
    43              
    44         if($arrRet[0]['extern_php'] != "") { 
    45             $path = ROOT_DIR . $arrRet[0]['extern_php']; 
    46             if(file_exists($path)) { 
    47                 require_once($path); 
     41        // ºÇ½é¤Ë¼Â¹Ô¤¹¤ëPHP¥½¡¼¥¹¤ò¸¡º÷¤¹¤ë 
     42        $arrRet = $objConn->getAll("SELECT extern_php FROM dtb_update WHERE main_php = ? OR main_php IS NULL",array($_SERVER['PHP_SELF'])); 
     43        foreach($arrRet as $array) { 
     44            if($array['extern_php'] != "") { 
     45                $path = ROOT_DIR . $array['extern_php']; 
     46                if(file_exists($path)) { 
     47                    require_once($path); 
     48                } 
    4849            } 
    4950        } 
Note: See TracChangeset for help on using the changeset viewer.