From e3b6030ed0f9a577b9e702c0801840dcd12428bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= <93301500+xushubieli@users.noreply.github.com> Date: Wed, 10 May 2023 18:37:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=B8=E5=AE=A2=E6=8A=95=E7=A8=BF=E9=99=90?= =?UTF-8?q?=E5=88=B6=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/templets/mychannel_add.htm | 3 ++- src/admin/templets/mychannel_edit.htm | 3 ++- src/system/memberlogin.class.php | 4 ++-- src/user/album_add.php | 3 +-- src/user/album_edit.php | 3 +-- src/user/api.php | 16 ++++++++-------- src/user/archives_add.php | 3 +-- src/user/archives_edit.php | 3 +-- src/user/archives_sg_add.php | 3 +-- src/user/archives_sg_edit.php | 3 +-- src/user/article_add.php | 2 -- src/user/article_edit.php | 2 -- src/user/soft_add.php | 3 +-- src/user/soft_edit.php | 3 +-- 14 files changed, 22 insertions(+), 32 deletions(-) diff --git a/src/admin/templets/mychannel_add.htm b/src/admin/templets/mychannel_add.htm index 1f490446..2dbf9ab0 100644 --- a/src/admin/templets/mychannel_add.htm +++ b/src/admin/templets/mychannel_add.htm @@ -35,7 +35,7 @@ 模型标识: - (与文档的模板相关连,建议由英文、数字或下划线组成,因为部份Unix系统无法识别中文文件,栏目默认文档模板是“default/article_名字标识.htm”,列表模板、封面模板类推) + (与文档的模板相关连,建议由英文、数字或下划线组成,因为部份Unix系统无法识别中文文件,栏目默认文档模板是“dedebiz/article_名字标识.htm”,列表模板、封面模板类推) @@ -72,6 +72,7 @@ } ?> + (为了系统安全,游客投稿已禁止,启用游客投稿,会员发布文件删除对游客投稿限制) diff --git a/src/admin/templets/mychannel_edit.htm b/src/admin/templets/mychannel_edit.htm index 3b5aa98e..caedbe99 100644 --- a/src/admin/templets/mychannel_edit.htm +++ b/src/admin/templets/mychannel_edit.htm @@ -40,7 +40,7 @@ 模型标识: - (与文档的模板相关连,建议由英文、数字或下划线组成,因为部份Unix系统无法识别中文文件,栏目默认文档模板是“default/article_名字标识.htm”,列表模板、封面模板类推) + (与文档的模板相关连,建议由英文、数字或下划线组成,因为部份Unix系统无法识别中文文件,栏目默认文档模板是“dedebiz/article_名字标识.htm”,列表模板、封面模板类推) 模型名称: @@ -79,6 +79,7 @@ } ?> + (为了系统安全,游客投稿已禁止,启用游客投稿,会员发布文件删除对游客投稿限制) diff --git a/src/system/memberlogin.class.php b/src/system/memberlogin.class.php index f081c1ec..ce27720a 100755 --- a/src/system/memberlogin.class.php +++ b/src/system/memberlogin.class.php @@ -113,7 +113,7 @@ class MemberLogin var $M_HasDay; var $M_JoinTime; var $M_Honor = ''; - var $M_SendMax = 0; + var $M_SendMax = 1; var $memberCache = 'memberlogin'; var $dsql; //php5构造函数 @@ -379,7 +379,7 @@ class MemberLogin { $arr = $this->dsql->GetOne("SELECT COUNT(*) as dd FROM `#@__arctiny` WHERE mid='{$this->M_ID}'"); if (is_array($arr)) { - if ($this->M_SendMax < 0) { + if ($this->M_SendMax < 1) { return false; } if ($arr['dd'] >= $this->M_SendMax) { diff --git a/src/user/album_add.php b/src/user/album_add.php index 28b6452d..11f9ead1 100755 --- a/src/user/album_add.php +++ b/src/user/album_add.php @@ -9,8 +9,7 @@ * @link https://www.dedebiz.com */ require_once(dirname(__FILE__)."/config.php"); -//禁止游客投稿 -CheckRank(0, 0); +CheckRank(0, 0);//禁止游客投稿 if ($cfg_mb_lit == 'Y') { ShowMsg("系统开启精简会员空间,您浏览的功能不可用", "-1"); exit(); diff --git a/src/user/album_edit.php b/src/user/album_edit.php index 8321060a..93fcede2 100755 --- a/src/user/album_edit.php +++ b/src/user/album_edit.php @@ -9,8 +9,7 @@ * @link https://www.dedebiz.com */ require_once(dirname(__FILE__)."/config.php"); -//禁止游客投稿 -CheckRank(0, 0); +CheckRank(0, 0);//禁止游客投稿 if ($cfg_mb_lit == 'Y') { ShowMsg("系统开启精简会员空间,您浏览的功能不可用", "-1"); exit(); diff --git a/src/user/api.php b/src/user/api.php index eeef58a9..ac81da7e 100755 --- a/src/user/api.php +++ b/src/user/api.php @@ -62,7 +62,7 @@ if ($action === 'is_need_check_code') { if (!$cfg_ml->IsLogin()) { echo json_encode(array( "code" => -1, - "msg" => "未登录", + "msg" => "请登录会员中心", "data" => null, )); exit; @@ -70,7 +70,7 @@ if ($action === 'is_need_check_code') { if ($cfg_ml->CheckUserSpaceIsFull()) { echo json_encode(array( "code" => -1, - "msg" => "您的空间已满,不允许上传新文件", + "msg" => "您的空间已满,禁止上传新文件", "data" => null, )); exit; @@ -112,7 +112,7 @@ if ($action === 'is_need_check_code') { if (!in_array($fileType, $allowedTypes)) { echo json_encode(array( "code" => -1, - "msg" => "当前文件格式不支持", + "msg" => "不支持该文件格式", "data" => null, )); exit; @@ -126,7 +126,7 @@ if ($action === 'is_need_check_code') { if (!$imgSize) { echo json_encode(array( "code" => -1, - "msg" => "无法获取当前图片正常尺寸", + "msg" => "无法获取图片正常尺寸", "data" => null, )); exit; @@ -146,7 +146,7 @@ if ($action === 'is_need_check_code') { if ($fsize > ($cfg_max_face * 1024)) { echo json_encode(array( "code" => -1, - "msg" => "头像尺寸不能超过{$cfg_max_face}KB", + "msg" => "上传头像不能超过{$cfg_max_face}KB", $rkey => null, )); exit; @@ -155,7 +155,7 @@ if ($action === 'is_need_check_code') { if ($fsize > ($cfg_mb_upload_size * 1024)) { echo json_encode(array( "code" => -1, - "msg" => "会员上传文件不能超过{$cfg_mb_upload_size}KB", + "msg" => "上传文件不能超过{$cfg_mb_upload_size}KB", $rkey => null, )); exit; @@ -196,7 +196,7 @@ if ($action === 'is_need_check_code') { } catch (ImageResizeException $e) { echo json_encode(array( "code" => -1, - "msg" => "图片自动裁剪失败", + "msg" => "自动裁剪图片失败", $rkey => null, )); } @@ -221,7 +221,7 @@ if ($action === 'is_need_check_code') { if ($format === 'json') { echo json_encode(array( "code" => -1, - "msg" => "未登录", + "msg" => "请登录会员中心", $rkey => null, )); } else { diff --git a/src/user/archives_add.php b/src/user/archives_add.php index de02644f..bc594937 100755 --- a/src/user/archives_add.php +++ b/src/user/archives_add.php @@ -9,8 +9,7 @@ * @link https://www.dedebiz.com */ require_once(dirname(__FILE__)."/config.php"); -//禁止游客投稿 -CheckRank(0, 0); +CheckRank(0, 0);//禁止游客投稿 require_once(DEDEINC."/dedetag.class.php"); require_once(DEDEINC."/userlogin.class.php"); require_once(DEDEINC."/customfields.func.php"); diff --git a/src/user/archives_edit.php b/src/user/archives_edit.php index d6bb221c..143671c5 100755 --- a/src/user/archives_edit.php +++ b/src/user/archives_edit.php @@ -9,8 +9,7 @@ * @link https://www.dedebiz.com */ require_once(dirname(__FILE__)."/config.php"); -//禁止游客投稿 -CheckRank(0, 0); +CheckRank(0, 0);//禁止游客投稿 require_once(DEDEINC."/dedetag.class.php"); require_once(DEDEINC."/customfields.func.php"); require_once(DEDEMEMBER."/inc/inc_catalog_options.php"); diff --git a/src/user/archives_sg_add.php b/src/user/archives_sg_add.php index ad5c16c9..3cae38d1 100755 --- a/src/user/archives_sg_add.php +++ b/src/user/archives_sg_add.php @@ -9,8 +9,7 @@ * @link https://www.dedebiz.com */ require_once(dirname(__FILE__)."/config.php"); -//禁止游客投稿 -CheckRank(0, 0); +CheckRank(0, 0);//禁止游客投稿 require_once(DEDEINC."/dedetag.class.php"); require_once(DEDEINC."/userlogin.class.php"); require_once(DEDEINC."/customfields.func.php"); diff --git a/src/user/archives_sg_edit.php b/src/user/archives_sg_edit.php index 5ecf0ec2..919d30d1 100755 --- a/src/user/archives_sg_edit.php +++ b/src/user/archives_sg_edit.php @@ -9,8 +9,7 @@ * @link https://www.dedebiz.com */ require_once(dirname(__FILE__)."/config.php"); -//禁止游客投稿 -CheckRank(0, 0); +CheckRank(0, 0);//禁止游客投稿 require_once(DEDEINC."/dedetag.class.php"); require_once(DEDEINC."/customfields.func.php"); require_once(DEDEMEMBER."/inc/inc_catalog_options.php"); diff --git a/src/user/article_add.php b/src/user/article_add.php index 4b1a962c..43480ae0 100755 --- a/src/user/article_add.php +++ b/src/user/article_add.php @@ -9,8 +9,6 @@ * @link https://www.dedebiz.com */ require_once(dirname(__FILE__)."/config.php"); -//禁止游客投稿 -CheckRank(0, 0); require_once(DEDEINC."/dedetag.class.php"); require_once(DEDEINC."/userlogin.class.php"); require_once(DEDEINC."/customfields.func.php"); diff --git a/src/user/article_edit.php b/src/user/article_edit.php index 0fc92224..6f318ab6 100755 --- a/src/user/article_edit.php +++ b/src/user/article_edit.php @@ -9,8 +9,6 @@ * @link https://www.dedebiz.com */ require_once(dirname(__FILE__)."/config.php"); -//禁止游客投稿 -CheckRank(0, 0); require_once(DEDEINC."/dedetag.class.php"); require_once(DEDEINC."/customfields.func.php"); require_once(DEDEMEMBER."/inc/inc_catalog_options.php"); diff --git a/src/user/soft_add.php b/src/user/soft_add.php index 7463fda0..a2e2aac0 100755 --- a/src/user/soft_add.php +++ b/src/user/soft_add.php @@ -9,8 +9,7 @@ * @link https://www.dedebiz.com */ require_once(dirname(__FILE__)."/config.php"); -//禁止游客投稿 -CheckRank(0, 0); +CheckRank(0, 0);//禁止游客投稿 if ($cfg_mb_lit == 'Y') { ShowMsg("系统开启精简会员空间,您浏览的功能不可用", "-1"); exit(); diff --git a/src/user/soft_edit.php b/src/user/soft_edit.php index 06d9c1aa..99225e9f 100755 --- a/src/user/soft_edit.php +++ b/src/user/soft_edit.php @@ -9,8 +9,7 @@ * @link https://www.dedebiz.com */ require_once(dirname(__FILE__)."/config.php"); -//禁止游客投稿 -CheckRank(0, 0); +CheckRank(0, 0);//禁止游客投稿 require_once(DEDEINC."/dedetag.class.php"); require_once(DEDEINC."/customfields.func.php"); require_once(DEDEMEMBER."/inc/inc_catalog_options.php");