food_server/flyCube.php
tk e8f9a1cb4d 【类 型】:refactor
【主	题】:入口文件引入 公共函数文件
【描	述】:
	[原因]:
	[过程]:
	[影响]:
【结	束】

# 类型 包含:
# feat:新功能(feature)
# fix:修补bug
# docs:文档(documentation)
# style: 格式(不影响代码运行的变动)
# refactor:重构(即不是新增功能,也不是修改bug的代码变动)
# test:增加测试
# chore:构建过程或辅助工具的变动
2024-06-12 16:33:18 +08:00

47 lines
1.5 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/*
* @Author: 4021673@qq.com
* @Date: 2022-05-27 23:52:59
* @LastEditTime: 2024-06-12 16:32:23
* @Description: Do not edit
*/
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// | vesion3.2.3
// +----------------------------------------------------------------------
// 应用入口文件
//设定utf8编码格式
header("Content-Type:text/html; charset=utf-8");
//更新时区
date_default_timezone_set(
'PRC'
);
//设置时区
date_default_timezone_set('Asia/Shanghai');
// 检测PHP环境
if (version_compare(PHP_VERSION, '5.3.0', '<')) die('require PHP > 5.3.0 !');
// 开启调试模式 建议开发阶段开启 部署阶段注释或者设为false
define('APP_DEBUG', True);
// 定义应用名字+目录
define('APP_NAME', 'FlyCube');
define('APP_PATH', './FlyCube/');
// 引入Composer生成的自动加载器文件
require __DIR__ . '/vendor/autoload.php';
// 引入公共函数文件
require_once APP_PATH . 'Common/Common/functions.php';
// 引入ThinkPHP入口文件
require './ThinkPHP/ThinkPHP.php';