Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
鹿
鹿马108官网
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xieyishang
鹿马108官网
Commits
6168a56e
Commit
6168a56e
authored
Mar 15, 2021
by
xieyishang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11~
parent
b78116cf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
355 deletions
+0
-355
application/config.php
application/config.php
+0
-299
application/database.php
application/database.php
+0
-56
No files found.
application/config.php
deleted
100644 → 0
View file @
b78116cf
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use
think\Env
;
return
[
// +----------------------------------------------------------------------
// | 应用设置
// +----------------------------------------------------------------------
// 应用命名空间
'app_namespace'
=>
'app'
,
// 应用调试模式
'app_debug'
=>
true
,
//Env::get('app.debug', false),
// 应用Trace
'app_trace'
=>
Env
::
get
(
'app.trace'
,
false
),
// 应用模式状态
'app_status'
=>
''
,
// 是否支持多模块
'app_multi_module'
=>
true
,
// 入口自动绑定模块
'auto_bind_module'
=>
false
,
// 注册的根命名空间
'root_namespace'
=>
[],
// 扩展函数文件
'extra_file_list'
=>
[
THINK_PATH
.
'helper'
.
EXT
],
// 默认输出类型
'default_return_type'
=>
'html'
,
// 默认AJAX 数据返回格式,可选json xml ...
'default_ajax_return'
=>
'json'
,
// 默认JSONP格式返回的处理方法
'default_jsonp_handler'
=>
'jsonpReturn'
,
// 默认JSONP处理方法
'var_jsonp_handler'
=>
'callback'
,
// 默认时区
'default_timezone'
=>
'PRC'
,
// 是否开启多语言
'lang_switch_on'
=>
true
,
// 默认全局过滤方法 用逗号分隔多个
'default_filter'
=>
''
,
// 默认语言
'default_lang'
=>
'zh-cn'
,
// 应用类库后缀
'class_suffix'
=>
false
,
// 控制器类后缀
'controller_suffix'
=>
false
,
// 获取IP的变量
'http_agent_ip'
=>
'REMOTE_ADDR'
,
// +----------------------------------------------------------------------
// | 模块设置
// +----------------------------------------------------------------------
// 默认模块名
'default_module'
=>
'index'
,
// 禁止访问模块
'deny_module_list'
=>
[
'common'
,
'admin'
],
// 默认控制器名
'default_controller'
=>
'Index'
,
// 默认操作名
'default_action'
=>
'index'
,
// 默认验证器
'default_validate'
=>
''
,
// 默认的空控制器名
'empty_controller'
=>
'Error'
,
// 操作方法后缀
'action_suffix'
=>
''
,
// 自动搜索控制器
'controller_auto_search'
=>
true
,
// +----------------------------------------------------------------------
// | URL设置
// +----------------------------------------------------------------------
// PATHINFO变量名 用于兼容模式
'var_pathinfo'
=>
's'
,
// 兼容PATH_INFO获取
'pathinfo_fetch'
=>
[
'ORIG_PATH_INFO'
,
'REDIRECT_PATH_INFO'
,
'REDIRECT_URL'
],
// pathinfo分隔符
'pathinfo_depr'
=>
'/'
,
// URL伪静态后缀
'url_html_suffix'
=>
'html'
,
// URL普通方式参数 用于自动生成
'url_common_param'
=>
false
,
// URL参数方式 0 按名称成对解析 1 按顺序解析
'url_param_type'
=>
0
,
// 是否开启路由
'url_route_on'
=>
true
,
// 路由使用完整匹配
'route_complete_match'
=>
false
,
// 路由配置文件(支持配置多个)
'route_config_file'
=>
[
'route'
],
// 是否强制使用路由
'url_route_must'
=>
false
,
// 域名部署
'url_domain_deploy'
=>
false
,
// 域名根,如thinkphp.cn
'url_domain_root'
=>
''
,
// 是否自动转换URL中的控制器和操作名
'url_convert'
=>
true
,
// 默认的访问控制器层
'url_controller_layer'
=>
'controller'
,
// 表单请求类型伪装变量
'var_method'
=>
'_method'
,
// 表单ajax伪装变量
'var_ajax'
=>
'_ajax'
,
// 表单pjax伪装变量
'var_pjax'
=>
'_pjax'
,
// 是否开启请求缓存 true自动缓存 支持设置请求缓存规则
'request_cache'
=>
false
,
// 请求缓存有效期
'request_cache_expire'
=>
null
,
// +----------------------------------------------------------------------
// | 模板设置
// +----------------------------------------------------------------------
'template'
=>
[
// 模板引擎类型 支持 php think 支持扩展
'type'
=>
'Think'
,
// 模板路径
'view_path'
=>
''
,
// 模板后缀
'view_suffix'
=>
'html'
,
// 模板文件名分隔符
'view_depr'
=>
DS
,
// 模板引擎普通标签开始标记
'tpl_begin'
=>
'{'
,
// 模板引擎普通标签结束标记
'tpl_end'
=>
'}'
,
// 标签库标签开始标记
'taglib_begin'
=>
'{'
,
// 标签库标签结束标记
'taglib_end'
=>
'}'
,
'tpl_cache'
=>
true
,
],
// 视图输出字符串内容替换,留空则会自动进行计算
'view_replace_str'
=>
[
'__PUBLIC__'
=>
''
,
'__ROOT__'
=>
''
,
'__CDN__'
=>
''
,
],
// 默认跳转页面对应的模板文件
'dispatch_success_tmpl'
=>
APP_PATH
.
'common'
.
DS
.
'view'
.
DS
.
'tpl'
.
DS
.
'dispatch_jump.tpl'
,
'dispatch_error_tmpl'
=>
APP_PATH
.
'common'
.
DS
.
'view'
.
DS
.
'tpl'
.
DS
.
'dispatch_jump.tpl'
,
// +----------------------------------------------------------------------
// | 异常及错误设置
// +----------------------------------------------------------------------
// 异常页面的模板文件
'exception_tmpl'
=>
APP_PATH
.
'common'
.
DS
.
'view'
.
DS
.
'tpl'
.
DS
.
'think_exception.tpl'
,
// 错误显示信息,非调试模式有效
'error_message'
=>
'你所浏览的页面暂时无法访问'
,
// 显示错误信息
'show_error_msg'
=>
false
,
// 异常处理handle类 留空使用 \think\exception\Handle
'exception_handle'
=>
''
,
// +----------------------------------------------------------------------
// | 日志设置
// +----------------------------------------------------------------------
'log'
=>
[
// 日志记录方式,内置 file socket 支持扩展
'type'
=>
'File'
,
// 日志保存目录
'path'
=>
LOG_PATH
,
// 日志记录级别
'level'
=>
[],
],
// +----------------------------------------------------------------------
// | Trace设置 开启 app_trace 后 有效
// +----------------------------------------------------------------------
'trace'
=>
[
// 内置Html Console 支持扩展
'type'
=>
'Html'
,
],
// +----------------------------------------------------------------------
// | 缓存设置
// +----------------------------------------------------------------------
'cache'
=>
[
// 驱动方式
'type'
=>
'File'
,
// 缓存保存目录
'path'
=>
CACHE_PATH
,
// 缓存前缀
'prefix'
=>
''
,
// 缓存有效期 0表示永久缓存
'expire'
=>
0
,
],
// +----------------------------------------------------------------------
// | 会话设置
// +----------------------------------------------------------------------
'session'
=>
[
'id'
=>
''
,
// SESSION_ID的提交变量,解决flash上传跨域
'var_session_id'
=>
''
,
// SESSION 前缀
'prefix'
=>
'think'
,
// 驱动方式 支持redis memcache memcached
'type'
=>
''
,
// 是否自动开启 SESSION
'auto_start'
=>
true
,
],
// +----------------------------------------------------------------------
// | Cookie设置
// +----------------------------------------------------------------------
'cookie'
=>
[
// cookie 名称前缀
'prefix'
=>
''
,
// cookie 保存时间
'expire'
=>
0
,
// cookie 保存路径
'path'
=>
'/'
,
// cookie 有效域名
'domain'
=>
''
,
// cookie 启用安全传输
'secure'
=>
false
,
// httponly设置
'httponly'
=>
''
,
// 是否使用 setcookie
'setcookie'
=>
true
,
],
//分页配置
'paginate'
=>
[
'type'
=>
'bootstrap'
,
'var_page'
=>
'page'
,
'list_rows'
=>
15
,
],
//验证码配置
'captcha'
=>
[
// 验证码字符集合
'codeSet'
=>
'2345678abcdefhijkmnpqrstuvwxyzABCDEFGHJKLMNPQRTUVWXY'
,
// 验证码字体大小(px)
'fontSize'
=>
18
,
// 是否画混淆曲线
'useCurve'
=>
false
,
//使用中文验证码
'useZh'
=>
false
,
// 验证码图片高度
'imageH'
=>
40
,
// 验证码图片宽度
'imageW'
=>
130
,
// 验证码位数
'length'
=>
4
,
// 验证成功后是否重置
'reset'
=>
true
],
// +----------------------------------------------------------------------
// | Token设置
// +----------------------------------------------------------------------
'token'
=>
[
// 驱动方式
'type'
=>
'Mysql'
,
// 缓存前缀
'key'
=>
'OR4UP3eYEMr8T10twildxmC29WDzQpjg'
,
// 加密方式
'hashalgo'
=>
'ripemd160'
,
// 缓存有效期 0表示永久缓存
'expire'
=>
0
,
],
//FastAdmin配置
'fastadmin'
=>
[
//是否开启前台会员中心
'usercenter'
=>
true
,
//会员注册验证码类型email/mobile/wechat/text/false
'user_register_captcha'
=>
'text'
,
//登录验证码
'login_captcha'
=>
true
,
//登录失败超过10次则1天后重试
'login_failure_retry'
=>
true
,
//是否同一账号同一时间只能在一个地方登录
'login_unique'
=>
false
,
//是否开启IP变动检测
'loginip_check'
=>
true
,
//登录页默认背景图
'login_background'
=>
""
,
//是否启用多级菜单导航
'multiplenav'
=>
false
,
//是否开启多选项卡(仅在开启多级菜单时起作用)
'multipletab'
=>
true
,
//后台皮肤,为空时表示使用skin-black-green
'adminskin'
=>
''
,
//后台是否启用面包屑
'breadcrumb'
=>
false
,
//是否允许未知来源的插件压缩包
'unknownsources'
=>
false
,
//插件启用禁用时是否备份对应的全局文件
'backup_global_files'
=>
true
,
//是否开启后台自动日志记录
'auto_record_log'
=>
true
,
//插件纯净模式,插件启用后是否删除插件目录的application、public和assets文件夹
'addon_pure_mode'
=>
true
,
//允许跨域的域名,多个以,分隔
'cors_request_domain'
=>
'localhost,127.0.0.1'
,
//版本号
'version'
=>
'1.2.0.20210125_beta'
,
//API接口地址
'api_url'
=>
'https://api.fastadmin.net'
,
],
];
application/database.php
deleted
100644 → 0
View file @
b78116cf
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use
think\Env
;
return
[
// 数据库类型
'type'
=>
Env
::
get
(
'database.type'
,
'mysql'
),
// 服务器地址
'hostname'
=>
Env
::
get
(
'database.hostname'
,
'127.0.0.1'
),
// 数据库名
'database'
=>
Env
::
get
(
'database.database'
,
'luma_website'
),
// 用户名
'username'
=>
Env
::
get
(
'database.username'
,
'root'
),
// 密码
'password'
=>
Env
::
get
(
'database.password'
,
'root'
),
// 端口
'hostport'
=>
Env
::
get
(
'database.hostport'
,
''
),
// 连接dsn
'dsn'
=>
''
,
// 数据库连接参数
'params'
=>
[],
// 数据库编码默认采用 utf8mb4
'charset'
=>
Env
::
get
(
'database.charset'
,
'utf8mb4'
),
// 数据库表前缀
'prefix'
=>
Env
::
get
(
'database.prefix'
,
'fa_'
),
// 数据库调试模式
'debug'
=>
Env
::
get
(
'database.debug'
,
false
),
// 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器)
'deploy'
=>
0
,
// 数据库读写是否分离 主从式有效
'rw_separate'
=>
false
,
// 读写分离后 主服务器数量
'master_num'
=>
1
,
// 指定从服务器序号
'slave_no'
=>
''
,
// 是否严格检查字段是否存在
'fields_strict'
=>
true
,
// 数据集返回类型
'resultset_type'
=>
'array'
,
// 自动写入时间戳字段
'auto_timestamp'
=>
false
,
// 时间字段取出后的默认时间格式,默认为Y-m-d H:i:s
'datetime_format'
=>
false
,
// 是否需要进行SQL性能分析
'sql_explain'
=>
false
,
];
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment