//var_export( $cfg_sec ); $arr_path_model[] = $cfg_sec["PATH_MODEL"]; $arr_path_model = array_unique($arr_path_model); $arr_path_lib[] = $cfg_sec["PATH_LIB"]; $arr_path_lib = array_unique($arr_path_lib); } //set_include_path(implode(INC_SPLIT,$arr_path_model).INC_SPLIT.implode(INC_SPLIT,$arr_path_lib).INC_SPLIT.get_include_path()); //set_include_path( $cfg["PATH_LIB"].INC_SPLIT.PATH_LIB."model/" ); } else { set_include_path($cfg_pri["PATH_LIB"] . INC_SPLIT . get_include_path()); //set_include_path($cfg_pri["PATH_LIB"].INC_SPLIT.$cfg_pri["PATH_MODEL"].INC_SPLIT.get_include_path()); //to reduce system load } //echo get_include_path(); /** * 基本的环境管理和类管理 需PHP5 */ require_once $cfg_pri["PATH_LIB"] . 'Pft.php'; //======================================== /** * 实现在创建对象时,自动加载类定义,即不用include Class文件 Only PHP5 */ function __autoload($class) { Pft::loadClass($class); /*Pft::loadclass2($class);*/ } Pft_Config::setPrimaryConfig($cfg_pri); if (defined("MULTI_SYSPATH_MODE") && isset($cfg_sec)) { Pft_Config::setSecondaryConfig($cfg_sec); }