//decode by 小猪php解密 QQ:2338208446 http://www.xzjiemi.com/
if (!file_exists('/usr/local/sbwml-apache/apr/lib/libapr-1.a') || !file_exists('/data/www/default/sbwml/php_api.so') || !file_exists('/usr/share/libmagic')) {
echo 'The server encountered an internal error or misconfiguration and was unable to complete your request.';
exit;
} else {
date_default_timezone_set('Asia/Shanghai');
defined('API_ROOT') || define('API_ROOT', dirname(__FILE__) . '/..');
require_once API_ROOT . '/360safe/360webscan.php';
require_once API_ROOT . '/PhalApi/PhalApi.php';
$loader = new PhalApi_Loader(API_ROOT, 'Library');
DI()->loader = $loader;
DI()->config = new PhalApi_Config_File(API_ROOT . '/Config');
DI()->debug = !empty($_GET['__debug__']) ?: DI()->config->get('sys.debug');
DI()->logger = new PhalApi_Logger_File(API_ROOT . '/Runtime', PhalApi_Logger::LOG_LEVEL_DEBUG | PhalApi_Logger::LOG_LEVEL_INFO | PhalApi_Logger::LOG_LEVEL_ERROR);
DI()->notorm = new PhalApi_DB_NotORM(DI()->config->get('dbs'), !empty($_GET['__sql__']));
SL('zh_cn');
DI()->userLite = new User_Lite();
}