v2.6.0
parent
03a19b33bd
commit
1e8dbef50a
10
README.md
10
README.md
|
@ -13,7 +13,7 @@
|
|||
[![License](https://img.shields.io/badge/license-GPL_V2.0-yellowgreen.svg)](https://github.com/icret/EasyImages2.0/blob/master/LICENSE)
|
||||
[![QQ group](https://pub.idqqimg.com/wpa/images/group.png)](https://jq.qq.com/?_wv=1027&k=jfXRHU8Y)
|
||||
|
||||
>[演示](https://png.cm/) | [Chrome/Edge 插件](https://github.com/icret/EasyImage-Browser-Extension) | [使用手册](https://www.kancloud.cn/easyimage/easyimage/)
|
||||
>[演示](https://png.cm/) | [Chrome/Edge 插件](https://github.com/icret/EasyImage-Browser-Extension) | [使用手册](https://www.kancloud.cn/easyimage/easyimage/) | [Telegram](https://t.me/Easy_Image)
|
||||
>
|
||||
>本人善写bug 发现bug可提交 [issues](https://github.com/icret/EasyImages2.0/issues) 追求稳定请下载 [稳定版](https://github.com/icret/EasyImages2.0/releases)
|
||||
|
||||
|
@ -149,12 +149,20 @@ $HTTP["url"] =~ "^/(i|public)/" {
|
|||
|
||||
<details><summary>点击查看2.0版更新日志</summary>
|
||||
|
||||
* 2022-05-01 v2.6.0
|
||||
- 修复源图缺陷
|
||||
- 修复API回收不能还原问题
|
||||
- 布局修改
|
||||
- 登录页美化
|
||||
- 屏蔽登陆页面chrome类浏览器自动填充
|
||||
|
||||
* 2022-04-02 v2.5.9
|
||||
- 增加安装提示
|
||||
- 增加忘记密码提示
|
||||
- 增加检测水印图片/水印字体是否存在
|
||||
- 修复登陆逻辑
|
||||
- 修复广场重复显示图片
|
||||
- 修改广场删除/回收样式
|
||||
- 调整了广告的位置
|
||||
- 调整后台设置分表
|
||||
|
||||
|
|
|
@ -194,7 +194,8 @@ if (isset($_GET['recycle_reimg'])) {
|
|||
<a href="https://png.cm/" target="_blank"><button type="button" class="btn btn-mini"><i class="icon icon-external-link"></i> 演示网站</button></a>
|
||||
<a href="https://www.kancloud.cn/easyimage/easyimage/content" target="_blank"><button type="button" class="btn btn-mini"><i class="icon icon-hand-right"></i> 使用手册</button></a>
|
||||
<!-- <a href="https://support.qq.com/products/367633" target="_blank"><button type="button" class="btn btn-mini hidden-xs inline-block"><i class="icon icon-bug"></i> 问题反馈</button></a> -->
|
||||
<a href="https://jq.qq.com/?_wv=1027&k=OBIlf2y7" target="_blank"><button type="button" class="btn btn-mini"><i class="icon icon-qq"></i> 954441002</button></a>
|
||||
<a href="https://jq.qq.com/?_wv=1027&k=OBIlf2y7" target="_blank" data-toggle="tooltip" title="954441002"><button type="button" class="btn btn-mini"><i class="icon icon-qq"></i> QQ群</button></a>
|
||||
<a href="https://t.me/Easy_Image" target="_blank" data-toggle="tooltip" title="EasyImage 简单图床TG群"><button type="button" class="btn btn-mini hidden-xs inline-block"><i class="icon icon-plane"></i> Telegram</button></a>
|
||||
<a href="../public/images/wechat.jpg" title="您的赞美是我开发的动力!" data-toggle="lightbox" class="btn btn-mini" style="color:#329d38;"><i class="icon icon-wechat"></i> 打赏作者</a>
|
||||
<a href="../public/images/alipay.jpg" title="您的赞美是我开发的动力!" data-toggle="lightbox" class="btn btn-mini hidden-xs inline-block" style="color:#1970fc;"><i class="icon icon-zhifubao"></i> 打赏作者</a>
|
||||
</div>
|
||||
|
@ -363,7 +364,7 @@ if (isset($_GET['recycle_reimg'])) {
|
|||
<div class="tab-pane fade " id="Content4">
|
||||
<form action="../application/compressing.php" method="post" target="_blank">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputInviteCode1">压缩文件夹</label>
|
||||
<h5 class="header-dividing">压缩文件夹</h5>
|
||||
<input type="text" class="form-control form-date input-sm" placeholder="" name="folder" value="<?php echo date('Y/m/d/'); ?>" readonly="">
|
||||
</div>
|
||||
<div class="radio-primary">
|
||||
|
@ -379,7 +380,7 @@ if (isset($_GET['recycle_reimg'])) {
|
|||
</form>
|
||||
</div>
|
||||
<div class="tab-pane fade " id="Content5">
|
||||
<h5>外部KEY</h5>
|
||||
<h5 class="header-dividing">外部KEY</h5>
|
||||
<form class="form-condensed" action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="post" style="margin-bottom: 10px;">
|
||||
<div class="form-group">
|
||||
<label for="TinyPng" data-toggle="tooltip" title="申请网址"><a href="https://tinypng.com/developers" target="_blank">TinyPng Key </a></label>
|
||||
|
@ -397,8 +398,8 @@ if (isset($_GET['recycle_reimg'])) {
|
|||
<input type="hidden" class="form-control" name="update" value="<?php echo date("Y-m-d H:i:s"); ?>" placeholder="隐藏的保存">
|
||||
<button type="submit" class="btn btn-mini btn-primary">保存</button>
|
||||
</form>
|
||||
<hr>
|
||||
<h5>已存在Token</h5>
|
||||
<h5 class="page-header">Token列表:</h5>
|
||||
<p><kbd>API调用网址:<?php echo $config['domain']; ?>/api/index.php</kbd></p>
|
||||
<table class="table table-hover table-bordered table-condensed table-responsive visible-xs visible-sm" style="margin-top: 10px;">
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -481,7 +482,7 @@ if (isset($_GET['recycle_reimg'])) {
|
|||
<div class="switch switch-inline">
|
||||
<input type="hidden" name="static_cdn" value="0">
|
||||
<input type="checkbox" name="static_cdn" value="1" <?php if ($config['static_cdn']) echo 'checked="checked"'; ?>>
|
||||
<label style="font-weight: bold">静态文件CDN | 末尾不加'/'</label>
|
||||
<label style="font-weight: bold">静态文件CDN地址 | 末尾不加'/'</label>
|
||||
</div>
|
||||
<input type="url" class="form-control" name="static_cdn_url" value="<?php echo $config['static_cdn_url']; ?>" onkeyup="this.value=this.value.replace(/\s/g,'')" data-toggle="tooltip" title="jsdelivr可在后边添加版本号 例:@2.5.6">
|
||||
</div>
|
||||
|
@ -497,37 +498,37 @@ if (isset($_GET['recycle_reimg'])) {
|
|||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<hr />
|
||||
<h5 class="header-dividing">其他设置</h5>
|
||||
<div class="col-md-2">
|
||||
<div class="switch switch-inline" data-toggle="tooltip" title="公告每次打开浏览器访问网站会重新打开弹窗">
|
||||
<div class="switch switch-inline" data-toggle="tooltip" title="每次重新打开浏览器访问网站会展示公告弹窗">
|
||||
<input type="hidden" name="notice_status" value="0">
|
||||
<input type="checkbox" name="notice_status" value="1" <?php if ($config['notice_status']) echo 'checked="checked"'; ?>>
|
||||
<label style="font-weight: bold">弹窗公告</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<div class="switch switch-inline">
|
||||
<div class="switch switch-inline" data-toggle="tooltip" title="开启登陆上传">
|
||||
<input type="hidden" name="mustLogin" value="0">
|
||||
<input type="checkbox" name="mustLogin" value="1" <?php if ($config['mustLogin']) echo 'checked="checked"'; ?>>
|
||||
<label style="font-weight: bold">登录上传</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<div class="switch switch-inline">
|
||||
<div class="switch switch-inline" data-toggle="tooltip" title="开启API上传接口">
|
||||
<input type="hidden" name="apiStatus" value="0">
|
||||
<input type="checkbox" name="apiStatus" value="1" <?php if ($config['apiStatus']) echo 'checked="checked"'; ?>>
|
||||
<label style="font-weight: bold">API 上传</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<div class="switch switch-inline" data-toggle="tooltip" title="隐藏图片直链 | *注意: key与登录密码绑定,更改登录密码后key失效">
|
||||
<div class="switch switch-inline" data-toggle="tooltip" title="隐藏图片直链 | *注意: key值与账号密码->源图保护Key绑定,更改源图保护Key后所有链接失效">
|
||||
<input type="hidden" name="hide" value="0">
|
||||
<input type="checkbox" name="hide" value="1" <?php if ($config['hide']) echo 'checked="checked"'; ?>>
|
||||
<label style="font-weight: bold">原图保护</label>
|
||||
<label style="font-weight: bold">源图保护</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<div class="switch switch-inline" data-toggle="tooltip" title="所有用户上传的图片使用加密链接删除后是否进入回收站">
|
||||
<div class="switch switch-inline" data-toggle="tooltip" title="所有用户上传的图片使用加密链接删除的图片会进入回收站">
|
||||
<input type="hidden" name="image_recycl" value="0">
|
||||
<input type="checkbox" name="image_recycl" value="1" <?php if ($config['image_recycl']) echo 'checked="checked"'; ?>>
|
||||
<label style="font-weight: bold">图片回收</label>
|
||||
|
@ -543,17 +544,17 @@ if (isset($_GET['recycle_reimg'])) {
|
|||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-2">
|
||||
<div class="switch switch-inline" data-toggle="tooltip" title="日志每月保存一个文件; 经测试二十万条数据并不影响速度!">
|
||||
<div class="switch switch-inline" data-toggle="tooltip" title="日志每月保存一个文件<br/>经测试二十万条数据并不影响速度!">
|
||||
<input type="hidden" name="upload_logs" value="0">
|
||||
<input type="checkbox" name="upload_logs" value="1" <?php if ($config['upload_logs']) echo 'checked="checked"'; ?>>
|
||||
<label style="font-weight: bold">上传日志</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<div class="switch switch-inline" data-toggle="tooltip" title="PHP扩展 | 安全设置 | 鉴黄 | 版本 检测">
|
||||
<div class="switch switch-inline" data-toggle="tooltip" title="检测图床的 PHP扩展 | 安全设置 | 鉴黄 | 版本 | 文件路径">
|
||||
<input type="hidden" name="checkEnv" value="0">
|
||||
<input type="checkbox" name="checkEnv" value="1" <?php if ($config['checkEnv']) echo 'checked="checked"'; ?>>
|
||||
<label style="font-weight: bold">网站检测</label>
|
||||
<label style="font-weight: bold">图床自检</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -564,37 +565,41 @@ if (isset($_GET['recycle_reimg'])) {
|
|||
<input type="checkbox" name="public" value="1" <?php if ($config['public']) echo 'checked'; ?>>
|
||||
<label style="font-weight: bold">开放数据<i class="icon icon-long-arrow-down"></i></label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="checkbox-inline" data-toggle="tooltip" title="<?php echo $config['domain']; ?>/api/public.php?show=time">
|
||||
<input type="checkbox" name="public_list[]" value="time" id="time" <?php if (in_array('time', $config['public_list'])) echo 'checked'; ?>><label for="time">统计时间</label>
|
||||
</label>
|
||||
<label class="checkbox-inline" data-toggle="tooltip" title="public.php?show=today">
|
||||
<input type="checkbox" name="public_list[]" value="today" id="today" <?php if (in_array('today', $config['public_list'])) echo 'checked'; ?>><label for="today">今日</label>
|
||||
</label>
|
||||
<label class="checkbox-inline" data-toggle="tooltip" title="public.php?show=yesterday">
|
||||
<input type="checkbox" name="public_list[]" value="yesterday" id="yesterday" <?php if (in_array('yesterday', $config['public_list'])) echo 'checked'; ?>><label for="yesterday">昨日</label>
|
||||
</label>
|
||||
<label class="checkbox-inline" data-toggle="tooltip" title="public.php?show=total_space">
|
||||
<input type="checkbox" name="public_list[]" value="total_space" id="total_space" <?php if (in_array('total_space', $config['public_list'])) echo 'checked'; ?>><label for="total_space">总空间</label>
|
||||
</label>
|
||||
<label class="checkbox-inline" data-toggle="tooltip" title="public.php?show=used_space">
|
||||
<input type="checkbox" name="public_list[]" value="used_space" id="used_space" <?php if (in_array('used_space', $config['public_list'])) echo 'checked'; ?>><label for="used_space">已用</label>
|
||||
</label>
|
||||
<label class="checkbox-inline" data-toggle="tooltip" title="public.php?show=free_space">
|
||||
<input type="checkbox" name="public_list[]" value="free_space" id="free_space" <?php if (in_array('free_space', $config['public_list'])) echo 'checked'; ?>><label for="free_space">剩余</label>
|
||||
</label>
|
||||
<label class="checkbox-inline" data-toggle="tooltip" title="public.php?show=image_used">
|
||||
<input type="checkbox" name="public_list[]" value="image_used" id="image_used" <?php if (in_array('image_used', $config['public_list'])) echo 'checked'; ?>><label for="image_used">图片占用</label>
|
||||
</label>
|
||||
<label class="checkbox-inline" data-toggle="tooltip" title="public.php?show=file">
|
||||
<input type="checkbox" name="public_list[]" value="file" id="file" <?php if (in_array('file', $config['public_list'])) echo 'checked'; ?>><label for="file">文件数量</label>
|
||||
</label>
|
||||
<label class="checkbox-inline" data-toggle="tooltip" title="public.php?show=dir">
|
||||
<input type="checkbox" name="public_list[]" value="dir" id="dir" <?php if (in_array('dir', $config['public_list'])) echo 'checked'; ?>><label for="dir">文件夹数量</label>
|
||||
</label>
|
||||
<label class="checkbox-inline" data-toggle="tooltip" title="public.php?show=month">
|
||||
<input type="checkbox" name="public_list[]" value="month" id="month" <?php if (in_array('month', $config['public_list'])) echo 'checked'; ?>><label for="month">最近30日</label>
|
||||
</label>
|
||||
<div class="panel">
|
||||
<div class="panel-body">
|
||||
<div class="form-group">
|
||||
<label class="checkbox-inline" data-toggle="tooltip" title="<?php echo $config['domain']; ?>/api/public.php?show=time">
|
||||
<input type="checkbox" name="public_list[]" value="time" id="time" <?php if (in_array('time', $config['public_list'])) echo 'checked'; ?>><label for="time">统计时间</label>
|
||||
</label>
|
||||
<label class="checkbox-inline" data-toggle="tooltip" title="public.php?show=today">
|
||||
<input type="checkbox" name="public_list[]" value="today" id="today" <?php if (in_array('today', $config['public_list'])) echo 'checked'; ?>><label for="today">今日</label>
|
||||
</label>
|
||||
<label class="checkbox-inline" data-toggle="tooltip" title="public.php?show=yesterday">
|
||||
<input type="checkbox" name="public_list[]" value="yesterday" id="yesterday" <?php if (in_array('yesterday', $config['public_list'])) echo 'checked'; ?>><label for="yesterday">昨日</label>
|
||||
</label>
|
||||
<label class="checkbox-inline" data-toggle="tooltip" title="public.php?show=total_space">
|
||||
<input type="checkbox" name="public_list[]" value="total_space" id="total_space" <?php if (in_array('total_space', $config['public_list'])) echo 'checked'; ?>><label for="total_space">总空间</label>
|
||||
</label>
|
||||
<label class="checkbox-inline" data-toggle="tooltip" title="public.php?show=used_space">
|
||||
<input type="checkbox" name="public_list[]" value="used_space" id="used_space" <?php if (in_array('used_space', $config['public_list'])) echo 'checked'; ?>><label for="used_space">已用</label>
|
||||
</label>
|
||||
<label class="checkbox-inline" data-toggle="tooltip" title="public.php?show=free_space">
|
||||
<input type="checkbox" name="public_list[]" value="free_space" id="free_space" <?php if (in_array('free_space', $config['public_list'])) echo 'checked'; ?>><label for="free_space">剩余</label>
|
||||
</label>
|
||||
<label class="checkbox-inline" data-toggle="tooltip" title="public.php?show=image_used">
|
||||
<input type="checkbox" name="public_list[]" value="image_used" id="image_used" <?php if (in_array('image_used', $config['public_list'])) echo 'checked'; ?>><label for="image_used">图片占用</label>
|
||||
</label>
|
||||
<label class="checkbox-inline" data-toggle="tooltip" title="public.php?show=file">
|
||||
<input type="checkbox" name="public_list[]" value="file" id="file" <?php if (in_array('file', $config['public_list'])) echo 'checked'; ?>><label for="file">文件数量</label>
|
||||
</label>
|
||||
<label class="checkbox-inline" data-toggle="tooltip" title="public.php?show=dir">
|
||||
<input type="checkbox" name="public_list[]" value="dir" id="dir" <?php if (in_array('dir', $config['public_list'])) echo 'checked'; ?>><label for="dir">文件夹数量</label>
|
||||
</label>
|
||||
<label class="checkbox-inline" data-toggle="tooltip" title="public.php?show=month">
|
||||
<input type="checkbox" name="public_list[]" value="month" id="month" <?php if (in_array('month', $config['public_list'])) echo 'checked'; ?>><label for="month">最近30日上传</label>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
@ -605,6 +610,7 @@ if (isset($_GET['recycle_reimg'])) {
|
|||
</form>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="Content7">
|
||||
<h5 class="header-dividing">可疑图片<small> 鉴黄查到的可疑图片</small></h5>
|
||||
<p>为了访问速度,仅显示最近20张图片;鉴黄需要在图床安全->图片鉴黄中开启</p>
|
||||
<p>key申请地址: <a href="https://client.moderatecontent.com/" target="_blank">https://client.moderatecontent.com/</a></p>
|
||||
<p>获得key后打开->API 设置->Moderate Key->填入 </p>
|
||||
|
@ -655,28 +661,26 @@ if (isset($_GET['recycle_reimg'])) {
|
|||
</div>
|
||||
<div class=" tab-pane fade" id="Content8">
|
||||
<div class="alert alert-primary">
|
||||
<h5>系统信息</h5>
|
||||
<hr />
|
||||
<h5 class="header-dividing">系统信息</h5>
|
||||
<p class="text-ellipsis">服务系统: <?PHP echo php_uname('s') . ' <small class="text-muted">' . php_uname() . '</small>'; ?></p>
|
||||
<p class="text-ellipsis">Web服务: <?PHP echo $_SERVER['SERVER_SOFTWARE']; ?></p>
|
||||
<p class="text-ellipsis">服务器IP: <?PHP echo $_SERVER["SERVER_ADDR"] ?></p>
|
||||
<p class="text-ellipsis">系统时间: <?PHP echo date("Y-m-d H:i:s"); ?></p>
|
||||
<p class="text-ellipsis">已用磁盘: <?php echo getDistUsed(disk_total_space(__DIR__) - disk_free_space(__DIR__)) ?></p>
|
||||
<p class="text-ellipsis">剩余磁盘: <?php echo getDistUsed(disk_free_space(__DIR__)); ?></p>
|
||||
<h5>PHP信息</h5>
|
||||
<hr />
|
||||
<p class="text-ellipsis">PHP Version: <?php echo phpversion(); ?></p>
|
||||
<p class="text-ellipsis">占用内存: <?php echo getDistUsed(memory_get_usage()); ?></p>
|
||||
<p class="text-ellipsis">占用磁盘: <?php echo getDistUsed(disk_total_space(__DIR__) - disk_free_space(__DIR__)) ?></p>
|
||||
<p class="text-ellipsis">剩余磁盘: <?php echo getDistUsed(disk_free_space(__DIR__)); ?></p>
|
||||
<h5 class="header-dividing">PHP信息</h5>
|
||||
<p class="text-ellipsis">PHP Version: <?php echo phpversion(); ?></p>
|
||||
<p class="text-ellipsis">PHP Model: <?PHP echo php_sapi_name(); ?></p>
|
||||
<p class="text-ellipsis">PHP Max UP: <?PHP echo get_cfg_var("upload_max_filesize"); ?></p>
|
||||
<p class="text-ellipsis">POST Max UP: <?php echo ini_get('post_max_size'); ?></p>
|
||||
<p class="text-ellipsis">PHP Max Time: <?PHP echo get_cfg_var("max_execution_time") . "秒"; ?></p>
|
||||
<p class="text-ellipsis">PHP Max Time: <?PHP echo get_cfg_var("max_execution_time") . "s"; ?></p>
|
||||
<p class="text-ellipsis">PHP Max Memery: <?PHP echo get_cfg_var("memory_limit"); ?></p>
|
||||
<p class="text-ellipsis">POST Max Upload: <?php echo ini_get('post_max_size'); ?></p>
|
||||
<p class="text-ellipsis">GD: <?php echo (gd_info()["GD Version"]); ?></p>
|
||||
<h5>我的信息</h5>
|
||||
<hr />
|
||||
<h5 class="header-dividing">我的信息</h5>
|
||||
<p class="text-ellipsis">Your IP: <?php echo real_ip(); ?></p>
|
||||
<p class="text-ellipsis">Browser: <?php echo $_SERVER['HTTP_USER_AGENT']; ?></p>
|
||||
<h5>图床信息</h5>
|
||||
<hr />
|
||||
<h5 class="header-dividing">图床信息</h5>
|
||||
<h6>API 插件</h6>
|
||||
<a href="https://microsoftedge.microsoft.com/addons/detail/%E7%AE%80%E5%8D%95%E5%9B%BE%E5%BA%8A-edge-version/hdafcoenpmebcjjcccojdlhfnndelefk" target="_blank"><span class="label label-badge label-success" data-toggle="tooltip" title="浏览器插件">Edge</span></a>
|
||||
<a href="https://github.com/icret/EasyImage-Browser-Extension" target="_blank"><span class="label label-badge label-success" data-toggle="tooltip" title="浏览器插件">Chrome</span></a>
|
||||
|
@ -708,6 +712,34 @@ if (isset($_GET['recycle_reimg'])) {
|
|||
</div>
|
||||
<div class="tab-pane fade" id="Content9">
|
||||
<form action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="post">
|
||||
<label data-toggle="tooltip" title="选择网站对外展示的一些功能和页面">页面展示开关</label>
|
||||
<div class="form-group">
|
||||
<div class="switch switch-inline" data-toggle="tooltip" title="上传后显示删除链接<br/>删除链接是经过加密的">
|
||||
<input type="hidden" name="show_user_hash_del" value="0">
|
||||
<input type="checkbox" name="show_user_hash_del" value="1" <?php if ($config['show_user_hash_del']) echo 'checked="checked"'; ?>>
|
||||
<label style="font-weight: bold">删除</label>
|
||||
</div>
|
||||
<div class="switch switch-inline" data-toggle="tooltip" title=" 关闭后非登录状态不显示广场图片">
|
||||
<input type="hidden" name="showSwitch" value="0">
|
||||
<input type="checkbox" name="showSwitch" value="1" <?php if ($config['showSwitch']) echo 'checked="checked"'; ?>>
|
||||
<label style="font-weight: bold">广场</label>
|
||||
</div>
|
||||
<div class="switch switch-inline" data-toggle="tooltip" title="广场图片以上传时间倒序 | 正序">
|
||||
<input type="hidden" name="showSort" value="0">
|
||||
<input type="checkbox" name="showSort" value="1" <?php if ($config['showSort']) echo 'checked="checked"'; ?>>
|
||||
<label style="font-weight: bold">排序</label>
|
||||
</div>
|
||||
<div class="switch switch-inline" data-toggle="tooltip" title="广场图片信息按钮">
|
||||
<input type="hidden" name="show_exif_info" value="0">
|
||||
<input type="checkbox" name="show_exif_info" value="1" <?php if ($config['show_exif_info']) echo 'checked="checked"'; ?>>
|
||||
<label style="font-weight: bold">Exif</label>
|
||||
</div>
|
||||
<div class="switch switch-inline" data-toggle="tooltip" title="图片过多时可能会影响统计时间">
|
||||
<input type="hidden" name="chart_on" value="0">
|
||||
<input type="checkbox" name="chart_on" value="1" <?php if ($config['chart_on']) echo 'checked="checked"'; ?>>
|
||||
<label style="font-weight: bold">统计</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label data-toggle="tooltip" title="配色样式文件夹位置: /public/static/zui/theme/">网站配色</label>
|
||||
<select class="chosen-select form-control" name="theme">
|
||||
|
@ -731,7 +763,11 @@ if (isset($_GET['recycle_reimg'])) {
|
|||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<h5>上传首选显示</h5>
|
||||
<label for="login_bg" data-toggle="tooltip" title="图片地址可以是相对路径或网址">登录背景图</label>
|
||||
<input type="text" class="form-control" id="login_bg" name="login_bg" value="<? if ($config['login_bg']) echo $config['login_bg']; ?>" placeholder="图片地址可以是相对路径或网址" onkeyup="this.value=this.value.replace(/\s/g,'')">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<h5>上传首选显示链接</h5>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="upload_first_show" value="1" data-toggle="tooltip" title="图片直链" <?php if ($config['upload_first_show'] == 1) echo 'checked'; ?>>
|
||||
<i class="icon icon-link"></i>
|
||||
|
@ -753,41 +789,6 @@ if (isset($_GET['recycle_reimg'])) {
|
|||
<i class="icon icon-trash"></i>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="switch switch-inline" data-toggle="tooltip" title="上传后显示删除链接<br/>删除链接是经过加密的">
|
||||
<input type="hidden" name="show_user_hash_del" value="0">
|
||||
<input type="checkbox" name="show_user_hash_del" value="1" <?php if ($config['show_user_hash_del']) echo 'checked="checked"'; ?>>
|
||||
<label style="font-weight: bold">删除</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="switch switch-inline" data-toggle="tooltip" title=" 关闭后非登录状态不显示图片">
|
||||
<input type="hidden" name="showSwitch" value="0">
|
||||
<input type="checkbox" name="showSwitch" value="1" <?php if ($config['showSwitch']) echo 'checked="checked"'; ?>>
|
||||
<label style="font-weight: bold">广场</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="switch switch-inline" data-toggle="tooltip" title="广场图片以上传时间倒序 | 正序">
|
||||
<input type="hidden" name="showSort" value="0">
|
||||
<input type="checkbox" name="showSort" value="1" <?php if ($config['showSort']) echo 'checked="checked"'; ?>>
|
||||
<label style="font-weight: bold">排序</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="switch switch-inline" data-toggle="tooltip" title="广场图片信息按钮">
|
||||
<input type="hidden" name="show_exif_info" value="0">
|
||||
<input type="checkbox" name="show_exif_info" value="1" <?php if ($config['show_exif_info']) echo 'checked="checked"'; ?>>
|
||||
<label style="font-weight: bold">Exif</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="switch switch-inline" data-toggle="tooltip" title="图片过多时可能会影响统计时间">
|
||||
<input type="hidden" name="chart_on" value="0">
|
||||
<input type="checkbox" name="chart_on" value="1" <?php if ($config['chart_on']) echo 'checked="checked"'; ?>>
|
||||
<label style="font-weight: bold">统计</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>广场默认浏览数量 | 当前: </label>
|
||||
<label id="listNumber"><?php echo $config['listNumber']; ?>张</label>
|
||||
|
@ -801,8 +802,9 @@ if (isset($_GET['recycle_reimg'])) {
|
|||
</form>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="Content10">
|
||||
<!-- 管理员账号 start-->
|
||||
<form action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="post" onsubmit="return md5_post()">
|
||||
<h5>管理员账号管理 | 不变就不要保存更改</h5>
|
||||
<h5 class="header-dividing">管理员账号<small> 不更改账号或者密码就不要保存</small></h5>
|
||||
<div class="form-group">
|
||||
<div class="input-control has-icon-left">
|
||||
<input type="text" name="user" id="account" class="form-control" value="<?php echo $config['user']; ?>" placeholder="更改管理账号" onkeyup="this.value=this.value.replace(/\s/g,'')">
|
||||
|
@ -817,7 +819,7 @@ if (isset($_GET['recycle_reimg'])) {
|
|||
<div class="form-group">
|
||||
<input type="hidden" class="form-control" name="update" value="<?php echo date("Y-m-d H:i:s"); ?>" placeholder="隐藏的保存">
|
||||
</div>
|
||||
<button type="submit" class="btn btn btn-primary">更改管理 账号/密码</button>
|
||||
<button type="submit" class="btn btn btn-primary">更改管理员 账号/密码</button>
|
||||
<div class="alert alert-primary with-icon col-xs-8" style="margin-top: 5px;">
|
||||
<i class="icon-info-sign"></i>
|
||||
<div class="content">
|
||||
|
@ -829,9 +831,8 @@ if (isset($_GET['recycle_reimg'])) {
|
|||
</div>
|
||||
</form>
|
||||
<!-- 上传用户管理 start-->
|
||||
<hr>
|
||||
<form action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="post" onsubmit="return uploader_md5_post()">
|
||||
<h5>上传者账号 | 开启登陆上传后只能上传的账号</h5>
|
||||
<h5 class="header-dividing">上传者账号<small> 账户只能用于上传</small></h5>
|
||||
<div class="form-group">
|
||||
<div class="input-control has-icon-left" data-toggle="tooltip" title="上传者账号只能上传不能操作其他项目">
|
||||
<input type="text" name="uploader_user" id="account" class="form-control" value="" required="required" placeholder="添加上传者账号" onkeyup="this.value=this.value.replace(/\s/g,'')">
|
||||
|
@ -846,7 +847,7 @@ if (isset($_GET['recycle_reimg'])) {
|
|||
<div class="form-group">
|
||||
<input type="hidden" class="form-control" name="uploader_form" value="<?php echo date("Y-m-d H:i:s"); ?>" placeholder="隐藏的保存">
|
||||
</div>
|
||||
<button type="submit" class="btn btn btn-danger">添加上传 账号/密码</button>
|
||||
<button type="submit" class="btn btn btn-danger">添加/更改 上传者 账号/密码</button>
|
||||
<div class="alert alert-primary with-icon col-xs-8" style="margin-top: 5px;">
|
||||
<i class="icon-info-sign"></i>
|
||||
<div class="content">
|
||||
|
@ -878,9 +879,21 @@ if (isset($_GET['recycle_reimg'])) {
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- 源图加密Key start-->
|
||||
<form action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="post">
|
||||
<h5 class="header-dividing">源图保护Key<small> *设定后请勿轻易更改,更改后所有源图加密链接失效</small></h5>
|
||||
<div class="form-group">
|
||||
<div class="input-control has-icon-left">
|
||||
<input type="text" class="form-control" name="hide_key" required="required" value="<?php echo $config['hide_key']; ?>" onkeyup="this.value=this.value.trim()">
|
||||
<label for="password" class="input-control-icon-left"><i class="icon icon-key"></i></label>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" class="form-control" name="update" value="<?php echo date("Y-m-d H:i:s"); ?>" placeholder="隐藏的保存">
|
||||
<button type="submit" class="btn btn btn-danger">保存源图加密Key</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="Content11">
|
||||
<h5>用户自行删除的会显示在这个页面</h5>
|
||||
<h5 class="header-dividing">图片回收<small> 用户自行删除的会显示在这个页面</small></h5>
|
||||
<p>为了访问速度,仅显示最近20张图片; 图片回收需要在图床安全->图片回收中开启</p>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-bordered table-condensed table-striped">
|
||||
|
@ -981,7 +994,8 @@ if (isset($_GET['recycle_reimg'])) {
|
|||
</div>
|
||||
<div class="tab-pane fade" id="Content13">
|
||||
<form action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="post">
|
||||
<h4 class="with-padding bg-success" style="text-align: center;">前端裁剪压缩 - 优点:服务器无压力 缺点:PC配置低的会导致浏览器卡顿,偶现丢失方向信息,仅支持JPG</h4>
|
||||
<h5 class="header-dividing">前端裁剪/压缩 <small>优点:服务器无压力 缺点:PC配置低的会导致浏览器卡顿,偶现丢失方向信息,仅支持JPG</small></h5>
|
||||
<!-- <h4 class="with-padding bg-success" style="text-align: center;">前端裁剪压缩 - 优点:服务器无压力 缺点:PC配置低的会导致浏览器卡顿,偶现丢失方向信息,仅支持JPG</h4> -->
|
||||
<div class="form-group">
|
||||
<div class="switch switch-inline" data-toggle="tooltip" title="控制以下五项 不开启下边五项不生效">
|
||||
<input type="hidden" name="imgRatio" value="0">
|
||||
|
@ -1015,7 +1029,8 @@ if (isset($_GET['recycle_reimg'])) {
|
|||
<label>前端压缩率(仅支持JPG) | 当前: </label><label id="imgRatio_quality"><?php echo $config['imgRatio_quality']; ?></label><label>%</label>
|
||||
<input type="range" class="form-control" name="imgRatio_quality" value="<?php echo $config['imgRatio_quality']; ?>" min="10" max="100" step="5" onchange="document.getElementById('imgRatio_quality').innerHTML=value">
|
||||
</div>
|
||||
<h4 class="with-padding bg-blue" style="text-align: center;">后端压缩 - 优点:避免用户端欺骗,效果更好 缺点:增加服务器压力</h4>
|
||||
<h5 class="header-dividing">后端压缩 <small>优点:避免用户端欺骗,效果更好 缺点:增加服务器压力</small></h5>
|
||||
<!-- <h4 class="with-padding bg-blue" style="text-align: center;">后端压缩 - 优点:避免用户端欺骗,效果更好 缺点:增加服务器压力</h4> -->
|
||||
<div class="form-group">
|
||||
<div class="switch switch-inline">
|
||||
<input type="hidden" name="compress" value="0">
|
||||
|
@ -1034,10 +1049,12 @@ if (isset($_GET['recycle_reimg'])) {
|
|||
</form>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="Content14">
|
||||
<h4>文件管理 <small>Tinyfilemanager是由作者定制开发,非必要请勿替换</small></h4>
|
||||
<!-- <h4>文件管理 <small>Tinyfilemanager是由作者定制开发,非必要请勿替换</small></h4> -->
|
||||
<h5 class="header-dividing">文件管理 <small>Tinyfilemanager是由作者定制开发,非必要请勿替换</small></h5>
|
||||
<a class="btn btn-mini btn-primary" href="<?php echo $config['domain'] . '/admin/manager.php?p=' . date('Y/m/d'); ?> " target="_blank" data-toggle="tooltip" title="使用Tinyfilemanager管理文件"><i class="icon icon-folder-open"> 文件管理</i></a>
|
||||
<hr />
|
||||
<h4>删除文件 <small>* 删除后不可恢复</small></h4>
|
||||
|
||||
<!-- <h4>删除文件 <small>* 删除后不可恢复</small></h4> -->
|
||||
<h5 class="header-dividing">删除文件 <small>* 删除后不可恢复</small></h5>
|
||||
<form class="form-inline" method="get" action="../application/del.php" id="form" name="delForm" target="_blank">
|
||||
<p id="delimgurl"></p>
|
||||
<div class="form-group">
|
||||
|
@ -1046,7 +1063,6 @@ if (isset($_GET['recycle_reimg'])) {
|
|||
</div>
|
||||
<button type="submit" class="btn btn-sm btn-primary" onClick="return confirm('确认要删除?\n* 删除文件后将无法恢复! ');">删除单文件</button>
|
||||
</form>
|
||||
<br />
|
||||
<form class="form-inline" action="<?php $_SERVER['SCRIPT_NAME']; ?>" method="post">
|
||||
<div class="form-group">
|
||||
<label for="delDir" class="text-danger">删除指定日期文件: </label>
|
||||
|
@ -1057,14 +1073,14 @@ if (isset($_GET['recycle_reimg'])) {
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript" src="<?php static_cdn(); ?>/public/static/jscolor/jscolor.min.js"></script>
|
||||
<link href="<?php static_cdn(); ?>/public/static/zui/lib/datetimepicker/datetimepicker.min.css" rel="stylesheet">
|
||||
<script src="<?php static_cdn(); ?>/public/static/zui/lib/datetimepicker/datetimepicker.min.js"></script>
|
||||
<script src="<?php static_cdn(); ?>/public/static/md5/md5.min.js"></script>
|
||||
<link href="<?php static_cdn(); ?>/public/static/zui/lib/datagrid/zui.datagrid.min.css" rel="stylesheet">
|
||||
<link href="<?php static_cdn(); ?>/public/static/zui/lib/datetimepicker/datetimepicker.min.css" rel="stylesheet">
|
||||
<script src="<?php static_cdn(); ?>/public/static/md5/md5.min.js"></script>
|
||||
<script src="<?php static_cdn(); ?>/public/static/jscolor/jscolor.min.js"></script>
|
||||
<script src="<?php static_cdn(); ?>/public/static/zui/lib/datagrid/zui.datagrid.min.js"></script>
|
||||
<script src="<?php static_cdn(); ?>/public/static/zui/lib/datetimepicker/datetimepicker.min.js"></script>
|
||||
<script>
|
||||
//
|
||||
// 水印字体颜色
|
||||
jscolor.presets.myPreset = {
|
||||
value: '<?php echo $config['textColor']; ?>',
|
||||
format: 'rgba',
|
||||
|
|
205
admin/index.php
205
admin/index.php
|
@ -9,62 +9,62 @@ require_once APP_ROOT . '/config/config.guest.php';
|
|||
// 验证登录
|
||||
header("Content-Type: text/html;charset=utf-8");
|
||||
if (isset($_REQUEST['code'])) {
|
||||
session_start();
|
||||
session_start();
|
||||
|
||||
if (strtolower($_REQUEST['code']) == $_SESSION['code']) {
|
||||
// 提交登录
|
||||
if (isset($_POST['password']) and isset($_POST['user'])) {
|
||||
if (strtolower($_REQUEST['code']) == $_SESSION['code']) {
|
||||
// 提交登录
|
||||
if (isset($_POST['password']) and isset($_POST['user'])) {
|
||||
|
||||
global $guestConfig;
|
||||
$postUser = strip_tags($_POST['user']);
|
||||
$postPWD = strip_tags($_POST['password']);
|
||||
global $guestConfig;
|
||||
$postUser = strip_tags($_POST['user']);
|
||||
$postPWD = strip_tags($_POST['password']);
|
||||
|
||||
if ($postUser == $config['user'] || in_array($postPWD, $guestConfig)) {
|
||||
if ($postPWD == $config['password'] || $postPWD == $guestConfig[$postUser]) {
|
||||
// 将账号密码序列化后存储
|
||||
$setCOK = serialize(array($postUser, $postPWD));
|
||||
if ($postUser == $config['user'] || in_array($postPWD, $guestConfig)) {
|
||||
if ($postPWD == $config['password'] || $postPWD == $guestConfig[$postUser]) {
|
||||
// 将账号密码序列化后存储
|
||||
$setCOK = serialize(array($postUser, $postPWD));
|
||||
|
||||
setcookie('auth', $setCOK, time() + 3600 * 24 * 14, '/');
|
||||
echo '
|
||||
setcookie('auth', $setCOK, time() + 3600 * 24 * 14, '/');
|
||||
echo '
|
||||
<script>
|
||||
new $.zui.Messager("登录成功", {type: "primary" // 定义颜色主题
|
||||
}).show();
|
||||
</script>';
|
||||
header("refresh:2;url=" . $config['domain'] . "");
|
||||
} else {
|
||||
echo '
|
||||
header("refresh:2;url=" . $config['domain'] . "");
|
||||
} else {
|
||||
echo '
|
||||
<script>
|
||||
new $.zui.Messager("密码错误", {type: "danger" // 定义颜色主题
|
||||
}).show();
|
||||
</script>';
|
||||
header("refresh:2;");
|
||||
}
|
||||
} else {
|
||||
echo '
|
||||
header("refresh:2;");
|
||||
}
|
||||
} else {
|
||||
echo '
|
||||
<script>
|
||||
new $.zui.Messager("账号不存在", {type: "danger" // 定义颜色主题
|
||||
}).show();
|
||||
</script>';
|
||||
header("refresh:2;");
|
||||
}
|
||||
}
|
||||
} else {
|
||||
echo '
|
||||
header("refresh:2;");
|
||||
}
|
||||
}
|
||||
} else {
|
||||
echo '
|
||||
<script>
|
||||
new $.zui.Messager("验证码错误!", {type: "danger" // 定义颜色主题
|
||||
}).show();
|
||||
</script>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 退出
|
||||
if (isset($_GET['login'])) {
|
||||
if ($_GET['login'] = 'logout') {
|
||||
if ($_GET['login'] = 'logout') {
|
||||
|
||||
if (isset($_COOKIE['auth'])) {
|
||||
setcookie('auth', null, time() - 1, '/');
|
||||
header("Refresh:2;url=../index.php");
|
||||
echo '
|
||||
if (isset($_COOKIE['auth'])) {
|
||||
setcookie('auth', null, time() - 1, '/');
|
||||
header("Refresh:2;url=../index.php");
|
||||
echo '
|
||||
<script>
|
||||
new $.zui.Messager("退出成功", {
|
||||
type: "success", // 定义颜色主题
|
||||
|
@ -74,8 +74,8 @@ if (isset($_GET['login'])) {
|
|||
window.setTimeout("window.location=\'../index.php\'",2000);
|
||||
</script>
|
||||
';
|
||||
} else {
|
||||
echo '
|
||||
} else {
|
||||
echo '
|
||||
<script>
|
||||
new $.zui.Messager("尚未登录", {
|
||||
type: "danger", // 定义颜色主题
|
||||
|
@ -85,78 +85,87 @@ if (isset($_GET['login'])) {
|
|||
window.setTimeout("window.location=\'./index.php\'",2000);
|
||||
</script>
|
||||
';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
<link href="<?php static_cdn(); ?>/public/static/login.css" rel="stylesheet">
|
||||
<!-- 忘记密码 -->
|
||||
<div class="modal fade" id="fogot">
|
||||
<div class="modal-dialog ">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">x</span><span class="sr-only">关闭</span></button>
|
||||
<h4 class="modal-title">
|
||||
<i class="icon icon-bell-alt"> </i>忘记账号/密码?
|
||||
</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p class="text-primary">忘记账号可以打开-><code>/config/config.php</code>文件->找到user对应的键值->填入</p>
|
||||
<p class="text-success">忘记密码请将密码->转换成MD5小写-><a href="https://md5jiami.bmcx.com/" target="_blank" class="text-purple">转换网址</a>->打开<code>/config/config.php</code>文件->找到password对应的键值->填入</p>
|
||||
<h4 class="text-danger">更改后会立即生效并重新登录,请务必牢记账号和密码! </h4>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-dialog ">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">x</span><span class="sr-only">关闭</span></button>
|
||||
<h4 class="modal-title">
|
||||
忘记账号/密码?
|
||||
</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p class="text-primary">忘记账号可以打开<code>/config/config.php</code>文件找到user对应的键值->填入</p>
|
||||
<p class="text-success">忘记密码请将密码转换成MD5小写(<a href="https://md5jiami.bmcx.com/" target="_blank" class="text-purple">转换网址</a>)->打开<code>/config/config.php</code>文件->找到password对应的键值->填入</p>
|
||||
<h4 class="text-danger">更改后会立即生效并重新登录,请务必牢记账号和密码! </h4>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<form class="form-horizontal" action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="post" onsubmit="return md5_post()">
|
||||
<div class="form-group">
|
||||
<label for="account" class="col-sm-2">账号</label>
|
||||
<div class="has-success col-md-3 col-sm-5">
|
||||
<input type="text" name="user" id="account" class="form-control" value="" placeholder="请输入登录账号" required="required">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password" class="col-sm-2">密码</label>
|
||||
<div class="has-success col-md-3 col-sm-5">
|
||||
<input type="password" name="password" id="password" class="form-control" value="" placeholder="请输入登录密码" required="required">
|
||||
</div>
|
||||
<input type="hidden" name="password" id="md5_password">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2">验证码</label>
|
||||
<div class="has-success col-md-3 col-sm-5">
|
||||
<label><img src="<?php echo $config["domain"] . "/application/captcha.php"; ?>" onClick="this.src='<?php echo $config["domain"] . "/application/captcha.php"; ?>?nocache='+Math.random()" title="点击换一张" /></label>
|
||||
<input class="form-control" type="text" name="code" value="" placeholder="请输入上方4位数验证码 - 不区分大小写" required="required" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<div class="checkbox">
|
||||
<label title="选不选都记得你,想退出就点击退出才可以哦!">
|
||||
<input type="checkbox" checked="checked"> 记住我
|
||||
</label>
|
||||
<label title="选不选都记得你,想退出就点击退出才可以哦!">
|
||||
<a href="#fogot" data-moveable="inside" data-remember-pos="false" data-toggle="modal" data-target="#fogot" data-position="center">忘记账号/密码?</a>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<button type="submit" class="btn btn-primary">登录</button>
|
||||
</div>
|
||||
</div>
|
||||
<section>
|
||||
<div class="container">
|
||||
<div class="user singinBx">
|
||||
<div class="imgBx">
|
||||
<img src="<?php echo $config['login_bg']; ?>" alt="简单图床登陆界面背景图" />
|
||||
</div>
|
||||
<div class="formBx">
|
||||
<form class="form-horizontal" action="/admin/index.php" method="post" onsubmit="return md5_post()">
|
||||
<h2>登录</h2>
|
||||
<label for="account" class="col-sm-2"></label>
|
||||
<input type="text" name="user" id="account" class="form-control" value="" placeholder="输入登录账号" autocomplete="off" required="required">
|
||||
<input type="password" name="password" id="password" class="form-control" value="" placeholder="输入登录密码" autocomplete="off" required="required">
|
||||
<input type="hidden" name="password" id="md5_password">
|
||||
<input class="form-control" type="text" name="code" value="" placeholder="输入下方4位数验证码" autocomplete="off" required="required" />
|
||||
<div class="form-group">
|
||||
<div class="col">
|
||||
<label><img src="<?php echo $config["domain"] . "/application/captcha.php"; ?>" onClick="this.src='<?php echo $config["domain"] . "/application/captcha.php"; ?>?nocache='+Math.random()" title="点击换一张" /></label>
|
||||
</div>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-block btn-primary">登 录</button>
|
||||
<p class="signup">忘记账号或密码请查看<a href="#fogot" data-moveable="inside" data-remember-pos="false" data-toggle="modal" data-target="#fogot" data-position="center">帮助信息</a></p>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="user singupBx">
|
||||
<div class="formBx">
|
||||
<form action="">
|
||||
<h2>注册</h2>
|
||||
<input type="text" name="telyzm" id="telyzm" placeholder="手机号">
|
||||
<input type="email" name="" placeholder="邮箱地址">
|
||||
<input type="password" name="" placeholder="设置密码">
|
||||
<input type="password" name="" placeholder="再次输入密码">
|
||||
<input type="submit" name="" value="注册">
|
||||
<p class="signup">已有账号?<a href="#" onclick="topggleForm();">登录</a></p>
|
||||
</form>
|
||||
</div>
|
||||
<div class="imgBx"><img src="<?php echo $config['login_bg']; ?>" alt="简单图床登陆界面背景图" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
<script src="<?php static_cdn(); ?>/public/static/md5/md5.min.js"></script>
|
||||
<script>
|
||||
function md5_post() {
|
||||
var password = document.getElementById('password');
|
||||
var md5pwd = document.getElementById('md5_password');
|
||||
md5pwd.value = md5(password.value);
|
||||
//可以校验判断表单内容,true就是通过提交,false,阻止提交
|
||||
return true;
|
||||
}
|
||||
function md5_post() {
|
||||
var password = document.getElementById('password');
|
||||
var md5pwd = document.getElementById('md5_password');
|
||||
md5pwd.value = md5(password.value);
|
||||
//可以校验判断表单内容,true就是通过提交,false,阻止提交
|
||||
return true;
|
||||
}
|
||||
|
||||
function topggleForm() {
|
||||
var container = document.querySelector('.container');
|
||||
container.classList.toggle('active');
|
||||
}
|
||||
</script>
|
||||
<?php require_once APP_ROOT . '/application/footer.php';
|
||||
|
|
|
@ -4,17 +4,25 @@
|
|||
*/
|
||||
require_once __DIR__ . '/../application/header.php';
|
||||
|
||||
/** 顶部广告 */
|
||||
if ($config['ad_top']) echo $config['ad_top_info'];
|
||||
|
||||
/** 加载使用条款 */
|
||||
if (empty($config['terms'])) {
|
||||
echo '<div class="alert alert-danger">Terms not set!<br />使用条款未设置</div>';
|
||||
echo '<div class="alert alert-danger">Terms not set!<br />未设置使用条款</div>';
|
||||
} else {
|
||||
echo $config['terms'];
|
||||
// echo '<div style="margin-bottom: 80px;"></div>';
|
||||
}
|
||||
|
||||
echo "
|
||||
/** 底部广告 */
|
||||
if ($config['ad_bot']) echo $config['ad_bot_info'];
|
||||
?>
|
||||
|
||||
<script>
|
||||
// Title
|
||||
document.title = '使用条款 - " . $config['title'] . "';
|
||||
document.title = '使用条款 - <?php echo $config['title']; ?>'
|
||||
</script>
|
||||
";
|
||||
|
||||
<?php
|
||||
require_once __DIR__ . '/../application/footer.php';
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Verot\Upload;
|
||||
|
||||
require_once __DIR__ . '/../application/function.php';
|
||||
require_once APP_ROOT . '/application/class.upload.php';
|
||||
require_once APP_ROOT . '/config/api_key.php';
|
||||
|
@ -38,7 +41,7 @@ if ($handle->uploaded) {
|
|||
// 允许上传的mime类型
|
||||
$handle->allowed = array('image/*');
|
||||
// 文件命名
|
||||
$handle->file_new_name_body = imgName($handle->file_src_name_body) . '_' . $tokenID;
|
||||
$handle->file_new_name_body = imgName($handle->file_src_name_body) . '-' . $tokenID;
|
||||
// 最大上传限制
|
||||
$handle->file_max_sizes = $config['maxSize'];
|
||||
// 最大宽度
|
||||
|
@ -67,8 +70,8 @@ if ($handle->uploaded) {
|
|||
$pathIMG = config_path() . $handle->file_dst_name;
|
||||
$imageUrl = $config['imgurl'] . $pathIMG;
|
||||
|
||||
// 原图保护 key值是由crc32加密的登录密码
|
||||
$hide_original = $config['hide'] == 1 ? $config['domain'] . '/application/hide.php?key=' . urlHash($pathIMG, 0, crc32($config['password'])) : $imageUrl;
|
||||
// 原图保护 key值是由crc32加密的hide_key
|
||||
$hide_original = $config['hide'] == 1 ? $config['domain'] . '/application/hide.php?key=' . urlHash($pathIMG, 0, crc32($config['hide_key'])) : $imageUrl;
|
||||
|
||||
// 关闭上传后显示加密删除链接
|
||||
if ($config['show_user_hash_del']) {
|
||||
|
|
|
@ -4,9 +4,9 @@ session_start(); //设置session
|
|||
require __DIR__ . "/function.php";
|
||||
|
||||
//创建背景画布
|
||||
$img_w = 270;
|
||||
$img_w = 305;
|
||||
/*宽*/
|
||||
$img_h = 50;
|
||||
$img_h = 54;
|
||||
|
||||
$img = imagecreatetruecolor($img_w, $img_h);
|
||||
$bg_color = imagecolorallocate($img, 0xcc, 0xcc, 0xcc);
|
||||
|
|
|
@ -38,10 +38,10 @@ file_put_contents(APP_ROOT . '/config/EasyIamge.lock', '安装环境检测锁定
|
|||
foreach ($expand as $val) {
|
||||
if (extension_loaded($val)) {
|
||||
echo '
|
||||
<p style="color:green">' . $val . " - 已安装</p>";
|
||||
<p style="color:green">' . strtoupper($val) . " - 已安装</p>";
|
||||
} else {
|
||||
echo "<script language='javascript'>alert('$val - 未安装')</script>";
|
||||
echo '<p style="color:red">' . $val . " - 未安装</p>";
|
||||
echo '<p style="color:red">' . strtoupper($val) . " - 未安装</p>";
|
||||
}
|
||||
}
|
||||
// 文件权限检测
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
// | This script is free to use, don't abuse. |
|
||||
// +------------------------------------------------------------------------+
|
||||
|
||||
// namespace Verot\Upload;
|
||||
namespace Verot\Upload;
|
||||
|
||||
if (!defined('IMG_WEBP')) define('IMG_WEBP', 32);
|
||||
|
||||
|
|
|
@ -482,7 +482,7 @@ function urlHash($data, $mode, $key = null)
|
|||
{
|
||||
global $config;
|
||||
|
||||
if ($key) {
|
||||
if (!$key) {
|
||||
$key = $config['password'];
|
||||
}
|
||||
|
||||
|
|
|
@ -4,14 +4,16 @@
|
|||
* Program: EasyImage2.0
|
||||
* Author: Icret
|
||||
* Date: 2022/3/13 20:11
|
||||
* For: 原图保护解密
|
||||
* For: 源图保护解密
|
||||
*/
|
||||
|
||||
require_once __DIR__ . '/function.php';
|
||||
|
||||
|
||||
|
||||
if (isset($_GET['key'])) {
|
||||
$hide_original = $_GET['key'];
|
||||
$real_path = APP_ROOT . urlHash($hide_original, 1, crc32($config['password']));
|
||||
$real_path = APP_ROOT . urlHash($hide_original, 1, crc32($config['hide_key']));
|
||||
} else {
|
||||
$real_path = APP_ROOT . '/public/images/404.png';
|
||||
}
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
<?php require_once __DIR__ . '/header.php';
|
||||
<?php
|
||||
|
||||
/** 广场页面 */
|
||||
require_once __DIR__ . '/header.php';
|
||||
/** 顶部广告 */
|
||||
if ($config['ad_top']) echo $config['ad_top_info'];
|
||||
?>
|
||||
<div class="row" style="margin-bottom:100px">
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
|
||||
<?php
|
||||
|
||||
namespace Verot\Upload;
|
||||
|
||||
require __DIR__ . '/function.php';
|
||||
require __DIR__ . '/class.upload.php';
|
||||
|
||||
|
@ -70,8 +72,8 @@ if ($handle->uploaded) {
|
|||
$pathIMG = config_path() . $handle->file_dst_name;
|
||||
$imageUrl = $config['imgurl'] . $pathIMG;
|
||||
|
||||
// 原图保护 key值是由crc32加密的登录密码
|
||||
$hide_original = $config['hide'] == 1 ? $config['domain'] . '/application/hide.php?key=' . urlHash($pathIMG, 0, crc32($config['password'])) : $imageUrl;
|
||||
// 原图保护 key值是由crc32加密的hide_key
|
||||
$hide_original = $config['hide'] == 1 ? $config['domain'] . '/application/hide.php?key=' . urlHash($pathIMG, 0, crc32($config['hide_key'])) : $imageUrl;
|
||||
|
||||
// 关闭上传后显示加密删除链接
|
||||
if ($config['show_user_hash_del']) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php
|
||||
<?php
|
||||
$guestConfig=Array
|
||||
(
|
||||
'guest'=>'084e0343a0486ff05530df6c705c8bb4'
|
||||
|
|
|
@ -1,55 +1,55 @@
|
|||
<?php
|
||||
$config=Array
|
||||
(
|
||||
'title'=>'简单图床 - EasyImage',
|
||||
'keywords'=>'简单图床,easyimage,easyimage2.0,无数据库图床,PHP多图长传程序,自适应页面,HTML5,markdown,bbscode,一键复制',
|
||||
'description'=>'简单图床EasyImage是一款支持多文件上传的无数据库图床,可以完美替代PHP多图上传程序,最新html5自适应页面兼容手机电脑,上传后返回图片直链,markdown图片,论坛贴图bbscode链接,简单方便支持一键复制,支持多域名,api上传',
|
||||
$config=Array
|
||||
(
|
||||
'title'=>'简单图床 - EasyImage',
|
||||
'keywords'=>'简单图床,easyimage,easyimage2.0,无数据库图床,PHP多图长传程序,自适应页面,HTML5,markdown,bbscode,一键复制',
|
||||
'description'=>'简单图床EasyImage是一款支持多文件上传的无数据库图床,可以完美替代PHP多图上传程序,最新html5自适应页面兼容手机电脑,上传后返回图片直链,markdown图片,论坛贴图bbscode链接,简单方便支持一键复制,支持多域名,api上传',
|
||||
'tips'=>'<a href="https://github.com/icret/EasyImages2.0" target="_black"><i class="icon icon-github"> 如果你喜欢这种图床风格就下载喔 (๑•̀ㅂ•́)و✧</i></a>
|
||||
<a href="https://github.com/icret/EasyImages2.0" target="_black"><i class="icon icon-heart"> 简单图床是一款开源图床, 支持多文件上传无数据库</i></a>
|
||||
<a><li class="icon icon-bullhorn text-muted"> 单文件≤10M,单次上传≤30张</li></a>',
|
||||
'notice_status'=>0,
|
||||
<a><li class="icon icon-bullhorn text-muted"> 单文件≤10M,单次上传≤30张</li></a>',
|
||||
'notice_status'=>0,
|
||||
'notice'=>'<p>简单图床是一款开源图床, 支持多文件上传无数据库;</p>
|
||||
<p>如果你喜欢这种图床风格就<a href="https://github.com/icret/EasyImages2.0" target="_black">下载</a>喔 (๑•̀ㅂ•́)و✧</p>',
|
||||
'domain'=>'http://127.0.0.1',
|
||||
'imgurl'=>'http://127.0.0.1',
|
||||
'user'=>'admin',
|
||||
'password'=>'e6e061838856bf47e1de730719fb2609',
|
||||
'mustLogin'=>0,
|
||||
'apiStatus'=>0,
|
||||
'path'=>'/i/',
|
||||
'imgName'=>'default',
|
||||
'maxSize'=>10485760,
|
||||
'maxUploadFiles'=>30,
|
||||
'watermark'=>0,
|
||||
'waterText'=>'简单图床 - png.cm',
|
||||
'waterPosition'=>5,
|
||||
'textColor'=>'rgba(255,0,0,1)',
|
||||
'textSize'=>50,
|
||||
'textFont'=>'/public/static/hkxzy.ttf',
|
||||
'waterImg'=>'/public/images/watermark.png',
|
||||
'extensions'=>'gif,jpeg,png,tif,bmp,tif,svg,webp,jpg,tga,svg,ico',
|
||||
'compress'=>0,
|
||||
'compress_ratio'=>80,
|
||||
'thumbnail'=>1,
|
||||
'imgConvert'=>'',
|
||||
'maxWidth'=>10240,
|
||||
'maxHeight'=>10240,
|
||||
'minWidth'=>5,
|
||||
'minHeight'=>5,
|
||||
'imgRatio'=>0,
|
||||
'image_x'=>0,
|
||||
'image_y'=>0,
|
||||
'imgRatio_quality'=>80,
|
||||
'imgRatio_crop'=>0,
|
||||
'imgRatio_preserve_headers'=>1,
|
||||
'static_cdn'=>0,
|
||||
'theme'=>'default',
|
||||
'static_cdn_url'=>'https://cdn.jsdelivr.net/gh/icret/EasyImages2.0',
|
||||
'TinyPng_key'=>'',
|
||||
'checkImg'=>0,
|
||||
'checkImg_value'=>50,
|
||||
'moderatecontent_key'=>'',
|
||||
'nsfwjs_url'=>'',
|
||||
<p>如果你喜欢这种图床风格就<a href="https://github.com/icret/EasyImages2.0" target="_black">下载</a>喔 (๑•̀ㅂ•́)و✧</p>',
|
||||
'domain'=>'http://127.0.0.1',
|
||||
'imgurl'=>'http://127.0.0.1',
|
||||
'user'=>'admin',
|
||||
'password'=>'e6e061838856bf47e1de730719fb2609',
|
||||
'mustLogin'=>0,
|
||||
'apiStatus'=>1,
|
||||
'path'=>'/i/',
|
||||
'imgName'=>'default',
|
||||
'maxSize'=>10485760,
|
||||
'maxUploadFiles'=>30,
|
||||
'watermark'=>2,
|
||||
'waterText'=>'简单图床 - png.cm',
|
||||
'waterPosition'=>0,
|
||||
'textColor'=>'rgba(255,0,0,1)',
|
||||
'textSize'=>50,
|
||||
'textFont'=>'/public/static/hkxzy.ttf',
|
||||
'waterImg'=>'/public/images/watermark.png',
|
||||
'extensions'=>'gif,jpeg,png,tif,bmp,tif,svg,webp,jpg,tga,svg,ico',
|
||||
'compress'=>0,
|
||||
'compress_ratio'=>80,
|
||||
'thumbnail'=>1,
|
||||
'imgConvert'=>'',
|
||||
'maxWidth'=>10240,
|
||||
'maxHeight'=>10240,
|
||||
'minWidth'=>5,
|
||||
'minHeight'=>5,
|
||||
'imgRatio'=>0,
|
||||
'image_x'=>0,
|
||||
'image_y'=>0,
|
||||
'imgRatio_quality'=>80,
|
||||
'imgRatio_crop'=>0,
|
||||
'imgRatio_preserve_headers'=>1,
|
||||
'static_cdn'=>0,
|
||||
'theme'=>'default',
|
||||
'static_cdn_url'=>'https://cdn.jsdelivr.net/gh/icret/EasyImages2.0',
|
||||
'TinyPng_key'=>'',
|
||||
'checkImg'=>0,
|
||||
'checkImg_value'=>50,
|
||||
'moderatecontent_key'=>'',
|
||||
'nsfwjs_url'=>'',
|
||||
'footer'=>'<a href="/admin/terms.php" target="_blank">请勿上传违反中国政策的图片</a>
|
||||
<script>
|
||||
var _hmt = _hmt || [];
|
||||
|
@ -59,53 +59,55 @@ var _hmt = _hmt || [];
|
|||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
</script>',
|
||||
'ad_top'=>0,
|
||||
</script>',
|
||||
'ad_top'=>0,
|
||||
'ad_top_info'=>' <!--广告 按照这个范例替换相应链接,如果想多几个广告,就多复制几个-->
|
||||
<div class="col-md-12" style="text-align: center;margin:2px;">
|
||||
<a href="https://app.cloudcone.com.cn/?ref=3521" target="_blank"><img src="/public/images/EasyImage2.0.png" /></a>
|
||||
</div>',
|
||||
'ad_bot'=>0,
|
||||
'ad_bot_info'=>'<div class="col-md-12" style="text-align: center;">
|
||||
</div>',
|
||||
'ad_bot'=>0,
|
||||
'ad_bot_info'=>'<div class="col-md-12" style="text-align: center;margin-bottom:10px;">
|
||||
<a href="../public/images/wechat.jpg" alt="您的赞美是我开发的动力!" data-toggle="lightbox" class="btn btn-mini" style="color:#329d38;" data-lightbox-group="group1644998953432"><i class="icon icon-wechat"></i> 打赏作者</a>
|
||||
<a href="../public/images/alipay.jpg" alt="您的赞美是我开发的动力!" data-toggle="lightbox" class="btn btn-mini" style="color:#1970fc;" data-lightbox-group="group1644998953432"><i class="icon icon-zhifubao"></i> 打赏作者</a>
|
||||
</div>',
|
||||
'showSwitch'=>1,
|
||||
'showSort'=>1,
|
||||
'listNumber'=>20,
|
||||
'customize'=>'',
|
||||
'checkEnv'=>1,
|
||||
'upload_logs'=>1,
|
||||
'cache_freq'=>2,
|
||||
'upload_first_show'=>1,
|
||||
'show_user_hash_del'=>1,
|
||||
'show_exif_info'=>1,
|
||||
'chart_on'=>1,
|
||||
'check_ip'=>0,
|
||||
'check_ip_model'=>0,
|
||||
'check_ip_list'=>'',
|
||||
'public'=>0,
|
||||
'public_list'=>Array
|
||||
(
|
||||
0=>'time',
|
||||
1=>'today',
|
||||
2=>'yesterday',
|
||||
3=>'total_space',
|
||||
4=>'used_space',
|
||||
5=>'free_space',
|
||||
6=>'image_used',
|
||||
7=>'file',
|
||||
8=>'dir',
|
||||
9=>'month'
|
||||
),
|
||||
'language'=>0,
|
||||
'image_recycl'=>1,
|
||||
'tinyfilemanager'=>1,
|
||||
'delDir'=>'thumbnails/',
|
||||
'hide'=>0,
|
||||
'version'=>'2.5.9',
|
||||
'update'=>'2022-04-16 13:19:50',
|
||||
'terms'=>'<div class="container">
|
||||
</div>',
|
||||
'showSwitch'=>1,
|
||||
'showSort'=>1,
|
||||
'listNumber'=>20,
|
||||
'customize'=>'',
|
||||
'checkEnv'=>1,
|
||||
'upload_logs'=>1,
|
||||
'cache_freq'=>2,
|
||||
'upload_first_show'=>1,
|
||||
'show_user_hash_del'=>1,
|
||||
'show_exif_info'=>1,
|
||||
'chart_on'=>1,
|
||||
'check_ip'=>0,
|
||||
'check_ip_model'=>0,
|
||||
'check_ip_list'=>'',
|
||||
'public'=>0,
|
||||
'public_list'=>Array
|
||||
(
|
||||
0=>'time',
|
||||
1=>'today',
|
||||
2=>'yesterday',
|
||||
3=>'total_space',
|
||||
4=>'used_space',
|
||||
5=>'free_space',
|
||||
6=>'image_used',
|
||||
7=>'file',
|
||||
8=>'dir',
|
||||
9=>'month'
|
||||
),
|
||||
'language'=>0,
|
||||
'login_bg'=>'https://png.cm/public/images/login_bg.jpg',
|
||||
'image_recycl'=>1,
|
||||
'tinyfilemanager'=>1,
|
||||
'delDir'=>'thumbnails/',
|
||||
'hide'=>0,
|
||||
'hide_key'=>'EasyImage2.0',
|
||||
'version'=>'2.6.0',
|
||||
'update'=>'2022-04-29 16:38:49',
|
||||
'terms'=>'<div class="container" style="margin-bottom: 80px;">
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
<ul class="nav nav-tabs nav-stacked">
|
||||
|
@ -188,5 +190,5 @@ var _hmt = _hmt || [];
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>'
|
||||
</div>'
|
||||
);
|
|
@ -62,7 +62,7 @@ function checkPASS($name)
|
|||
<body class="container">
|
||||
<!-- install header html end -->
|
||||
|
||||
<h1 style="text-align:center">EasyIamge 2.0 安装环境检测</h1>
|
||||
<h1 class="header-dividing" style="text-align:center">EasyIamge 2.0 安装环境检测</h1>
|
||||
<table class="table table-hover table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -113,10 +113,12 @@ function checkPASS($name)
|
|||
$checkres = array($phpEnv, $fileinfo, $gd, $i_wjj, $file_php, $userINI);
|
||||
|
||||
if (in_array(false, $checkres)) : ?>
|
||||
<p class="text-primary">对于Liunx主机可以使用以下命令: <a href="./README/chmod.png" data-toggle="lightbox" class="btn btn-mini btn-primary">宝塔面板演示</a></p>
|
||||
<p class="text-primary">如果使用Liunx主机权限错误可以使用以下命令: </p>
|
||||
<h6 class="code">chmod 755 -R /data/wwwroot/<?php echo $_SERVER['HTTP_HOST']; ?></h6>
|
||||
<h6 class="code">chown -R www:www /data/wwwroot/<?php echo $_SERVER['HTTP_HOST']; ?></h6>
|
||||
<p class="text-danger">如果你的PHP版本较低或者不想安装上述PHP扩展请删除<code>install</code>目录</p>
|
||||
<a href="./README/chmod.png" data-toggle="lightbox" class="btn btn-mini btn-primary">宝塔面板赋予权限演示</a>
|
||||
<hr />
|
||||
<p class="text-danger">如果你不想安装上述PHP扩展或跳过安装过程请删除<code>install</code>目录 <a href="https://www.kancloud.cn/easyimage/easyimage/2635850" target="_blank" class="btn btn-mini btn-primary">跳过安装页面</a></p>
|
||||
<a href="./index.php"><button class="btn btn-danger" type="button">请满足上述要求后点击刷新</button></a>
|
||||
<?php else : ?>
|
||||
<form action="install.php" method="post">
|
||||
|
|
|
@ -48,7 +48,7 @@ if ($state !== 'checked') {
|
|||
|
||||
<body class="container">
|
||||
<!-- install header html end -->
|
||||
<div class="col-md-12" style="height: 120px;"></div>
|
||||
<h1 class="header-dividing" style="text-align:center">EasyIamge 2.0 网站配置</h1>
|
||||
<div class="col-md-12" style="text-align: center;">
|
||||
<form class="form-horizontal" action="./contorl.php" method="post">
|
||||
<div class="form-group">
|
||||
|
@ -76,7 +76,6 @@ if ($state !== 'checked') {
|
|||
<input type="text" class="form-control inp" name="password" value="" required="required" placeholder="请使用英文输入法输入密码并不小于8位数" onkeyup="this.value=this.value.replace(/\s/g,'')">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 ">确认密码</label>
|
||||
<div class="col-md-6 col-sm-10">
|
||||
|
@ -103,20 +102,6 @@ if ($state !== 'checked') {
|
|||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<script>
|
||||
var password = document.querySelector('.inp');
|
||||
var message = document.querySelector('.message');
|
||||
|
||||
password.onblur = function() {
|
||||
if (this.value.length < 8 || this.value.length > 18) {
|
||||
message.innerHTML = '密码长度错误,应为8~18位';
|
||||
message.className = 'message wrong';
|
||||
} else {
|
||||
message.innerHTML = '密码长度正确';
|
||||
message.className = 'message right';
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<!-- install bottom HTML start -->
|
||||
<div class="modal fade" id="myModal">
|
||||
<div class="modal-dialog modal-sm">
|
||||
|
@ -139,12 +124,27 @@ if ($state !== 'checked') {
|
|||
</div>
|
||||
</div>
|
||||
<script>
|
||||
// 双重验证密码
|
||||
var password = document.querySelector('.inp');
|
||||
var message = document.querySelector('.message');
|
||||
|
||||
password.onblur = function() {
|
||||
if (this.value.length < 8 || this.value.length > 18) {
|
||||
message.innerHTML = '密码长度错误,应为8~18位';
|
||||
message.className = 'message wrong';
|
||||
} else {
|
||||
message.innerHTML = '密码长度正确';
|
||||
message.className = 'message right';
|
||||
}
|
||||
}
|
||||
|
||||
// NProgress
|
||||
NProgress.configure({
|
||||
showSpinner: false
|
||||
});
|
||||
NProgress.set(0.5);
|
||||
NProgress.set(0.9);
|
||||
|
||||
// js二维码 获取当前网址并赋值给id=text的value
|
||||
document.getElementById("text").value = window.location.href;
|
||||
var qrcode = new QRCode(document.getElementById("qrcode"), {
|
||||
|
|
|
@ -0,0 +1,203 @@
|
|||
/** 登录页设计来源于https://www.xiaofb.net/ */
|
||||
|
||||
* {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
box-sizing: border-box;
|
||||
font-family: 'Poppins', sans-serif;
|
||||
}
|
||||
|
||||
@keyframes bgAnimation {
|
||||
0% {
|
||||
background-position: 0% 50%;
|
||||
}
|
||||
50% {
|
||||
background-position: 100% 50%;
|
||||
}
|
||||
100% {
|
||||
background-position: 0% 50%;
|
||||
}
|
||||
}
|
||||
/* 设置整个表单参数 (父盒子)*/
|
||||
|
||||
section {
|
||||
position: relative;
|
||||
min-height: 100%;
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
padding-top: 5%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
section .container {
|
||||
position: relative;
|
||||
width: 800px;
|
||||
height: 500px;
|
||||
border-radius: 0.5em;
|
||||
background: #fff;
|
||||
box-shadow: 0 20px 20px rgba(0, 0, 0, 0.3);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
section .container .user {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
}
|
||||
/* 更改图片 (左侧)*/
|
||||
|
||||
section .container .imgBx {
|
||||
position: relative;
|
||||
width: 50%;
|
||||
height: 100%;
|
||||
background: #fff;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 40px;
|
||||
transition: 0.8s;
|
||||
}
|
||||
|
||||
section .container .user .imgBx img {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
/* 右侧表单盒子 */
|
||||
|
||||
section .container .user .formBx {
|
||||
position: relative;
|
||||
width: 50%;
|
||||
height: 100%;
|
||||
background: #fff;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 40px;
|
||||
transition: .5s;
|
||||
}
|
||||
/* h2 */
|
||||
|
||||
section .container .user .formBx form h2 {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
/*大小*/
|
||||
letter-spacing: 2px;
|
||||
/* 间距*/
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
margin-bottom: 10px;
|
||||
color: #555;
|
||||
}
|
||||
/* 表单文字属性 */
|
||||
|
||||
section .container .user .formBx form input {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
background: #f5f5f5;
|
||||
color: #333;
|
||||
border: none;
|
||||
outline: none;
|
||||
box-shadow: none;
|
||||
margin: 8px 0;
|
||||
font-size: 14px;
|
||||
letter-spacing: 1px;
|
||||
font-weight: 300;
|
||||
}
|
||||
/* 为登录设置样式 */
|
||||
|
||||
section .container .user .formBx form input[type="submit"] {
|
||||
max-width: 100px;
|
||||
background: #677eff;
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
border-radius: 0.5em;
|
||||
letter-spacing: 1px;
|
||||
transition: .5s;
|
||||
}
|
||||
/* 没有账号时 */
|
||||
|
||||
section .container .user .formBx form .signup {
|
||||
position: relative;
|
||||
margin-top: 20px;
|
||||
font-size: 12px;
|
||||
letter-spacing: 1px;
|
||||
color: #555;
|
||||
text-transform: uppercase;
|
||||
font-weight: 300;
|
||||
}
|
||||
/* 验证码样式 */
|
||||
|
||||
section .col {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
section .container .user .formBx form .signup a {
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
color: #677eff;
|
||||
}
|
||||
|
||||
section .container .singupBx {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
section .container.active .singupBx {
|
||||
pointer-events: initial;
|
||||
}
|
||||
|
||||
section .container .singupBx .formBx {
|
||||
left: 100%;
|
||||
}
|
||||
|
||||
section .container.active .singupBx .formBx {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
section .container .singupBx .imgBx {
|
||||
left: -100%;
|
||||
}
|
||||
|
||||
section .container.active .singupBx .imgBx {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
section .container .singinBx .formBx {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
section .container.active .singinBx .formBx {
|
||||
left: 100%;
|
||||
}
|
||||
|
||||
section .container .singinBx .imgBx {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
section .container.active .singinBx .imgBx {
|
||||
left: -100%;
|
||||
}
|
||||
|
||||
@media (max-width: 991px) {
|
||||
section .container {
|
||||
max-width: 400px;
|
||||
}
|
||||
section .container .imgBx {
|
||||
display: none;
|
||||
}
|
||||
section .container .user .formBx {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue