pull/141/head
icret 2023-03-11 00:36:37 +08:00
parent 700e001de1
commit 31b39e1070
6 changed files with 19 additions and 31 deletions

View File

@ -3,6 +3,7 @@
* 简单图床设置页面 * 简单图床设置页面
* 2022-1-24 05:57:35 * 2022-1-24 05:57:35
*/ */
require_once __DIR__ . '/../app/header.php'; require_once __DIR__ . '/../app/header.php';
require_once APP_ROOT . '/config/api_key.php'; require_once APP_ROOT . '/config/api_key.php';
require_once APP_ROOT . '/config/config.guest.php'; require_once APP_ROOT . '/config/config.guest.php';
@ -733,6 +734,13 @@ auto_delete(); //定时删除
<label style="font-weight: bold">显示统计</label> <label style="font-weight: bold">显示统计</label>
</div> </div>
</div> </div>
<div class="col-md-2">
<div class="switch switch-inline" data-toggle="tooltip" title="关闭后将不能进入后台设置<br/>再次开启需修改config.php: <code>'show_admin_inc'=>0</code>">
<input type="hidden" name="show_admin_inc" value="0">
<input type="checkbox" name="show_admin_inc" value="1" <?php if ($config['show_admin_inc']) echo 'checked="checked"'; ?>>
<label style="font-weight: bold">显示设置</label>
</div>
</div>
<div class="col-md-2"> <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="showSort" value="0"> <input type="hidden" name="showSort" value="0">
@ -770,19 +778,12 @@ auto_delete(); //定时删除
</div> </div>
</div> </div>
<div class="col-md-2"> <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扩展 | 安全设置 | 鉴黄 | 版本 | 文件路径 | DEBUG">
<input type="hidden" name="checkEnv" value="0"> <input type="hidden" name="checkEnv" value="0">
<input type="checkbox" name="checkEnv" value="1" <?php if ($config['checkEnv']) echo 'checked="checked"'; ?>> <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> </div>
<div class="col-md-2">
<div class="switch switch-inline" data-toggle="tooltip" title="Debug - 调试模式 <br/>页面可能会出现一些乱码">
<input type="hidden" name="Debug" value="0">
<input type="checkbox" name="Debug" value="1" <?php if ($config['Debug']) echo 'checked="checked"'; ?>>
<label style="font-weight: bold">DEBUG</label>
</div>
</div>
</div> </div>
<div class="col-md-12"> <div class="col-md-12">
<div class="panel"> <div class="panel">
@ -1073,11 +1074,6 @@ auto_delete(); //定时删除
<input type="checkbox" name="info_rand_pic" value="1" <?php if ($config['info_rand_pic']) echo 'checked="checked"'; ?>> <input type="checkbox" name="info_rand_pic" value="1" <?php if ($config['info_rand_pic']) echo 'checked="checked"'; ?>>
<label style="font-weight: bold">随机图片</label> <label style="font-weight: bold">随机图片</label>
</div> </div>
<div class="switch switch-inline" data-toggle="tooltip" title="关闭后将不能进入后台设置<br/>再次开启需修改config.php: <code>'show_admin_inc'=>0</code>">
<input type="hidden" name="show_admin_inc" value="0">
<input type="checkbox" name="show_admin_inc" value="1" <?php if ($config['show_admin_inc']) echo 'checked="checked"'; ?>>
<label style="font-weight: bold">图床设置</label>
</div>
</div> </div>
<div class="form-group col-md-3"> <div class="form-group col-md-3">
<label data-toggle="tooltip" title="暂支持中文简繁体转换">界面语言</label> <label data-toggle="tooltip" title="暂支持中文简繁体转换">界面语言</label>

View File

@ -47,7 +47,7 @@ require_once __DIR__ . '/WaterMask.php';
function easyimage_debug() function easyimage_debug()
{ {
global $config; global $config;
if ($config['Debug']) { if ($config['checkEnv']) {
if (!ini_get('display_errors')) { if (!ini_get('display_errors')) {
ini_set('display_errors', 'On'); ini_set('display_errors', 'On');

View File

@ -1,22 +1,16 @@
<?php <?php
$tokenList=Array $tokenList=Array
( (
'8337effca0ddfcd9c5899f3509b23657'=>Array 'd5edb4e962a017bd99d1b71195f39fa9'=>Array
( (
'id'=>0, 'id'=>0,
'expired'=>3373722730, 'expired'=>1678456553,
'add_time'=>1645722730 'add_time'=>1678456540
), ),
'1c17b11693cb5ec63859b091c5b9c1b2'=>Array 'c6f219a19723c75d3943e23599cb6c45'=>Array
( (
'id'=>1, 'id'=>1,
'expired'=>2509722743, 'expired'=>1937656547,
'add_time'=>1645722743 'add_time'=>1678456547
),
'71bedf5695ec492ad4a7f8f907d4219c'=>Array
(
'id'=>0,
'expired'=>1652080021,
'add_time'=>1652080015
) )
); );

File diff suppressed because one or more lines are too long

View File

@ -11,8 +11,7 @@ Deny from all
```Nginx ```Nginx
# "i|public"是你要禁止的目录 放到listen段落之后才生效 # "i|public"是你要禁止的目录 放到listen段落之后才生效
location ~* ^/(i|public)/.*\.(php|php5)$ location ~* ^/(config|docs|i|public)/.*\.(php|php5)$ {
{
deny all; deny all;
} }
``` ```
@ -20,7 +19,7 @@ Deny from all
- Lighthttpd环境禁止多个目录运行`PHP`程序: - Lighthttpd环境禁止多个目录运行`PHP`程序:
```Lighthttpd ```Lighthttpd
$HTTP["url"] =~ "^/(i|public)/" { $HTTP["url"] =~ "^/(config|docs|i|public)/" {
fastcgi.server = () fastcgi.server = ()
} }
``` ```

BIN
i/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 525 B