From 8b656df33d87f00bea126d72667270a7091c7512 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?= Date: Mon, 23 Dec 2024 11:28:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=B8=B8=E5=AE=A2=E6=8A=95?= =?UTF-8?q?=E7=A8=BF=EF=BC=8C=E7=A7=BB=E9=99=A4=E4=B8=8D=E5=BF=85=E8=A6=81?= =?UTF-8?q?=E7=B9=81=E9=99=90=E5=88=B6=EF=BC=8C=E7=94=B1=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=91=98=E5=86=B3=E5=AE=9A=E6=8A=95=E7=A8=BF=E5=AE=9A=E5=88=B6?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/templets/mychannel_add.htm | 1 - src/admin/templets/mychannel_edit.htm | 1 - src/install/sql-dftables.txt | 2 +- src/install/update.txt | 2 +- src/user/album_add.php | 1 - src/user/album_edit.php | 1 - src/user/archives_add.php | 1 - src/user/archives_do.php | 4 ---- src/user/archives_edit.php | 1 - src/user/archives_sg_add.php | 1 - src/user/archives_sg_edit.php | 1 - src/user/article_add.php | 1 - src/user/article_edit.php | 1 - src/user/buy.php | 1 - src/user/buy_action.php | 1 - src/user/check_card.php | 1 - src/user/soft_add.php | 1 - src/user/soft_edit.php | 1 - 18 files changed, 2 insertions(+), 21 deletions(-) diff --git a/src/admin/templets/mychannel_add.htm b/src/admin/templets/mychannel_add.htm index edf32071..894c11ce 100644 --- a/src/admin/templets/mychannel_add.htm +++ b/src/admin/templets/mychannel_add.htm @@ -74,7 +74,6 @@ } ?> - (为了系统安全,游客投稿已禁止,开启游客投稿功能,到会员发布文件删除禁止游客操作) diff --git a/src/admin/templets/mychannel_edit.htm b/src/admin/templets/mychannel_edit.htm index 44a3709d..f9bb37c1 100644 --- a/src/admin/templets/mychannel_edit.htm +++ b/src/admin/templets/mychannel_edit.htm @@ -75,7 +75,6 @@ } ?> - (为了系统安全,游客投稿已禁止,开启游客投稿功能,到会员发布文件删除禁止游客操作) diff --git a/src/install/sql-dftables.txt b/src/install/sql-dftables.txt index 1411cbf0..da4fc6b4 100755 --- a/src/install/sql-dftables.txt +++ b/src/install/sql-dftables.txt @@ -480,7 +480,7 @@ CREATE TABLE `#@__member` ( `loginip` char(46) NOT NULL default '', `checkmail` smallint(6) NOT NULL default '-1', `loginerr` tinyint NULL DEFAULT 0, - `send_max` int DEFAULT '1', + `send_max` int DEFAULT '0', `user_money` decimal(10, 2) unsigned NULL default 0.00, `pmid` int(8) UNSIGNED NULL DEFAULT 0, PRIMARY KEY (`mid`), diff --git a/src/install/update.txt b/src/install/update.txt index 18e36a0f..03e9b165 100644 --- a/src/install/update.txt +++ b/src/install/update.txt @@ -101,7 +101,7 @@ DELETE FROM `#@__sysconfig` WHERE `#@__sysconfig`.`varname` = 'cfg_vdcode_member ALTER TABLE `#@__arctype` CHANGE COLUMN `iscross` `cross` tinyint(1) NOT NULL DEFAULT 0 AFTER `ishidden`; ALTER TABLE `#@__admin` ADD COLUMN `loginerr` tinyint NULL DEFAULT 0 AFTER `loginip`; ALTER TABLE `#@__member` ADD COLUMN `loginerr` tinyint NULL DEFAULT 0 AFTER `checkmail`; -ALTER TABLE `#@__member` ADD COLUMN `send_max` int NULL DEFAULT 1 AFTER `loginerr`; +ALTER TABLE `#@__member` ADD COLUMN `send_max` int NULL DEFAULT 0 AFTER `loginerr`; -- 6.2.3 INSERT INTO `#@__sysconfig` (`varname`, `info`, `groupid`, `type`, `value`) VALUES ('cfg_bizcore_api', 'DedeBIZ Core接口服务器', 1, 'string', 'http://localhost:8087'); diff --git a/src/user/album_add.php b/src/user/album_add.php index eddbc1d8..a8a31604 100755 --- a/src/user/album_add.php +++ b/src/user/album_add.php @@ -9,7 +9,6 @@ * @link https://www.dedebiz.com */ require_once(dirname(__FILE__)."/config.php"); -CheckRank(0, 0);//禁止游客操作 if ($cfg_mb_album == 'N') { ShowMsg("系统关闭了图片功能,您浏览的功能不可用", "-1"); exit(); diff --git a/src/user/album_edit.php b/src/user/album_edit.php index 8cc1b76a..9fd12b53 100755 --- a/src/user/album_edit.php +++ b/src/user/album_edit.php @@ -9,7 +9,6 @@ * @link https://www.dedebiz.com */ require_once(dirname(__FILE__)."/config.php"); -CheckRank(0, 0);//禁止游客操作 if ($cfg_mb_album == 'N') { ShowMsg("系统关闭了图片功能,您浏览的功能不可用", "-1"); exit(); diff --git a/src/user/archives_add.php b/src/user/archives_add.php index 736e3048..a8ca8cd5 100755 --- a/src/user/archives_add.php +++ b/src/user/archives_add.php @@ -9,7 +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/archives_do.php b/src/user/archives_do.php index 1abd7d58..684cf559 100755 --- a/src/user/archives_do.php +++ b/src/user/archives_do.php @@ -14,7 +14,6 @@ $aid = isset($aid) && is_numeric($aid) ? $aid : 0; $channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 1; //删除收藏 if ($dopost == "delStow") { - CheckRank(0, 0);//禁止游客操作 $type = empty($type) ? '' : HtmlReplace(trim($type), -1); $tupdate = ''; if (!empty($type)) { @@ -30,7 +29,6 @@ if ($dopost == "delStow") { } //添加投稿 else if ($dopost == "addArc") { - CheckRank(0, 0);//禁止游客操作 if ($channelid == 1) { $addcon = 'article_add.php?channelid='.$channelid; } else if ($channelid == 2) { @@ -54,7 +52,6 @@ else if ($dopost == "addArc") { } //修改投稿 else if ($dopost == "edit") { - CheckRank(0, 0);//禁止游客操作 if ($channelid == 1) { $edit = 'article_edit.php?channelid='.$channelid; } else if ($channelid == 2) { @@ -134,7 +131,6 @@ else if ($dopost == "delArc") { } //查看文档 else if ($dopost == "viewArchives") { - CheckRank(0, 0);//禁止游客操作 if ($type == "") { header("location:".$cfg_phpurl."/view.php?aid=".$aid); } else { diff --git a/src/user/archives_edit.php b/src/user/archives_edit.php index 4193f87c..d9009a87 100755 --- a/src/user/archives_edit.php +++ b/src/user/archives_edit.php @@ -9,7 +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/archives_sg_add.php b/src/user/archives_sg_add.php index bea58728..fa36236b 100755 --- a/src/user/archives_sg_add.php +++ b/src/user/archives_sg_add.php @@ -9,7 +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/archives_sg_edit.php b/src/user/archives_sg_edit.php index a3594fdf..37d18743 100755 --- a/src/user/archives_sg_edit.php +++ b/src/user/archives_sg_edit.php @@ -9,7 +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/article_add.php b/src/user/article_add.php index 6ba23655..304afccd 100755 --- a/src/user/article_add.php +++ b/src/user/article_add.php @@ -9,7 +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 c6d7321f..7648291b 100755 --- a/src/user/article_edit.php +++ b/src/user/article_edit.php @@ -9,7 +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/buy.php b/src/user/buy.php index 16b4cb17..7616c793 100755 --- a/src/user/buy.php +++ b/src/user/buy.php @@ -9,7 +9,6 @@ * @link https://www.dedebiz.com */ require_once(dirname(__FILE__).'/config.php'); -CheckRank(0, 0);//禁止游客操作 $menutype = 'mydede'; $menutype_son = 'op'; $_menu_buy = true; diff --git a/src/user/buy_action.php b/src/user/buy_action.php index 505a4ac7..c9c9c261 100755 --- a/src/user/buy_action.php +++ b/src/user/buy_action.php @@ -9,7 +9,6 @@ * @link https://www.dedebiz.com */ require_once(dirname(__FILE__)."/config.php"); -CheckRank(0, 0);//禁止游客操作 $dopost = isset($dopost)? $dopost : ''; $menutype = 'mydede'; $menutype_son = 'op'; diff --git a/src/user/check_card.php b/src/user/check_card.php index 271d09fd..f7ba8be4 100755 --- a/src/user/check_card.php +++ b/src/user/check_card.php @@ -7,7 +7,6 @@ * @link https://www.dedebiz.com */ require_once(dirname(__FILE__)."/config.php"); -CheckRank(0, 0);//禁止游客操作 $svali = GetCkVdValue(); if (strtolower($vdcode) != $svali || $svali == "") { ShowMsg("验证码不正确", "-1"); diff --git a/src/user/soft_add.php b/src/user/soft_add.php index 13658b2a..8b23a87e 100755 --- a/src/user/soft_add.php +++ b/src/user/soft_add.php @@ -9,7 +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/soft_edit.php b/src/user/soft_edit.php index 5a823b92..c3b263b6 100755 --- a/src/user/soft_edit.php +++ b/src/user/soft_edit.php @@ -9,7 +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");