mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-05 19:41:44 +08:00
[更新]修改后台配置及样式
This commit is contained in:
parent
3d119013a4
commit
d9f21d2dab
@ -11,70 +11,67 @@
|
||||
{/foreach}
|
||||
</div>
|
||||
|
||||
<form onsubmit="return false" data-auto="true" action="{:url()}" method="post" class="think-box-shadow padding-40">
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="relative block">
|
||||
<span class="color-green font-w7">程序名称</span>
|
||||
<span class="color-desc margin-left-5">Name</span>
|
||||
<input name="app_name" required placeholder="请输入程序名称" value="{:sysconf('app_name')}" class="layui-input">
|
||||
</label>
|
||||
<p class="help-block">程序名称,在后台主标题上显示 {:sysconf('app_name')}</p>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="relative block">
|
||||
<span class="color-green font-w7">程序版本</span>
|
||||
<span class="color-desc margin-left-5">Version</span>
|
||||
<input name="app_version" placeholder="请输入程序版本" value="{:sysconf('app_version')}" class="layui-input">
|
||||
</label>
|
||||
<p class="help-block">程序版本,在后台主标题上标显示版本 {:sysconf('app_version')}</p>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="relative block">
|
||||
<span class="color-green font-w7">网站名称</span>
|
||||
<span class="color-desc margin-left-5">Website</span>
|
||||
<input name="site_name" required placeholder="请输入网站名称" value="{:sysconf('site_name')}" class="layui-input">
|
||||
</label>
|
||||
<p class="help-block">网站名称,将在浏览器的标签上显示 {:sysconf('site_name')}</p>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<span class="color-green font-w7">浏览器图标</span>
|
||||
<span class="color-desc margin-left-5">Browser</span>
|
||||
<div class="relative block">
|
||||
<img alt="icon" data-tips-image style="height:auto;max-height:32px;min-width:32px" src="{:sysconf('site_icon')}"/>
|
||||
<input type="hidden" name="site_icon" onchange="$(this).prev('img').attr('src', this.value)" value="{:sysconf('site_icon')}" class="layui-input">
|
||||
<a class="margin-left-10" data-file="btn" data-type="ico,png" data-field="site_icon">上传图片</a>
|
||||
<p class="help-block">建议上传 ICO 图标的尺寸为 128x128 <a href="http://www.favicon-icon-generator.com" target="_blank">ICON在线制作</a></p>
|
||||
<form onsubmit="return false" data-auto="true" action="{:url()}" method="post" class="think-box-shadow padding-40 padding-bottom-10">
|
||||
<div class="layui-row layui-col-space30">
|
||||
<div class="layui-col-md6">
|
||||
<div class="layui-form-item">
|
||||
<label class="relative block">
|
||||
<span class="color-green font-w7">程序名称</span>
|
||||
<span class="color-desc margin-left-5">Name</span>
|
||||
<input name="app_name" required placeholder="请输入程序名称" value="{:sysconf('app_name')}" class="layui-input">
|
||||
</label>
|
||||
<p class="help-block">程序名称,在后台左上角标题处理显示</p>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="relative block">
|
||||
<span class="color-green font-w7">程序版本</span>
|
||||
<span class="color-desc margin-left-5">Version</span>
|
||||
<input name="app_version" placeholder="请输入程序版本" value="{:sysconf('app_version')}" class="layui-input">
|
||||
</label>
|
||||
<p class="help-block">程序版本,在后台左上角标题处理显示</p>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="relative block">
|
||||
<span class="color-green font-w7">网站名称</span>
|
||||
<span class="color-desc margin-left-5">Website</span>
|
||||
<input name="site_name" required placeholder="请输入网站名称" value="{:sysconf('site_name')}" class="layui-input">
|
||||
</label>
|
||||
<p class="help-block">网站名称,将在浏览器的标签上显示名称</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-col-md6">
|
||||
<div class="layui-form-item">
|
||||
<span class="color-green font-w7">浏览器图标</span>
|
||||
<span class="color-desc margin-left-5">Browser</span>
|
||||
<div class="relative block">
|
||||
<img alt="icon" data-tips-image style="height:auto;max-height:32px;min-width:32px" src="{:sysconf('site_icon')}"/>
|
||||
<input type="hidden" name="site_icon" onchange="$(this).prev('img').attr('src', this.value)" value="{:sysconf('site_icon')}" class="layui-input">
|
||||
<a class="margin-left-10" data-file="btn" data-type="ico,png" data-field="site_icon">上传图片</a>
|
||||
<p class="help-block">建议上传 ICO 图标的尺寸为 128x128 <a href="http://www.favicon-icon-generator.com" target="_blank">ICON在线制作</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="relative block">
|
||||
<span class="color-green font-w7">网站备案号</span>
|
||||
<span class="color-desc margin-left-5">Miitbeian</span>
|
||||
<input name="miitbeian" placeholder="请输入网站备案号" value="{:sysconf('miitbeian')}" class="layui-input">
|
||||
</label>
|
||||
<p class="help-block">网站备案号,可以在<a target="_blank" href="http://beian.miit.gov.cn">备案管理中心</a>查询获取,将在登录页面下面显示</p>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="relative block">
|
||||
<span class="color-green font-w7">网站版权信息</span>
|
||||
<span class="color-desc margin-left-5">Copyright</span>
|
||||
<input name="site_copy" required placeholder="请输入版权信息" value="{:sysconf('site_copy')}" class="layui-input">
|
||||
</label>
|
||||
<p class="help-block">网站版权信息,在后台登录页面显示版本信息并链接到备案到信息备案管理系统</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="relative block">
|
||||
<span class="color-green font-w7">网站备案号</span>
|
||||
<span class="color-desc margin-left-5">Miitbeian</span>
|
||||
<input name="miitbeian" placeholder="请输入网站备案号" value="{:sysconf('miitbeian')}" class="layui-input">
|
||||
</label>
|
||||
<p class="help-block">网站备案号,可以在<a target="_blank" href="http://beian.miit.gov.cn">备案管理中心</a>查询获取,将在登录页面下面显示</p>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="relative block">
|
||||
<span class="color-green font-w7">网站版权信息</span>
|
||||
<span class="color-desc margin-left-5">Copyright</span>
|
||||
<input name="site_copy" required placeholder="请输入版权信息" value="{:sysconf('site_copy')}" class="layui-input">
|
||||
</label>
|
||||
<p class="help-block">网站版权信息,在后台登录页面显示版本信息并链接到备案到信息备案管理系统</p>
|
||||
</div>
|
||||
|
||||
<div class="hr-line-dashed"></div>
|
||||
|
||||
<div class="layui-form-item text-center">
|
||||
<button class="layui-btn" type="submit">保存配置</button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
{/block}
|
@ -1,22 +1,20 @@
|
||||
<form onsubmit="return false;" data-auto="true" action="{:url()}" method="post" class='layui-form layui-card' autocomplete="off">
|
||||
<div class="layui-card-body">
|
||||
<div class="padding-right-40">
|
||||
<div class="color-blue padding-left-40 padding-bottom-20">
|
||||
文件将存储在本地服务器,需确保服务器的 public/upload 目录有写入权限,有足够的存储空间。
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">AllowExts<br><span class="nowrap color-desc">允许类型</span></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="storage_local_exts" required value="{:sysconf('storage_local_exts')}" placeholder="请输入系统文件上传后缀" class="layui-input">
|
||||
<p class="help-block">设置系统允许上传文件的后缀,多个以英文逗号隔开。如:png,jpg,rar,doc</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hr-line-dashed margin-left-40"></div>
|
||||
<div class="layui-form-item text-center padding-left-40">
|
||||
<input type="hidden" name="storage_type" value="local">
|
||||
<button class="layui-btn" type="submit">保存配置</button>
|
||||
<button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消修改吗?" data-close>取消修改</button>
|
||||
<div class="color-text margin-left-40 margin-bottom-20 layui-code" style="border-left-width:1px">
|
||||
<p class="font-w7">文件将存储在本地服务器,需确保服务器的 public/upload 目录有写入权限,有足够的存储空间!</p>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">AllowExts<br><span class="nowrap color-desc">允许类型</span></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="storage_local_exts" required value="{:sysconf('storage_local_exts')}" placeholder="请输入系统文件上传后缀" class="layui-input">
|
||||
<p class="help-block">设置系统允许上传文件的后缀,多个以英文逗号隔开。如:png,jpg,rar,doc</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hr-line-dashed margin-left-40"></div>
|
||||
<div class="layui-form-item text-center padding-left-40">
|
||||
<input type="hidden" name="storage_type" value="local">
|
||||
<button class="layui-btn" type="submit">保存配置</button>
|
||||
<button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消修改吗?" data-close>取消修改</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
@ -1,81 +1,80 @@
|
||||
<form onsubmit="return false;" data-auto="true" action="{:url()}" method="post" class='layui-form layui-card' autocomplete="off">
|
||||
<div class="layui-card-body">
|
||||
<div class="padding-right-40">
|
||||
<div class="color-blue padding-left-40 padding-bottom-20">
|
||||
文件将上传到阿里云OSS空间,需要配置OSS公开访问及跨域策略(目前已实现自动创建空间及配置访问策略)!
|
||||
<div class="color-text margin-left-40 margin-bottom-20 layui-code" style="border-left-width:1px">
|
||||
<p class="margin-bottom-5 font-w7">文件将上传到阿里云OSS空间,需要配置OSS公开访问及跨域策略!</p>
|
||||
目前已实现自动创建空间及配置访问策略!<a target="_blank" href="https://promotion.aliyun.com/ntms/yunparter/invite.html?userCode=08p1pddw">我要免费申请</a>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">AllowExts<br><span class="nowrap color-desc">允许类型</span></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="storage_local_exts" required value="{:sysconf('storage_local_exts')}" placeholder="请输入系统文件上传后缀" class="layui-input">
|
||||
<p class="help-block">设置系统允许上传文件的后缀,多个以英文逗号隔开。如:png,jpg,rar,doc</p>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">AllowExts<br><span class="nowrap color-desc">允许类型</span></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="storage_local_exts" required value="{:sysconf('storage_local_exts')}" placeholder="请输入系统文件上传后缀" class="layui-input">
|
||||
<p class="help-block">设置系统允许上传文件的后缀,多个以英文逗号隔开。如:png,jpg,rar,doc</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label label-required">Protocol<br><span class="nowrap color-desc">访问协议</span></label>
|
||||
<div class="layui-input-block">
|
||||
{foreach ['http','https','auto'] as $pro}
|
||||
<label class="think-radio">
|
||||
{if sysconf('storage_oss_is_https') eq $pro}
|
||||
<input checked type="radio" name="storage_oss_is_https" value="{$pro}" lay-ignore> {$pro}
|
||||
{else}
|
||||
<input type="radio" name="storage_oss_is_https" value="{$pro}" lay-ignore> {$pro}
|
||||
{/if}
|
||||
</label>
|
||||
{/foreach}
|
||||
<p class="help-block">阿里云对象存储访问协议(http、https、auto),其中 https 需要配置证书才能使用,auto 为相对协议自动根据域名切换http与https。</p>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label label-required">Protocol<br><span class="nowrap color-desc">访问协议</span></label>
|
||||
<div class="layui-input-block">
|
||||
{foreach ['http','https','auto'] as $pro}
|
||||
<label class="think-radio">
|
||||
{if sysconf('storage_oss_is_https') eq $pro}
|
||||
<input checked type="radio" name="storage_oss_is_https" value="{$pro}" lay-ignore> {$pro}
|
||||
{else}
|
||||
<input type="radio" name="storage_oss_is_https" value="{$pro}" lay-ignore> {$pro}
|
||||
{/if}
|
||||
</label>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">Bucket<br><span class="nowrap color-desc">空间名称</span></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="storage_oss_bucket" required value="{:sysconf('storage_oss_bucket')}" placeholder="请输入OSS Bucket (空间名称)" class="layui-input">
|
||||
<p class="help-block">填写OSS存储空间名称,如:think-admin-oss(需要是全区唯一的值,不存在时会自动创建)</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">EndPoint<br><span class="nowrap color-desc">数据中心</span></label>
|
||||
<div class="layui-input-block">
|
||||
<select required name="storage_oss_endpoint" class="layui-select" lay-search>
|
||||
{foreach $ossPoints as $k=>$p}
|
||||
{if sysconf('storage_oss_endpoint') eq $k}
|
||||
<option selected value="{$k}">{$p} <span class="font-s10 color-desc">({$k})</span></option>
|
||||
{else}
|
||||
<option value="{$k}">{$p} <span class="font-s10 color-desc">({$k})</span></option>
|
||||
{/if}
|
||||
{/foreach}
|
||||
<p class="help-block">阿里云对象存储访问协议(http、https、auto),其中 https 需要配置证书才能使用,auto 为相对协议自动根据域名切换http与https。</p>
|
||||
</div>
|
||||
</select>
|
||||
<p class="help-block">请选择OSS数据中心访问节点,有效值如:oss-cn-shenzhen.aliyuncs.com</p>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">Bucket<br><span class="nowrap color-desc">空间名称</span></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="storage_oss_bucket" required value="{:sysconf('storage_oss_bucket')}" placeholder="请输入OSS Bucket (空间名称)" class="layui-input">
|
||||
<p class="help-block">填写OSS存储空间名称,如:think-admin-oss(需要是全区唯一的值,不存在时会自动创建)</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">AccessKey<br><span class="nowrap color-desc">访问密钥</span></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="storage_oss_keyid" required value="{:sysconf('storage_oss_keyid')}" maxlength="16" placeholder="请输入OSS AccessKey (访问密钥)" class="layui-input">
|
||||
<p class="help-block">可以在 [ 阿里云 > 个人中心 ] 设置并获取到访问密钥。</p>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">EndPoint<br><span class="nowrap color-desc">数据中心</span></label>
|
||||
<div class="layui-input-block">
|
||||
<select required name="storage_oss_endpoint" class="layui-select" lay-search>
|
||||
{foreach $ossPoints as $k=>$p}
|
||||
{if sysconf('storage_oss_endpoint') eq $k}
|
||||
<option selected value="{$k}">{$p} <span class="font-s10 color-desc">({$k})</span></option>
|
||||
{else}
|
||||
<option value="{$k}">{$p} <span class="font-s10 color-desc">({$k})</span></option>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</select>
|
||||
<p class="help-block">请选择OSS数据中心访问节点,有效值如:oss-cn-shenzhen.aliyuncs.com</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">SecretKey<br><span class="nowrap color-desc">安全密钥</span></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="storage_oss_secret" required value="{:sysconf('storage_oss_secret')}" maxlength="30" placeholder="请输入OSS SecretKey (安全密钥)" class="layui-input">
|
||||
<p class="help-block">可以在 [ 阿里云 > 个人中心 ] 设置并获取到安全密钥。</p>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">AccessKey<br><span class="nowrap color-desc">访问密钥</span></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="storage_oss_keyid" required value="{:sysconf('storage_oss_keyid')}" maxlength="16" placeholder="请输入OSS AccessKey (访问密钥)" class="layui-input">
|
||||
<p class="help-block">可以在 [ 阿里云 > 个人中心 ] 设置并获取到访问密钥。</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">SecretKey<br><span class="nowrap color-desc">安全密钥</span></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="storage_oss_secret" required value="{:sysconf('storage_oss_secret')}" maxlength="30" placeholder="请输入OSS SecretKey (安全密钥)" class="layui-input">
|
||||
<p class="help-block">可以在 [ 阿里云 > 个人中心 ] 设置并获取到安全密钥。</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">Domain<br><span class="nowrap color-desc">访问域名</span></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="storage_oss_domain" value="{:sysconf('storage_oss_domain')}" placeholder="请输入OSS存储 Domain (访问域名)" class="layui-input">
|
||||
<p class="help-block">填写OSS存储外部访问域名,如:think-admin-oss.oss-cn-shenzhen.aliyuncs.com(正常情况下是自动获取的)</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hr-line-dashed margin-left-40"></div>
|
||||
<div class="layui-form-item text-center padding-left-40">
|
||||
<input type="hidden" name="storage_type" value="oss">
|
||||
<button class="layui-btn" type="submit">保存配置</button>
|
||||
<button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消修改吗?" data-close>取消修改</button>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">Domain<br><span class="nowrap color-desc">访问域名</span></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="storage_oss_domain" value="{:sysconf('storage_oss_domain')}" placeholder="请输入OSS存储 Domain (访问域名)" class="layui-input">
|
||||
<p class="help-block">填写OSS存储外部访问域名,如:think-admin-oss.oss-cn-shenzhen.aliyuncs.com(正常情况下是自动获取的)</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hr-line-dashed margin-left-40"></div>
|
||||
<div class="layui-form-item text-center padding-left-40">
|
||||
<input type="hidden" name="storage_type" value="oss">
|
||||
<button class="layui-btn" type="submit">保存配置</button>
|
||||
<button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消修改吗?" data-close>取消修改</button>
|
||||
</div>
|
||||
</div>
|
||||
<script>form.render()</script>
|
||||
</form>
|
||||
|
@ -1,81 +1,80 @@
|
||||
<form onsubmit="return false;" data-auto="true" action="{:url()}" method="post" class='layui-form layui-card' autocomplete="off">
|
||||
<form onsubmit="return false" data-auto="true" action="{:url()}" method="post" class='layui-form layui-card' autocomplete="off">
|
||||
<div class="layui-card-body">
|
||||
<div class="padding-right-40">
|
||||
<div class="color-blue padding-left-40 padding-bottom-20">
|
||||
文件将上传到七牛云空间(<a target="_blank" href="https://portal.qiniu.com/signup?code=3lhz6nmnwbple">点击这里免费申请10G存储</a>),申请成功后添加公开bucket并配置接口密钥!
|
||||
<div class="color-text margin-left-40 margin-bottom-20 layui-code" style="border-left-width:1px">
|
||||
<p class="margin-bottom-5 font-w7">文件将上传到七牛云存储,对象存储需要配置为公开访问的Bucket空间!</p>
|
||||
完成实名认证后可获得10G免费存储空间哦!<a target="_blank" href="https://portal.qiniu.com/signup?code=3lhz6nmnwbple">我要免费申请</a>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">AllowExts<br><span class="nowrap color-desc">允许类型</span></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="storage_local_exts" required value="{:sysconf('storage_local_exts')}" placeholder="请输入系统文件上传后缀" class="layui-input">
|
||||
<p class="help-block">设置系统允许上传文件的后缀,多个以英文逗号隔开。如:png,jpg,rar,doc</p>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">AllowExts<br><span class="nowrap color-desc">允许类型</span></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="storage_local_exts" required value="{:sysconf('storage_local_exts')}" placeholder="请输入系统文件上传后缀" class="layui-input">
|
||||
<p class="help-block">设置系统允许上传文件的后缀,多个以英文逗号隔开。如:png,jpg,rar,doc</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item" data-storage-type="qiniu">
|
||||
<label class="layui-form-label label-required">Protocol<br><span class="nowrap color-desc">访问协议</span></label>
|
||||
<div class="layui-input-block">
|
||||
{foreach ['http','https','auto'] as $pro}
|
||||
<label class="think-radio">
|
||||
{if sysconf('storage_qiniu_is_https') eq $pro}
|
||||
<input checked type="radio" name="storage_qiniu_is_https" value="{$pro}" lay-ignore> {$pro}
|
||||
{else}
|
||||
<input type="radio" name="storage_qiniu_is_https" value="{$pro}" lay-ignore> {$pro}
|
||||
{/if}
|
||||
</label>
|
||||
{/foreach}
|
||||
<p class="help-block">七牛云存储访问协议,其中 https 需要配置证书才能使用,auto 为相对协议。</p>
|
||||
</div>
|
||||
<div class="layui-form-item" data-storage-type="qiniu">
|
||||
<label class="layui-form-label label-required">Protocol<br><span class="nowrap color-desc">访问协议</span></label>
|
||||
<div class="layui-input-block">
|
||||
{foreach ['http','https','auto'] as $pro}
|
||||
<label class="think-radio">
|
||||
{if sysconf('storage_qiniu_is_https') eq $pro}
|
||||
<input checked type="radio" name="storage_qiniu_is_https" value="{$pro}" lay-ignore> {$pro}
|
||||
{else}
|
||||
<input type="radio" name="storage_qiniu_is_https" value="{$pro}" lay-ignore> {$pro}
|
||||
{/if}
|
||||
</label>
|
||||
{/foreach}
|
||||
<p class="help-block">七牛云存储访问协议(http、https、auto),其中 https 需要配置证书才能使用,auto 为相对协议自动根据域名切换http与https。</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item" data-storage-type="qiniu">
|
||||
<label class="layui-form-label">Region<br><span class="nowrap color-desc label-required">存储区域</span></label>
|
||||
<div class="layui-input-block">
|
||||
{foreach ['华东','华北','华南','北美'] as $area}
|
||||
<label class="think-radio">
|
||||
{if sysconf('storage_qiniu_region') eq $area}
|
||||
<input checked type="radio" name="storage_qiniu_region" value="{$area}" lay-ignore>
|
||||
{else}
|
||||
<input type="radio" name="storage_qiniu_region" value="{$area}" lay-ignore>
|
||||
{/if}
|
||||
{$area}
|
||||
</label>
|
||||
{/foreach}
|
||||
<p class="help-block">七牛云存储空间所在区域,需要严格对应储存所在区域才能上传文件。</p>
|
||||
</div>
|
||||
<div class="layui-form-item" data-storage-type="qiniu">
|
||||
<label class="layui-form-label">Region<br><span class="nowrap color-desc label-required">存储区域</span></label>
|
||||
<div class="layui-input-block">
|
||||
{foreach ['华东','华北','华南','北美'] as $area}
|
||||
<label class="think-radio">
|
||||
{if sysconf('storage_qiniu_region') eq $area}
|
||||
<input checked type="radio" name="storage_qiniu_region" value="{$area}" lay-ignore>
|
||||
{else}
|
||||
<input type="radio" name="storage_qiniu_region" value="{$area}" lay-ignore>
|
||||
{/if}
|
||||
{$area}
|
||||
</label>
|
||||
{/foreach}
|
||||
<p class="help-block">七牛云存储空间所在区域,需要严格对应储存所在区域才能上传文件。</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item" data-storage-type="qiniu">
|
||||
<label class="layui-form-label">Bucket<br><span class="nowrap color-desc">空间名称</span></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="storage_qiniu_bucket" required value="{:sysconf('storage_qiniu_bucket')}" placeholder="请输入七牛云存储 Bucket (空间名称)" class="layui-input">
|
||||
<p class="help-block">填写七牛云存储空间名称,如:static</p>
|
||||
</div>
|
||||
<div class="layui-form-item" data-storage-type="qiniu">
|
||||
<label class="layui-form-label">Bucket<br><span class="nowrap color-desc">空间名称</span></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="storage_qiniu_bucket" required value="{:sysconf('storage_qiniu_bucket')}" placeholder="请输入七牛云存储 Bucket (空间名称)" class="layui-input">
|
||||
<p class="help-block">填写七牛云存储空间名称,如:static</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item" data-storage-type="qiniu">
|
||||
<label class="layui-form-label">Domain<br><span class="nowrap color-desc">访问域名</span></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="storage_qiniu_domain" required value="{:sysconf('storage_qiniu_domain')}" placeholder="请输入七牛云存储 Domain (访问域名)" class="layui-input">
|
||||
<p class="help-block">填写七牛云存储访问域名,如:static.ctolog.cc</p>
|
||||
</div>
|
||||
<div class="layui-form-item" data-storage-type="qiniu">
|
||||
<label class="layui-form-label">Domain<br><span class="nowrap color-desc">访问域名</span></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="storage_qiniu_domain" required value="{:sysconf('storage_qiniu_domain')}" placeholder="请输入七牛云存储 Domain (访问域名)" class="layui-input">
|
||||
<p class="help-block">填写七牛云存储访问域名,如:static.ctolog.cc</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item" data-storage-type="qiniu">
|
||||
<label class="layui-form-label">AccessKey<br><span class="nowrap color-desc">访问密钥</span></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="storage_qiniu_access_key" required value="{:sysconf('storage_qiniu_access_key')}" placeholder="请输入七牛云 AccessKey (访问密钥)" class="layui-input">
|
||||
<p class="help-block">可以在 [ 七牛云 > 个人中心 ] 设置并获取到访问密钥。</p>
|
||||
</div>
|
||||
<div class="layui-form-item" data-storage-type="qiniu">
|
||||
<label class="layui-form-label">AccessKey<br><span class="nowrap color-desc">访问密钥</span></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="storage_qiniu_access_key" required value="{:sysconf('storage_qiniu_access_key')}" placeholder="请输入七牛云 AccessKey (访问密钥)" class="layui-input">
|
||||
<p class="help-block">可以在 [ 七牛云 > 个人中心 ] 设置并获取到访问密钥。</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item" data-storage-type="qiniu">
|
||||
<label class="layui-form-label">SecretKey<br><span class="nowrap color-desc">安全密钥</span></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="storage_qiniu_secret_key" required value="{:sysconf('storage_qiniu_secret_key')}" maxlength="43" placeholder="请输入七牛云 SecretKey (安全密钥)" class="layui-input">
|
||||
<p class="help-block">可以在 [ 七牛云 > 个人中心 ] 设置并获取到安全密钥。</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hr-line-dashed margin-left-40"></div>
|
||||
<div class="layui-form-item text-center padding-left-40">
|
||||
<input type="hidden" name="storage_type" value="qiniu">
|
||||
<button class="layui-btn" type="submit">保存配置</button>
|
||||
<button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消修改吗?" data-close>取消修改</button>
|
||||
</div>
|
||||
<div class="layui-form-item" data-storage-type="qiniu">
|
||||
<label class="layui-form-label">SecretKey<br><span class="nowrap color-desc">安全密钥</span></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="storage_qiniu_secret_key" required value="{:sysconf('storage_qiniu_secret_key')}" maxlength="43" placeholder="请输入七牛云 SecretKey (安全密钥)" class="layui-input">
|
||||
<p class="help-block">可以在 [ 七牛云 > 个人中心 ] 设置并获取到安全密钥。</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hr-line-dashed margin-left-40"></div>
|
||||
<div class="layui-form-item text-center padding-left-40">
|
||||
<input type="hidden" name="storage_type" value="qiniu">
|
||||
<button class="layui-btn" type="submit">保存配置</button>
|
||||
<button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消修改吗?" data-close>取消修改</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
@ -788,7 +788,7 @@ label.think-radio {
|
||||
.hr-line-dashed {
|
||||
color: #fff;
|
||||
height: 1px;
|
||||
margin: 20px 0;
|
||||
margin: 15px 0;
|
||||
background-color: #fff;
|
||||
border-top: 1px dashed #e7eaec;
|
||||
}
|
||||
|
@ -149,7 +149,7 @@
|
||||
&dashed {
|
||||
color: #fff;
|
||||
height: 1px;
|
||||
margin: 20px 0;
|
||||
margin: 15px 0;
|
||||
background-color: #fff;
|
||||
border-top: 1px dashed #e7eaec
|
||||
}
|
||||
|
@ -17,8 +17,7 @@ use think\facade\Request;
|
||||
use think\facade\Route;
|
||||
|
||||
/* 演示环境禁止操作路由绑定 */
|
||||
$domain = Request::host(true);
|
||||
if (in_array($domain, ['127.0.0.1', 'localhost']) || stripos($domain, 'thinkadmin.top') <> false) {
|
||||
if (stripos(Request::host(true), 'thinkadmin.top') !== false) {
|
||||
Route::post('admin/user/pass', function () {
|
||||
return json(['code' => 0, 'info' => '演示环境禁止修改用户密码!']);
|
||||
});
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -4,4 +4,4 @@
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInitea9430bef9688db72c38464c06dd4032::getLoader();
|
||||
return ComposerAutoloaderInit2078d92f7b7bb325fe9f8c9a5d00e122::getLoader();
|
||||
|
14
vendor/composer/autoload_real.php
vendored
14
vendor/composer/autoload_real.php
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInitea9430bef9688db72c38464c06dd4032
|
||||
class ComposerAutoloaderInit2078d92f7b7bb325fe9f8c9a5d00e122
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -19,15 +19,15 @@ class ComposerAutoloaderInitea9430bef9688db72c38464c06dd4032
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInitea9430bef9688db72c38464c06dd4032', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit2078d92f7b7bb325fe9f8c9a5d00e122', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitea9430bef9688db72c38464c06dd4032', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit2078d92f7b7bb325fe9f8c9a5d00e122', 'loadClassLoader'));
|
||||
|
||||
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
||||
if ($useStaticLoader) {
|
||||
require_once __DIR__ . '/autoload_static.php';
|
||||
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitea9430bef9688db72c38464c06dd4032::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit2078d92f7b7bb325fe9f8c9a5d00e122::getInitializer($loader));
|
||||
} else {
|
||||
$map = require __DIR__ . '/autoload_namespaces.php';
|
||||
foreach ($map as $namespace => $path) {
|
||||
@ -48,19 +48,19 @@ class ComposerAutoloaderInitea9430bef9688db72c38464c06dd4032
|
||||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInitea9430bef9688db72c38464c06dd4032::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit2078d92f7b7bb325fe9f8c9a5d00e122::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequireea9430bef9688db72c38464c06dd4032($fileIdentifier, $file);
|
||||
composerRequire2078d92f7b7bb325fe9f8c9a5d00e122($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequireea9430bef9688db72c38464c06dd4032($fileIdentifier, $file)
|
||||
function composerRequire2078d92f7b7bb325fe9f8c9a5d00e122($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
require $file;
|
||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInitea9430bef9688db72c38464c06dd4032
|
||||
class ComposerStaticInit2078d92f7b7bb325fe9f8c9a5d00e122
|
||||
{
|
||||
public static $files = array (
|
||||
'841780ea2e1d6545ea3a253239d59c05' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/functions.php',
|
||||
@ -321,9 +321,9 @@ class ComposerStaticInitea9430bef9688db72c38464c06dd4032
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitea9430bef9688db72c38464c06dd4032::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitea9430bef9688db72c38464c06dd4032::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitea9430bef9688db72c38464c06dd4032::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit2078d92f7b7bb325fe9f8c9a5d00e122::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit2078d92f7b7bb325fe9f8c9a5d00e122::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit2078d92f7b7bb325fe9f8c9a5d00e122::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user