Changeset 3411 for temp/trunk/data/lib
- Timestamp:
- 2006/08/31 09:29:33 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/data/lib/slib.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/data/lib/slib.php
r3375 r3411 35 35 if(ereg("^/install/", $_SERVER['PHP_SELF'])) { 36 36 return; 37 } 38 37 } 39 38 //DB¤«¤éÀßÄê¾ðÊó¤ò¼èÆÀ 40 39 if(defined('DB_USER') && defined('DB_PASSWORD') && defined('DB_SERVER') && defined('DB_NAME')) { 41 40 $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 } 48 49 } 49 50 }
Note: See TracChangeset
for help on using the changeset viewer.
