From 3aba9976cdc5b5b4b7d07b339b350f2210d2598b 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: Thu, 2 Mar 2023 09:48:36 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC=E6=89=80?=
=?UTF-8?q?=E6=9C=892023?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/admin/content_sg_list.php | 1 -
src/admin/index_body.php | 7 ++-----
src/install/config.cache.inc.php | 6 +++---
src/install/sql-dfdata.txt | 6 +++---
4 files changed, 8 insertions(+), 12 deletions(-)
diff --git a/src/admin/content_sg_list.php b/src/admin/content_sg_list.php
index 705a82b5..1b8442a5 100644
--- a/src/admin/content_sg_list.php
+++ b/src/admin/content_sg_list.php
@@ -9,7 +9,6 @@
* @link https://www.dedebiz.com
*/
require_once(dirname(__FILE__)."/config.php");
-
$channelid = isset($channelid) ? intval($channelid) : 0;
$mid = isset($mid) ? intval($mid) : 0;
if (!isset($keyword)) $keyword = '';
diff --git a/src/admin/index_body.php b/src/admin/index_body.php
index ca08738e..f753bd39 100644
--- a/src/admin/index_body.php
+++ b/src/admin/index_body.php
@@ -36,12 +36,10 @@ else if ($dopost == 'setskin') {
0) {
$admin_catalog = join(',', $admin_catalogs);
$userCatalogSql = "AND arc.typeid IN($admin_catalog) ";
}
-
$query = "SELECT arc.id, arc.arcrank, arc.title, arc.typeid, arc.mid, arc.pubdate, arc.channel, ch.editcon, tp.typename FROM `#@__archives` arc LEFT JOIN `#@__channeltype` ch ON ch.id = arc.channel LEFT JOIN `#@__arctype` tp ON arc.typeid=tp.id WHERE arc.arcrank<>-2 {$userCatalogSql} AND arc.mid={$cuserLogin->getUserID()} ORDER BY arc.id DESC LIMIT 0,12";
$arcArr = array();
$dsql->Execute('m', $query);
@@ -51,11 +49,10 @@ else if ($dopost == 'setskin') {
}
?>
0)
- {
+ if (count($arcArr) > 0) {
foreach($arcArr as $row)
{
- if (trim($row['editcon'])==''){
+ if (trim($row['editcon'])=='') {
$row['editcon'] = 'archives_edit.php';
}
$rowarcrank = $row['arcrank']==-1? " 未审核":"";
diff --git a/src/install/config.cache.inc.php b/src/install/config.cache.inc.php
index 7be0b5b7..d1939341 100755
--- a/src/install/config.cache.inc.php
+++ b/src/install/config.cache.inc.php
@@ -18,15 +18,15 @@ $cfg_softtype = 'zip|gz|rar|iso|doc|xsl|ppt|wps';
$cfg_mediatype = 'swf|rm|rmvb|mpg|mp3|mp4|wmv|wma|wav|mid|mov';
$cfg_specnote = 10;
$cfg_list_symbol = '';
-$cfg_notallowstr = '草你妈|你妈的|你妹的';
-$cfg_replacestr = '草你妈|你妈的|你妹的';
+$cfg_notallowstr = '操你妈|你他妈的';
+$cfg_replacestr = '操你妈|你他妈的';
$cfg_feedbackcheck = 'N';
$cfg_keyword_replace = 'Y';
$cfg_fck_xhtml = 'N';
$cfg_df_style = 'dedebiz';
$cfg_multi_site = 'N';
$cfg_dede_log = 'N';
-$cfg_powerby = 'Copyright © 2022 DedeBIZ 版权所有';
+$cfg_powerby = 'Copyright © 2023 DedeBIZ 版权所有';
$cfg_arcsptitle = 'N';
$cfg_arcautosp = 'N';
$cfg_arcautosp_size = 5;
diff --git a/src/install/sql-dfdata.txt b/src/install/sql-dfdata.txt
index 8049f667..ca7353ba 100755
--- a/src/install/sql-dfdata.txt
+++ b/src/install/sql-dfdata.txt
@@ -3951,7 +3951,7 @@ INSERT INTO `#@__sysconfig` VALUES ('1','cfg_basehost','站点网址','1','strin
('17','cfg_mediatype','允许的多媒体文件类型','3','bstring','swf|rm|rmvb|mpg|mp3|mp4|wmv|wma|wav|mid|mov'),
('18','cfg_specnote','专题的最大节点数','2','number','10'),
('19','cfg_list_symbol','栏目位置的间隔符号','2','string',''),
-('20','cfg_notallowstr','禁用关键词,用“|”分开,但不要在结尾加“|”','5','bstring','草你妈|你妈的|你妹的'),
+('20','cfg_notallowstr','禁用关键词,用“|”分开,但不要在结尾加“|”','5','bstring','操你妈|你他妈的'),
('21','cfg_feedbackcheck','是否需审核评论及留言','5','bool','Y'),
('22','cfg_keyword_replace','是否使用关键词替换功能,开启影响文档生成速度','2','bool','Y'),
('23','cfg_rewrite','是否使用伪静态,参考列表命名提示默认规则','1','bool','N'),
@@ -3959,7 +3959,7 @@ INSERT INTO `#@__sysconfig` VALUES ('1','cfg_basehost','站点网址','1','strin
('25','cfg_multi_site','是否支持多站点,开启此项后附件栏目连接arclist文档启用绝对网址','2','bool','N'),
('26','cfg_rm_remote','远程图片本地化','7','bool','Y'),
('27','cfg_dede_log','是否开启管理日志','2','bool','N'),
-('28','cfg_powerby','网站版权信息','1','bstring','Copyright © 2022 DedeBIZ 版权所有'),
+('28','cfg_powerby','网站版权信息','1','bstring','Copyright © 2023 DedeBIZ 版权所有'),
('29','cfg_jump_once','跳转网址是否直接跳转否则显示中转页','7','bool','Y'),
('30','cfg_task_pwd','系统计划任务客户端许可密码,需要客户端,通常不会太重要','7','string',''),
('31','cfg_arcsptitle','是否开启分页标题,开启影响文档生成速度','6','bool','N'),
@@ -3982,7 +3982,7 @@ INSERT INTO `#@__sysconfig` VALUES ('1','cfg_basehost','站点网址','1','strin
('48','cfg_cli_time','服务器时区设置','2','number','8'),
('49','cfg_mb_addontype','会员附件许可的类型','4','bstring','swf|rm|rmvb|mpg|mp3|mp4|wmv|wma|wav|mid|mov|zip|rar|doc|xsl|ppt|wps'),
('50','cfg_mb_max','会员附件总大小限制(MB)','4','number','500'),
-('51','cfg_replacestr','禁用关键词替换成*,用“|”分开,但不要在结尾加“|”','5','bstring','草你妈|你妈的|你妹的'),
+('51','cfg_replacestr','禁用关键词替换成*,用“|”分开,但不要在结尾加“|”','5','bstring','操你妈|你他妈的'),
('52','cfg_makeindex','发布文档后马上更新网站首页','6','bool','N'),
('53','cfg_keyword_like','使用关键词关连文档','6','bool','Y'),
('54','cfg_index_max','首页调用函数最大索引文档数,不适用于经常单栏目采集过多文档网站,不启用本项此值设置为0即可','6','number','10000'),