Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
global.php 534 Bytes
Copy Edit Raw Blame History
<?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');
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化