35 Star 70 Fork 45

齐迹 / smpss

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
global.php 534 Bytes
一键复制 编辑 原始数据 按行查看 历史
qiji 提交于 2015-03-27 11:38 . add
<?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/qiji/smpss.git
git@gitee.com:qiji/smpss.git
qiji
smpss
smpss
master

搜索帮助