1 Star 0 Fork 16

wkang/phpfun

forked from ownfire/phpfun 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
init.php 566 Bytes
一键复制 编辑 原始数据 按行查看 历史
ownfire 提交于 2014-06-27 15:42 +08:00 . 1
<?php
if (FUN_DEBUG){
ini_set('display_errors', true);
error_reporting(E_ALL);
}else{
ini_set('display_errors', false);
error_reporting(0);
}
require_once FUN_LIB.'common.php';
$libs = glob(FUN_EXT.'*.php');
$libs = array_map('realpath',$libs);
array_walk($libs,'req_once');
//auto_load
if (!function_exists('lib_autoload')){
function lib_autoload($name){
$file = FUN_CLASS.'class_'.strtolower($name).EXT;
if (!is_file($file))
return false;
include_once $file;
}
}
spl_autoload_register('lib_autoload');
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wkang/phpfun.git
git@gitee.com:wkang/phpfun.git
wkang
phpfun
phpfun
master

搜索帮助