From 64f1f370fb83ed7a6451471c24615a938aac4e1c Mon Sep 17 00:00:00 2001 From: xushubieli Date: Mon, 16 May 2022 14:55:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=80=89=E6=8B=A9=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E5=AD=97=E6=AE=B5=E6=A0=B7=E5=BC=8F=EF=BC=8C?= =?UTF-8?q?=E4=BC=9A=E5=91=98=E5=88=86=E9=A1=B510=E6=9D=A1=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=EF=BC=8C=E7=A9=BA=E6=A0=BC=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/file_manage_control.php | 2 +- src/admin/index_body.php | 4 +- src/admin/templets/file_manage_main.htm | 2 +- src/admin/templets/index.htm | 8 +- src/admin/templets/shops_operations.htm | 2 +- src/admin/templets_one_add.php | 2 +- src/admin/templets_one_edit.php | 2 +- src/static/web/css/admin.css | 2 +- src/system/archive/taglist.class.php | 2 +- src/system/common.func.php | 3 +- src/system/common.inc.php | 2 +- src/system/customfields.func.php | 12 +-- src/system/database/dedesqlite.class.php | 2 +- src/system/datalistcp.class.php | 9 --- src/system/dedevote.class.php | 2 +- src/system/enums.func.php | 2 +- src/system/helpers/cache.helper.php | 9 +-- src/system/libraries/fixtures/headers.php | 14 ++-- src/system/memberlogin.class.php | 2 +- src/system/sitemap.class.php | 98 ----------------------- src/system/taglib/infolink.lib.php | 20 ++--- src/system/userlogin.class.php | 4 +- src/user/archives_sg_add.php | 2 +- src/user/content_list.php | 2 +- src/user/content_sg_list.php | 2 +- src/user/inc/archives_check.php | 2 +- src/user/mypay.php | 2 +- src/user/mystow.php | 2 +- src/user/operation.php | 2 +- src/user/pm.php | 2 +- src/user/shops_orders.php | 2 +- src/user/shops_products.php | 2 +- 32 files changed, 54 insertions(+), 171 deletions(-) delete mode 100755 src/system/sitemap.class.php diff --git a/src/admin/file_manage_control.php b/src/admin/file_manage_control.php index 2db64db6..d5b80db7 100644 --- a/src/admin/file_manage_control.php +++ b/src/admin/file_manage_control.php @@ -106,7 +106,7 @@ else if ($fmdo == "upload") { $upfile = ${$upfile}; $upfile_name = ${$upfile_name}; if (is_uploaded_file($upfile)) { - // 检查文件类型 + //检查文件类型 $mime = get_mime_type($upfile); if (preg_match("#^unknow#", $mime)) { ShowMsg("系统不支持fileinfo组件,建议php.ini中开启", -1); diff --git a/src/admin/index_body.php b/src/admin/index_body.php index 9f2a7360..b54e24b8 100644 --- a/src/admin/index_body.php +++ b/src/admin/index_body.php @@ -132,8 +132,8 @@ else if ($dopost == 'setskin') { )); exit; } elseif ($dopost == 'safe_mode') { - $safemsg = "当前系统环境运行模式为【安全模式】,安全模式下将无法使用后台“模板管理”、“标签管理”、“数据库管理”、“模块管理”等功能,如果您需要使用上述功能,可在`/system/common.inc.php`中,将`DEDEBIZ_SAFE_MODE`值更改为`FALSE`"; - $unsafemsg = "当前系统环境运行模式为【非安全模式】,系统中“模板管理”、“标签管理”、“数据库管理”、“模块管理”等功能使用不当会存在一定的安全风险,建议您在`/system/common.inc.php`中,将`DEDEBIZ_SAFE_MODE`值更改为`TRUE`"; + $safemsg = "当前系统环境运行模式为【安全模式】,安全模式下将无法使用后台“模板管理”、“标签管理”、“数据库管理”、“模块管理”等功能,如果您需要使用上述功能,可在`/system/common.inc.php`中,将`DEDEBIZ_SAFE_MODE`后面值TRUE更改为FALSE"; + $unsafemsg = "当前系统环境运行模式为【非安全模式】,系统中“模板管理”、“标签管理”、“数据库管理”、“模块管理”等功能使用不当会存在一定的安全风险,建议您在`/system/common.inc.php`中,将`DEDEBIZ_SAFE_MODE`后面值FALSE更改为TRUE"; $modeStr = DEDEBIZ_SAFE_MODE? $safemsg : $unsafemsg; ShowMsg($modeStr, "javascript:;"); exit; diff --git a/src/admin/templets/file_manage_main.htm b/src/admin/templets/file_manage_main.htm index acfe7281..e028e8ec 100644 --- a/src/admin/templets/file_manage_main.htm +++ b/src/admin/templets/file_manage_main.htm @@ -65,7 +65,7 @@ foreach ($dh as $file) } else if(is_dir("$inpath/$file")) { - if(preg_match("#^_(.*)$#i",$file)) continue; #屏蔽FrontPage扩展目录和linux隐蔽目录 + if(preg_match("#^_(.*)$#i",$file)) continue; if(preg_match("#^\.(.*)$#i",$file)) continue; $line = "\n diff --git a/src/admin/templets/index.htm b/src/admin/templets/index.htm index cfe1e892..8340ffe3 100644 --- a/src/admin/templets/index.htm +++ b/src/admin/templets/index.htm @@ -12,10 +12,6 @@