60 Star 159 Fork 70

铂金小猪 / ZhaoCaiZhu

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
global.php 534 Bytes
一键复制 编辑 Web IDE 原始数据 按行查看 历史
<?php
define("ROOT", dirname(__FILE__));
define("ROOT_APP", ROOT."/app");
define("ROOT_CONFIG", ROOT."/config");
define("ROOT_SLIGHTPHP", ROOT."/slightPHP/");
define("ROOT_PLIGUNS", ROOT_SLIGHTPHP."/plugins");
require_once(ROOT_SLIGHTPHP."/SlightPHP.php");
function __autoload($class){
if($class{0}=="S"){
$file = ROOT_PLIGUNS."/$class.class.php";
}else{
$file = SlightPHP::$appDir."/".str_replace("_","/",$class).".class.php";
}
if(file_exists($file)) return require_once($file);
}
spl_autoload_register('__autoload');
PHP
1
https://gitee.com/ljt365fir/ZhaoCaiZhu.git
git@gitee.com:ljt365fir/ZhaoCaiZhu.git
ljt365fir
ZhaoCaiZhu
ZhaoCaiZhu
master

搜索帮助

14c37bed 8189591 565d56ea 8189591