From 8443e7bd4304185e1d21640f629b2a9e6c48c422 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: Sat, 6 May 2023 15:25:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E8=B0=83=E6=95=B4=EF=BC=8C=E8=87=AA=E5=AE=9A=E4=B9=89=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E5=8F=91=E5=B8=83=E4=BF=AE=E6=94=B9=E8=B0=83=E6=95=B4?= =?UTF-8?q?=EF=BC=8C=E6=8F=90=E7=A4=BA=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/diy_add.php | 10 ++-- src/admin/diy_edit.php | 4 +- src/admin/diy_field_add.php | 2 +- src/admin/diy_field_edit.php | 7 +-- src/admin/file_class.php | 4 +- src/admin/inc/fieldtype.txt | 1 - src/admin/js/body.js | 2 +- src/admin/makehtml_list_action.php | 2 +- src/admin/media_main.php | 2 +- src/admin/member_pmone.php | 2 +- src/admin/module_main.php | 4 +- src/admin/module_upload.php | 2 +- src/admin/sys_cache_up.php | 2 +- src/admin/sys_info.php | 2 +- src/admin/sys_repair.php | 10 ++-- src/admin/templets/diy_edit_content.htm | 52 +++++++------------ src/admin/templets/diy_field_add.htm | 4 +- src/admin/templets/diy_field_edit.htm | 4 +- src/admin/templets/diy_list.htm | 10 +--- src/admin/templets/diy_main.htm | 4 +- src/admin/templets/diy_post.htm | 2 - src/admin/templets/module_edit.htm | 2 +- src/admin/templets/module_make.htm | 2 +- src/admin/templets/mychannel_field_add.htm | 12 ++--- src/admin/templets/mychannel_field_edit.htm | 5 +- src/admin/templets/sys_safetest.htm | 2 +- src/admin/templets_main.php | 2 +- src/system/archive/archives.class.php | 2 +- src/system/common.func.php | 4 +- src/system/common.inc.php | 2 +- src/system/customfields.func.php | 6 +-- src/system/database/dedesqli.class.php | 6 +-- src/system/database/dedesqlite.class.php | 2 +- src/system/dedetemplate.class.php | 2 +- src/system/uploadsafe.inc.php | 2 +- src/theme/apps/download_links_templet.htm | 10 ++-- src/theme/apps/flink-add.htm | 19 +++---- src/theme/apps/flink-list.htm | 16 +++--- src/theme/apps/heightsearch.htm | 26 +++++----- src/theme/apps/list_diyform.htm | 38 ++++---------- src/theme/apps/post_diyform.htm | 19 ++++--- src/theme/apps/recommend.htm | 20 ++++--- src/theme/apps/showphoto.htm | 12 +++-- src/theme/apps/view_diyform.htm | 31 +++++------ src/theme/apps/view_msg.htm | 22 ++++---- src/theme/apps/view_msg_catalog.htm | 18 ++++--- src/theme/apps/vote.htm | 14 +++-- src/theme/system/channel_addon.htm | 5 +- src/theme/system/channel_article_image.htm | 5 +- src/theme/system/channel_downlinkpage.htm | 2 +- src/theme/system/channel_list.htm | 2 +- src/theme/system/channel_spec_note.htm | 12 ++--- src/theme/system/custom_fields_diy.htm | 4 +- src/theme/system/info_guide.htm | 2 +- src/theme/system/info_link.htm | 18 ++----- src/theme/system/list_fulllist.htm | 18 +++---- src/theme/system/list_sglist.htm | 12 ++--- src/theme/system/memberlist.htm | 5 +- src/theme/system/mynews.htm | 4 +- src/theme/system/part_autochannel.htm | 1 - src/theme/system/part_channelartlist.htm | 18 ++----- src/theme/system/part_imginfolist.htm | 8 +-- src/theme/system/part_imglist.htm | 4 +- src/theme/system/spec_arclist.htm | 2 +- src/theme/system/spec_list.htm | 20 ++++--- src/theme/system/tag_feedback.htm | 2 +- src/theme/system/tag_fieldlist.htm | 4 +- ...plet-pluslist.inc => templet-appslist.inc} | 8 +-- src/theme/templet-dirlist.inc | 2 +- src/theme/templet-filelist.inc | 9 ++-- src/user/templets/album_add.htm | 4 +- src/user/templets/album_edit.htm | 4 +- src/user/templets/archives_add.htm | 4 +- src/user/templets/archives_edit.htm | 4 +- src/user/templets/archives_sg_add.htm | 4 +- src/user/templets/archives_sg_edit.htm | 4 +- src/user/templets/article_add.htm | 4 +- src/user/templets/article_edit.htm | 4 +- src/user/templets/buy.htm | 4 +- src/user/templets/buy_action_payment.htm | 4 +- src/user/templets/soft_add.htm | 4 +- src/user/templets/soft_edit.htm | 4 +- 82 files changed, 285 insertions(+), 358 deletions(-) rename src/theme/{templet-pluslist.inc => templet-appslist.inc} (54%) diff --git a/src/admin/diy_add.php b/src/admin/diy_add.php index 8aae95b9..3a0470c8 100644 --- a/src/admin/diy_add.php +++ b/src/admin/diy_add.php @@ -20,18 +20,18 @@ if (empty($action)) { include(DEDEADMIN."/templets/diy_add.htm"); } else { if (preg_match("#[^0-9-]#", $diyid) || empty($diyid)) { - ShowMsg("'自定义表单id'必须为数字", "-1"); + ShowMsg("自定义表单id必须为数字", "-1"); exit(); } if ($table == "") { - ShowMsg("表名不能为空", "-1"); + ShowMsg("自定义表单表名不能为空", "-1"); exit(); } $public = isset($public) && is_numeric($public) ? $public : 0; $name = dede_htmlspecialchars($name); $row = $dsql->GetOne("SELECT * FROM `#@__diyforms` WHERE diyid='$diyid' OR `table` LIKE '$table' OR name LIKE '$name'"); if (is_array($row)) { - ShowMsg("可能自定义表单的‘diyid’、‘名称’在数据库中已存在,不能重复使用", "-1"); + ShowMsg("自定义表单diyid或名称在数据库中重复", "-1"); exit(); } if ($cfg_dbtype=="sqlite") { @@ -44,7 +44,7 @@ if (empty($action)) { while ($row = $dsql->GetArray("biz")) { if (empty($row[0])) $row[0] = ''; if ($table == $row[0]) { - showmsg('指定的表在数据库中重复', '-1'); + showmsg('指定的自定义表单在数据库中重复', '-1'); exit(); } } @@ -60,7 +60,7 @@ if (empty($action)) { if ($dsql->ExecuteNoneQuery($sql)) { $query = "INSERT INTO `#@__diyforms` (`diyid`,`name`,`table`,`info`,`listtemplate`,`viewtemplate`,`posttemplate`,`public` ) VALUES ('$diyid','$name','$table','','$listtemplate','$viewtemplate','$posttemplate','$public')"; $dsql->ExecuteNoneQuery($query); - showmsg('自定义表单创建成功,请自行添加字段', 'diy_main.php'); + showmsg('自定义表单创建成功,请添加字段', 'diy_main.php'); } else { showmsg('自定义表单创建失败', '-1'); } diff --git a/src/admin/diy_edit.php b/src/admin/diy_edit.php index 9dc7f582..a2fde020 100644 --- a/src/admin/diy_edit.php +++ b/src/admin/diy_edit.php @@ -35,7 +35,7 @@ if ($dopost == "save") { $win->AddHidden("job", "yes"); $win->AddHidden("dopost", $dopost); $win->AddHidden("diyid", $diyid); - $win->AddTitle("删除所有自定义表单相关的文件和数据,您确定要删除\"".$row['name']."\"自定义表单吗"); + $win->AddTitle("删除所有自定义表单数据,您确定要删除".$row['name']."自定义表单吗"); $winform = $win->GetWindow("ok"); $win->Display(); exit(); @@ -44,7 +44,7 @@ if ($dopost == "save") { else if ($job == "yes") { $row = $dsql->GetOne("SELECT `table` FROM `#@__diyforms` WHERE diyid='$diyid'", MYSQL_ASSOC); if (!is_array($row)) { - ShowMsg("您所指定的自定义表单信息不存在", "-1"); + ShowMsg("您所指定的自定义表单不存在", "-1"); exit(); } //删除表 diff --git a/src/admin/diy_field_add.php b/src/admin/diy_field_add.php index 89581bfc..863f3565 100644 --- a/src/admin/diy_field_add.php +++ b/src/admin/diy_field_add.php @@ -60,7 +60,7 @@ if ($action == 'save') { $rs = $dsql->ExecuteNoneQuery("UPDATE `#@__diyforms` SET `info`='$oksetting' WHERE diyid='$diyid' "); if (!$rs) { $grr = $dsql->GetError(); - ShowMsg("保存节点配置出错".$grr, "javascript:;"); + ShowMsg("保存字段失败".$grr, "javascript:;"); exit(); } ShowMsg("成功添加一个字段", "diy_edit.php?diyid=$diyid"); diff --git a/src/admin/diy_field_edit.php b/src/admin/diy_field_edit.php index 5dc06831..ff395d17 100644 --- a/src/admin/diy_field_edit.php +++ b/src/admin/diy_field_edit.php @@ -39,10 +39,7 @@ if ($action == 'save') { exit(); } //检测数据库是否存在附加表,不存在则新建一个 - $tabsql = "CREATE TABLE IF NOT EXISTS `$trueTable`( - `id` int(10) unsigned NOT NULL auto_increment, - `ifcheck` tinyint(1) NOT NULL default '0', - "; + $tabsql = "CREATE TABLE IF NOT EXISTS `$trueTable`(`id` int(10) unsigned NOT NULL auto_increment,`ifcheck` tinyint(1) NOT NULL default '0', "; if ($mysql_version < 4.1) { $tabsql .= " PRIMARY KEY (`id`)\r\n) TYPE=MyISAM; "; } else { @@ -85,7 +82,7 @@ if ($action == 'save') { $oksetting = $dtp->GetResultNP(); $oksetting = addslashes($oksetting); $dsql->ExecuteNoneQuery("UPDATE `#@__diyforms` SET info='$oksetting' WHERE diyid='$diyid' "); - ShowMsg("成功修改一个字段的配置", "diy_edit.php?diyid={$diyid}"); + ShowMsg("成功修改一个字段", "diy_edit.php?diyid={$diyid}"); exit(); } //删除字段 diff --git a/src/admin/file_class.php b/src/admin/file_class.php index 55956baa..9af237f9 100644 --- a/src/admin/file_class.php +++ b/src/admin/file_class.php @@ -13,7 +13,7 @@ class FileManagement { var $baseDir = ""; var $activeDir = ""; - //是否允许文件管理器删除目录,默认为不允许0,如果希望可能管理整个目录,请把值设为1 + //是否允许文件管理器删除目录,默认为不允许0,如果希望管理整个目录,请把值设为1 var $allowDeleteDir = 0; //初始化系统 function Init() @@ -86,7 +86,7 @@ class FileManagement ShowMsg("成功移动文件", "file_manage_main.php?activepath=$mpath", 0, 1000); return 1; } else { - ShowMsg("移动文件$oldfile>$truepath/$mfile失败,可能是某个位置权限不足", "file_manage_main.php?activepath=$mpath", 0, 1000); + ShowMsg("移动文件$oldfile>$truepath/$mfile失败,某个位置权限不足", "file_manage_main.php?activepath=$mpath", 0, 1000); return 0; } } else { diff --git a/src/admin/inc/fieldtype.txt b/src/admin/inc/fieldtype.txt index 1f043fad..31cb11b5 100644 --- a/src/admin/inc/fieldtype.txt +++ b/src/admin/inc/fieldtype.txt @@ -7,7 +7,6 @@ int,整数类型 float,小数类型 datetime,时间类型 img,图片 -imgfile,图片(无格式) media,多媒体文件 addon,附件类型 select,select下拉框 diff --git a/src/admin/js/body.js b/src/admin/js/body.js index 26f61e49..ea369955 100644 --- a/src/admin/js/body.js +++ b/src/admin/js/body.js @@ -73,7 +73,7 @@ function LoadServer() { ${rsp.msg} - 您已购买了商业版授权,登录DedeBIZ官网会员中心可查看相关授权信息。若授权结果与实际授权存在差异,可能购买到其它非商业授权,及时与我们取得联系。 + 您已购买了商业版授权,登录DedeBIZ官网会员中心可查看相关授权信息。若授权结果与实际授权存在差异,购买到其它非商业授权,及时与我们取得联系。 `); } diff --git a/src/admin/makehtml_list_action.php b/src/admin/makehtml_list_action.php index c38ed535..d6473364 100644 --- a/src/admin/makehtml_list_action.php +++ b/src/admin/makehtml_list_action.php @@ -67,7 +67,7 @@ $reurl = ''; //更新数组所记录栏目 if (!empty($tid)) { if (!isset($cfg_Cs[$tid])) { - ShowMsg('没有该栏目数据,可能缓存文件没有更新,请检查是否有写入权限', 'javascript:;'); + ShowMsg('没有该栏目数据,缓存文件没有更新,请检查是否有写入权限', 'javascript:;'); exit(); } if ($cfg_Cs[$tid][1] > 0) { diff --git a/src/admin/media_main.php b/src/admin/media_main.php index cd45f877..bf65b6f0 100644 --- a/src/admin/media_main.php +++ b/src/admin/media_main.php @@ -18,7 +18,7 @@ if ($dopost == 'filemanager') { if (file_exists('./file_manage_main.php')) { header("location:file_manage_main.php?activepath=$cfg_medias_dir"); } else { - ShowMsg("找不到文件管理器,可能已经卸载", "-1"); + ShowMsg("找不到文件管理器", "-1"); } exit(); } diff --git a/src/admin/member_pmone.php b/src/admin/member_pmone.php index 9201316b..96425e29 100644 --- a/src/admin/member_pmone.php +++ b/src/admin/member_pmone.php @@ -30,7 +30,7 @@ function CheckUserID($uid, $msgtitle = '会员名', $ckhas = true) if (isset($ck_uid[$i + 1]) && ord($ck_uid[$i + 1]) > 0x40) { $i++; } else { - return $msgtitle.'可能含有乱码,建议您改用英文字母和数字组合'; + return $msgtitle.'含有乱码,建议您改用英文字母和数字组合'; } } else { if (preg_match("#[^0-9a-z@\.-]i#", $ck_uid[$i])) { diff --git a/src/admin/module_main.php b/src/admin/module_main.php index 3dd612dc..d60289f2 100644 --- a/src/admin/module_main.php +++ b/src/admin/module_main.php @@ -71,7 +71,7 @@ if ($action == '') { $dm = new DedeModule($mdir); $info = $dm->GetModuleInfo($hash); if ($info == null) { - ShowMsg("获取模块信息错误,模块文件可能被篡改", -1); + ShowMsg("获取模块信息错误,模块文件错误", -1); exit; } $dev_id = $info['dev_id']; @@ -95,7 +95,7 @@ if ($action == '') { $dm = new DedeModule($mdir); $infos = $dm->GetModuleInfo($hash); if ($infos == null) { - ShowMsg("获取模块信息错误,模块文件可能被篡改", -1); + ShowMsg("获取模块信息错误,模块文件错误", -1); exit; } $alertMsg = ($infos['lang'] == $cfg_soft_lang ? '' : '
该模块的语言编码与您系统的编码不一致,请向开发者确认它的兼容性'); diff --git a/src/admin/module_upload.php b/src/admin/module_upload.php index 66bf83a7..5663b859 100644 --- a/src/admin/module_upload.php +++ b/src/admin/module_upload.php @@ -64,7 +64,7 @@ if ($action == 'upload') { 已有模块: - + 选择文件: diff --git a/src/admin/sys_cache_up.php b/src/admin/sys_cache_up.php index 42415b88..75caf846 100644 --- a/src/admin/sys_cache_up.php +++ b/src/admin/sys_cache_up.php @@ -42,7 +42,7 @@ if ($dopost == "ok") { $msg[] = "正在清理arclist调用缓存,继续清理过期会员浏览历史"; $oldtime = time() - (90 * 24 * 3600); $dsql->ExecuteNoneQuery("DELETE FROM `#@__member_pms` WHERE sendtime<'$oldtime' "); - $msg[] = "正在清理过期短信,继续修正错误文档,可能要占较长时间"; + $msg[] = "正在清理过期短信,继续修正错误文档,要占较长时间"; $limit = date('Ymd', strtotime('-15 days')); $dsql->ExecuteNoneQuery("DELETE FROM `#@__statistics_detail` WHERE created_date < '$limit'"); $msg[] = "正在清理15天之前流量统计"; diff --git a/src/admin/sys_info.php b/src/admin/sys_info.php index 29c94292..93711a45 100644 --- a/src/admin/sys_info.php +++ b/src/admin/sys_info.php @@ -82,7 +82,7 @@ else if ($dopost == 'add') { $inquery = "INSERT INTO `#@__sysconfig` (`aid`,`varname`,`info`,`value`,`type`,`groupid`) VALUES ('$aid','$nvarname','$varmsg','$nvarvalue','$vartype','$vargroup')"; $rs = $dsql->ExecuteNoneQuery($inquery); if (!$rs) { - ShowMsg("新增变量失败,可能有非法字符", "sys_info.php?gp=$vargroup"); + ShowMsg("新增变量失败,有非法字符", "sys_info.php?gp=$vargroup"); exit(); } if (!is_writeable($configfile)) { diff --git a/src/admin/sys_repair.php b/src/admin/sys_repair.php index 2601294e..c2d587ff 100644 --- a/src/admin/sys_repair.php +++ b/src/admin/sys_repair.php @@ -16,11 +16,11 @@ if (empty($dopost)) { $win->Init("sys_repair.php", "js/blank.js", "POST' enctype='multipart/form-data' "); $win->mainTitle = "系统修复工具"; $wecome_info = "系统修复工具"; - $win->AddTitle('本工具用于检测和修复您的系统可能存在的错误'); + $win->AddTitle('本工具用于检测和修复您的系统存在的错误'); $msg = "
- 由于手动升级时会员没运行指定的SQL语句,或自动升级的遗漏处理或处理出错,可能会导致一些错误,使用本工具会自动检测并处理,本工具目前主要执行下面动作:
+ 由于手动升级时会员没运行指定的SQL语句,或自动升级的遗漏处理或处理出错,会导致一些错误,使用本工具会自动检测并处理,本工具目前主要执行下面动作:
1、修复/优化数据表
2、更新缓存
3、检测系统变量一致性
@@ -40,7 +40,7 @@ else if ($dopost == 1) { $win->Init("sys_repair.php", "js/blank.js", "POST' enctype='multipart/form-data' "); $win->mainTitle = "系统修复工具"; $wecome_info = "系统修复工具 > 检测数据结构"; - $win->AddTitle('本工具用于检测和修复您的系统可能存在的错误'); + $win->AddTitle('本工具用于检测和修复您的系统存在的错误'); $msg = "
@@ -112,7 +112,7 @@ else if ($dopost == 2) { $win->Init("sys_repair.php", "js/blank.js", "POST' enctype='multipart/form-data' "); $win->mainTitle = "系统修复工具"; $wecome_info = "系统修复工具 > 检测微表正确性"; - $win->AddTitle('本工具用于检测和修复您的系统可能存在的错误'); + $win->AddTitle('本工具用于检测和修复您的系统存在的错误'); $msg = " - + + + \ No newline at end of file diff --git a/src/theme/system/info_guide.htm b/src/theme/system/info_guide.htm index bb1b1866..9b7e906c 100644 --- a/src/theme/system/info_guide.htm +++ b/src/theme/system/info_guide.htm @@ -1,4 +1,4 @@ -
@@ -161,7 +161,7 @@ else if ($dopost == 3) { $win->Init("sys_repair.php", "js/blank.js", "POST' enctype='multipart/form-data'"); $win->mainTitle = "系统修复工具"; $wecome_info = "系统修复工具 > 高级综合检测修复"; - $win->AddTitle('本工具用于检测和修复您的系统可能存在的错误'); + $win->AddTitle('本工具用于检测和修复您的系统存在的错误'); $msg = " diff --git a/src/admin/templets/diy_field_edit.htm b/src/admin/templets/diy_field_edit.htm index 26b93290..65c405f0 100644 --- a/src/admin/templets/diy_field_edit.htm +++ b/src/admin/templets/diy_field_edit.htm @@ -3,7 +3,7 @@ - 自定义表单修改字段 + 修改自定义表单字段 @@ -56,8 +56,6 @@ - - diff --git a/src/admin/templets/diy_list.htm b/src/admin/templets/diy_list.htm index c5de004a..6010511e 100644 --- a/src/admin/templets/diy_list.htm +++ b/src/admin/templets/diy_list.htm @@ -24,14 +24,8 @@ foreach($fieldlist as $field=>$fielddata) { if ($fields[$field]=='') continue; - if ($fielddata[1]=='img') { - $fields[$field] = "图片附件"; - } else if ($fielddata[1]=='addon') { - $fields[$field] = "其它附件"; - } else { - if (!in_array($fielddata[1],$allowhtml)) { - $fields[$field] = dede_htmlspecialchars($fields[$field]); - } + if (!in_array($fielddata[1],$allowhtml)) { + $fields[$field] = dede_htmlspecialchars($fields[$field]); } echo ''; } diff --git a/src/admin/templets/diy_main.htm b/src/admin/templets/diy_main.htm index 3b30f046..9ecec94b 100644 --- a/src/admin/templets/diy_main.htm +++ b/src/admin/templets/diy_main.htm @@ -4,7 +4,7 @@ - 自定义表单管理 + 自定义表单列表管理 @@ -12,7 +12,7 @@
diff --git a/src/admin/templets/diy_edit_content.htm b/src/admin/templets/diy_edit_content.htm index 78959d78..45c5c36e 100644 --- a/src/admin/templets/diy_edit_content.htm +++ b/src/admin/templets/diy_edit_content.htm @@ -3,7 +3,7 @@ - 修改表单数据 + 修改自定义表单数据 @@ -16,39 +16,27 @@ - + + $fielddata) + { + $allowhtml = array('htmltext'); + if ($row[$field]=='') continue; + if (!in_array($fielddata[1],$allowhtml)) { + $row[$field] = dede_htmlspecialchars($row[$field]); + $row[$field] = ""; + } + echo ''; + $formfields .= $formfields == ''? $field.','.$fielddata[1] : ';'.$field.','.$fielddata[1]; + } + echo ""; + ?> -
自定义表单管理 > 修改表单数据自定义表单管理 > 修改自定义表单数据
'.$fielddata[0].':'.''.$row[$field].'
- - $fielddata) - { - $allowhtml = array('htmltext'); - if ($row[$field]=='') continue; - if ($fielddata[1]=='img') { - $row[$field] = "浏览原图删除原图"; - } else if ($fielddata[1]=='addon') { - $row[$field] = "浏览附件删除附件"; - } else { - if (!in_array($fielddata[1],$allowhtml)) { - $row[$field] = dede_htmlspecialchars($row[$field]); - $row[$field] = ""; - } - } - echo ''; - $formfields .= $formfields == ''? $field.','.$fielddata[1] : ';'.$field.','.$fielddata[1]; - } - echo ""; - ?> - - - -
'.$fielddata[0].':'.''.$row[$field].'
- - -
+
+ +
diff --git a/src/admin/templets/diy_field_add.htm b/src/admin/templets/diy_field_add.htm index 487a1c56..3ab5c3fb 100644 --- a/src/admin/templets/diy_field_add.htm +++ b/src/admin/templets/diy_field_add.htm @@ -3,7 +3,7 @@ - 自定义表单添加字段 + 添加自定义表单字段 @@ -64,8 +64,6 @@
-
-
'.$fielddata[0].''.$fields[$field].'
- + diff --git a/src/admin/templets/diy_post.htm b/src/admin/templets/diy_post.htm index 190cb8da..555024b3 100644 --- a/src/admin/templets/diy_post.htm +++ b/src/admin/templets/diy_post.htm @@ -17,8 +17,6 @@ -
自定义表单管理自定义表单列表管理
表单
- diff --git a/src/admin/templets/module_make.htm b/src/admin/templets/module_make.htm index eacc72d5..1e502cc7 100644 --- a/src/admin/templets/module_make.htm +++ b/src/admin/templets/module_make.htm @@ -119,7 +119,7 @@ diff --git a/src/admin/templets/mychannel_field_add.htm b/src/admin/templets/mychannel_field_add.htm index ea32d236..522e42ab 100644 --- a/src/admin/templets/mychannel_field_add.htm +++ b/src/admin/templets/mychannel_field_add.htm @@ -3,7 +3,7 @@ - 模型添加字段 + 添加文档模型字段 @@ -19,7 +19,7 @@
diff --git a/src/admin/templets/module_edit.htm b/src/admin/templets/module_edit.htm index f639bce3..b1c7a59f 100644 --- a/src/admin/templets/module_edit.htm +++ b/src/admin/templets/module_edit.htm @@ -126,7 +126,7 @@
文件列表: -

每行指定一个文件或目录,路径为相对于本目录,本目录的文件则直接用文件名即可,对于整个打包的目录,不需要指定子目录里的文件,如:如果已经指定了../book则不需要再指定目录里的../book/index.php 等文件或目录,系统会自动索引整个目录,对于不需要索引整个目录的,请不要指定这个目录,否则可能会把不必要的文件也放进模块中

+

每行指定一个文件或目录,路径为相对于本目录,本目录的文件则直接用文件名即可,对于整个打包的目录,不需要指定子目录里的文件,如:如果已经指定了../book则不需要再指定目录里的../book/index.php 等文件或目录,系统会自动索引整个目录,对于不需要索引整个目录的,请不要指定这个目录,否则会把不必要的文件也放进模块中

文件列表: -

每行指定一个文件或目录,路径为相对于本目录,本目录的文件则直接用文件名即可,对于整个打包的目录,不需要指定子目录里的文件,如:如果已经指定了../book则不需要再指定目录里的../book/index.php 等文件或目录,系统会自动索引整个目录,对于不需要索引整个目录的,请不要指定这个目录,否则可能会把不必要的文件也放进模块中

+

每行指定一个文件或目录,路径为相对于本目录,本目录的文件则直接用文件名即可,对于整个打包的目录,不需要指定子目录里的文件,如:如果已经指定了../book则不需要再指定目录里的../book/index.php 等文件或目录,系统会自动索引整个目录,对于不需要索引整个目录的,请不要指定这个目录,否则会把不必要的文件也放进模块中

- + diff --git a/src/admin/templets/mychannel_field_edit.htm b/src/admin/templets/mychannel_field_edit.htm index 20d2e71a..eb77b721 100644 --- a/src/admin/templets/mychannel_field_edit.htm +++ b/src/admin/templets/mychannel_field_edit.htm @@ -3,7 +3,7 @@ - 模型修改字段 + 修改文档模型字段 @@ -21,7 +21,7 @@
文档模型管理 > 模型添加字段文档模型管理 > 添加文档模型字段
@@ -77,16 +77,14 @@

-
-
-
+
+
+

-
-
- + @@ -79,7 +79,6 @@ - diff --git a/src/admin/templets/sys_safetest.htm b/src/admin/templets/sys_safetest.htm index ce6496b3..22d6adad 100644 --- a/src/admin/templets/sys_safetest.htm +++ b/src/admin/templets/sys_safetest.htm @@ -22,7 +22,7 @@
  • 检测结果:结果仅供参考,请务必查看源码后才删除非法文件
  • -
  • 安全建议:1、有条件的会员把data、system、theme修改为不可对外浏览,static、a目录设置为不允许执行脚本,其它目录禁止写入,系统更安全;2、本检测程以开发模式为标准,如果您的网站目录包含其它系统,此检测程序可能会产生错误判断;3、检测程序会跳过对模板缓存目录的检测,为了安全起见,检测完成后建议清空模板缓存
  • +
  • 安全建议:1、有条件的会员把data、system、theme修改为不可对外浏览,static、a目录设置为不允许执行脚本,其它目录禁止写入,系统更安全;2、本检测程以开发模式为标准,如果您的网站目录包含其它系统,此检测程序会产生错误判断;3、检测程序会跳过对模板缓存目录的检测,为了安全起见,检测完成后建议清空模板缓存
diff --git a/src/admin/templets_main.php b/src/admin/templets_main.php index 7cd22dec..1bfce09c 100644 --- a/src/admin/templets_main.php +++ b/src/admin/templets_main.php @@ -37,7 +37,7 @@ function GetInfoArray($filename) } $dirlists = GetInfoArray($templetdir.'/templet-dirlist.inc'); $filelists = GetInfoArray($templetdir.'/templet-filelist.inc'); -$pluslists = GetInfoArray($templetdir.'/templet-pluslist.inc'); +$pluslists = GetInfoArray($templetdir.'/templet-appslist.inc'); $fileinfos = ($acdir == 'plus' ? $pluslists : $filelists); include DedeInclude('templets/templets_default.htm'); ?> \ No newline at end of file diff --git a/src/system/archive/archives.class.php b/src/system/archive/archives.class.php index c68989d4..feeea405 100755 --- a/src/system/archive/archives.class.php +++ b/src/system/archive/archives.class.php @@ -997,7 +997,7 @@ function _highlightkeywords($matches) { return _highlight($matches[2], $GLOBALS['_dd_karr'], $GLOBALS['_dd_kaarr'], $matches[1]); } -//高亮专用,替换多次是可能不能达到最多次 +//高亮专用,替换多次是但不能达到最多次 function _highlight($string, $words, $result, $pre) { global $cfg_replace_num; diff --git a/src/system/common.func.php b/src/system/common.func.php index b9b57689..80f6f33b 100755 --- a/src/system/common.func.php +++ b/src/system/common.func.php @@ -210,7 +210,7 @@ if (!function_exists('CheckSql')) { $fail = TRUE; $error = "union detect"; } - //发布版本的程序可能比较少包括--,#这样的注释,但黑客经常使用它们 + //发布版本的程序比较少包括--,#这样的注释,但黑客经常使用它们 elseif (strpos($clean, '/*') > 2 || strpos($clean, '--') !== FALSE || strpos($clean, '#') !== FALSE) { $fail = TRUE; $error = "comment detect"; @@ -289,7 +289,7 @@ function dede_htmlspecialchars($str) else return htmlspecialchars($str); } /** - * 载入助手,这里会员可能载入用helps载入多个助手 + * 载入助手,这里会员载入用helps载入多个助手 * * @access public * @param string diff --git a/src/system/common.inc.php b/src/system/common.inc.php index 71ee3b4c..f59a1788 100755 --- a/src/system/common.inc.php +++ b/src/system/common.inc.php @@ -7,7 +7,7 @@ * @link https://www.dedebiz.com */ //系统默认运行模式为安全模式,模板管理、标签管理、数据库管理、模块管理等功能已暂停,如果您需要这些功能,DEDEBIZ_SAFE_MODE后面值`TRUE`改为`FALSE`恢复使用 -define('DEDEBIZ_SAFE_MODE', TRUE); +define('DEDEBIZ_SAFE_MODE', FALSE); //生产环境使用`production`,如果采用`dev`模式,会有一些php的报错信息提示,用于开发调试 if (!defined('DEDE_ENVIRONMENT')) { define('DEDE_ENVIRONMENT', 'production'); diff --git a/src/system/customfields.func.php b/src/system/customfields.func.php index 1b913f22..f1e450df 100755 --- a/src/system/customfields.func.php +++ b/src/system/customfields.func.php @@ -103,11 +103,9 @@ function GetFormItem($ctag, $admintype = 'admin') } else if ($fieldType == "datetime") { $nowtime = GetDateTimeMk(time()); $innertext = ""; - } else if ($fieldType == 'img' || $fieldType == 'imgfile') { + } else if ($fieldType == 'img') { $fname = defined('DEDEADMIN')? 'form1' : 'addcontent'; - $sstr = $fieldType == 'imgfile'? '' : ""; - $pstr = $fieldType == 'imgfile'? '请填写图片地址' : '请选择图片上传或填写图片地址'; - $innertext = " $sstr"; + $innertext = ""; } else if ($fieldType == 'media') { $fname = defined('DEDEADMIN')? 'form1' : 'addcontent'; $innertext = ""; diff --git a/src/system/database/dedesqli.class.php b/src/system/database/dedesqli.class.php index 339f0573..dfc688d5 100755 --- a/src/system/database/dedesqli.class.php +++ b/src/system/database/dedesqli.class.php @@ -109,7 +109,7 @@ class DedeSqli mysqli_real_connect($this->linkID, $dbhost, $this->dbUser, $this->dbPwd, false, $dbport); mysqli_errno($this->linkID) != 0 && $this->DisplayError('链接('.$this->pconnect.')到MySQL发生错误'); } catch (Exception $e) { - $this->DisplayError("连接数据库失败,可能数据库密码不对或数据库服务器出错"); + $this->DisplayError("连接数据库失败,数据库密码不对或数据库服务器出错"); exit; } @@ -118,7 +118,7 @@ class DedeSqli } //处理错误,成功连接则选择数据库 if (!$this->linkID) { - $this->DisplayError("连接数据库失败,可能数据库密码不对或数据库服务器出错"); + $this->DisplayError("连接数据库失败,数据库密码不对或数据库服务器出错"); exit(); } $this->isInit = TRUE; @@ -130,7 +130,7 @@ class DedeSqli mysqli_query($this->linkID, "SET sql_mode=''"); } if ($this->dbName && !@mysqli_select_db($this->linkID, $this->dbName)) { - $this->DisplayError('连接数据库失败,可能数据库服务器奔溃'); + $this->DisplayError('连接数据库失败,数据库服务器奔溃'); } return TRUE; } diff --git a/src/system/database/dedesqlite.class.php b/src/system/database/dedesqlite.class.php index 1d390f18..af40b6a5 100755 --- a/src/system/database/dedesqlite.class.php +++ b/src/system/database/dedesqlite.class.php @@ -113,7 +113,7 @@ class DedeSqlite } //处理错误,成功连接则选择数据库 if (!$this->linkID) { - $this->DisplayError("系统提示:连接数据库失败,可能数据库密码不对或数据库服务器出错"); + $this->DisplayError("系统提示:连接数据库失败,数据库密码不对或数据库服务器出错"); exit(); } $this->isInit = TRUE; diff --git a/src/system/dedetemplate.class.php b/src/system/dedetemplate.class.php index 4a0be4b1..117dc3ad 100755 --- a/src/system/dedetemplate.class.php +++ b/src/system/dedetemplate.class.php @@ -619,7 +619,7 @@ class DedeTemplate { $this->loopNum++; if ($this->loopNum > 10) { - return;//限制最大递归深度为 10 以防止因标记出错等可能性导致死循环 + return;//限制最大递归深度为10以防止因标记出错等,导致死循环 } $ResultString = ''; $nextTagEnd = 0; diff --git a/src/system/uploadsafe.inc.php b/src/system/uploadsafe.inc.php index e07e078c..a8dfbab7 100755 --- a/src/system/uploadsafe.inc.php +++ b/src/system/uploadsafe.inc.php @@ -10,7 +10,7 @@ if (isset($_FILES['GLOBALS'])) exit ('Request not allow!'); * @license https://www.dedebiz.com/license * @link https://www.dedebiz.com */ -//为了防止会员通过注入的可能性改动了数据库,这里强制限定的某些文件类型禁止上传 +//为了防止会员通过注入,这里强制限定的某些文件类型禁止上传 $cfg_not_allowall = "php|pl|cgi|asp|aspx|jsp|php3|shtm|shtml"; $keyarr = array('name', 'type', 'tmp_name', 'size'); if ( diff --git a/src/theme/apps/download_links_templet.htm b/src/theme/apps/download_links_templet.htm index ab546e3f..6e26a671 100644 --- a/src/theme/apps/download_links_templet.htm +++ b/src/theme/apps/download_links_templet.htm @@ -15,10 +15,14 @@
-

文件:

-
文档模型管理 > 模型修改字段文档模型管理 > 修改文档模型字段
+ +
- + diff --git a/src/theme/apps/flink-add.htm b/src/theme/apps/flink-add.htm index b3df4398..fcc47322 100644 --- a/src/theme/apps/flink-add.htm +++ b/src/theme/apps/flink-add.htm @@ -14,19 +14,16 @@
-
下载地址列表:下载地址列表:
+
@@ -71,8 +68,8 @@
网址:
- - + +
diff --git a/src/theme/apps/flink-list.htm b/src/theme/apps/flink-list.htm index 3cf817ba..788079df 100644 --- a/src/theme/apps/flink-list.htm +++ b/src/theme/apps/flink-list.htm @@ -14,20 +14,16 @@
-
~name~:~name~
~form~
+
diff --git a/src/theme/system/info_link.htm b/src/theme/system/info_link.htm index 355929ca..f4c7a9b9 100644 --- a/src/theme/system/info_link.htm +++ b/src/theme/system/info_link.htm @@ -1,26 +1,16 @@ - - - - - - + - - - - - + - - - \ No newline at end of file diff --git a/src/theme/system/list_fulllist.htm b/src/theme/system/list_fulllist.htm index fa323739..26468736 100644 --- a/src/theme/system/list_fulllist.htm +++ b/src/theme/system/list_fulllist.htm @@ -1,10 +1,8 @@ -
- -
[field:description/]
-
- 日期:[field:pubdate function="GetDateTimeMK(@me)"/] - 浏览:[field:click/] - 好评度:[field:scores/] - -
-
\ No newline at end of file +

[field:title/]

+

+ [field:description/] + 日期:[field:pubdate function="GetDateTimeMK(@me)"/] + 浏览:[field:click/] + 好评度:[field:scores/] +

+

前往踩踩

\ No newline at end of file diff --git a/src/theme/system/list_sglist.htm b/src/theme/system/list_sglist.htm index 2381e6dc..6bbec48e 100644 --- a/src/theme/system/list_sglist.htm +++ b/src/theme/system/list_sglist.htm @@ -1,7 +1,5 @@ -
- -
- 日期:[field:senddate function="GetDateMK(@me)"/] - 浏览:[field:click/] -
-
\ No newline at end of file +

[field:title/]

+

+ 日期:[field:senddate function="GetDateMK(@me)"/] + 浏览:[field:click/] +

\ No newline at end of file diff --git a/src/theme/system/memberlist.htm b/src/theme/system/memberlist.htm index 1727dc85..a57f4177 100644 --- a/src/theme/system/memberlist.htm +++ b/src/theme/system/memberlist.htm @@ -1,4 +1 @@ -
  • -
    [field:spacename/]
    - -
  • \ No newline at end of file +
  • [field:spacename/][field:uname/]
  • \ No newline at end of file diff --git a/src/theme/system/mynews.htm b/src/theme/system/mynews.htm index b6e79f24..c1f6c689 100644 --- a/src/theme/system/mynews.htm +++ b/src/theme/system/mynews.htm @@ -1,6 +1,6 @@ - +
    - +
    [field:title/][field:title/]
    diff --git a/src/theme/system/part_autochannel.htm b/src/theme/system/part_autochannel.htm index f737c76d..b7df2352 100644 --- a/src/theme/system/part_autochannel.htm +++ b/src/theme/system/part_autochannel.htm @@ -1,4 +1,3 @@ \ No newline at end of file diff --git a/src/theme/system/part_channelartlist.htm b/src/theme/system/part_channelartlist.htm index 953ccb38..a7ee1fa3 100644 --- a/src/theme/system/part_channelartlist.htm +++ b/src/theme/system/part_channelartlist.htm @@ -1,19 +1,11 @@ - +
    - + {dede:type} + + {/dede:type} -
    - {dede:type} - - - - - - -
    [field:typename/]更多
    - {/dede:type} -
    [field:typename/]·更多
    + {dede:arclist} [field:title/]
    {/dede:arclist} diff --git a/src/theme/system/part_imginfolist.htm b/src/theme/system/part_imginfolist.htm index 4c562259..53f5a479 100644 --- a/src/theme/system/part_imginfolist.htm +++ b/src/theme/system/part_imginfolist.htm @@ -1,9 +1,9 @@ - +
    - - + + - +
    [field:imglink/][field:title/][field:imglink/][field:title/]
    [field:info/][field:info/]
    \ No newline at end of file diff --git a/src/theme/system/part_imglist.htm b/src/theme/system/part_imglist.htm index 949842e2..40d4088a 100644 --- a/src/theme/system/part_imglist.htm +++ b/src/theme/system/part_imglist.htm @@ -1,2 +1,2 @@ -
    [field:imglink/]
    -
    [field:textlink/]
    \ No newline at end of file +

    [field:imglink/]

    +

    [field:textlink/]

    \ No newline at end of file diff --git a/src/theme/system/spec_arclist.htm b/src/theme/system/spec_arclist.htm index 437ac5b7..9b4db797 100644 --- a/src/theme/system/spec_arclist.htm +++ b/src/theme/system/spec_arclist.htm @@ -1 +1 @@ -
  • [field:typename/]·[field:title/]
  • \ No newline at end of file +
  • [field:typename/]·[field:title/]
  • \ No newline at end of file diff --git a/src/theme/system/spec_list.htm b/src/theme/system/spec_list.htm index d626ac58..78db073d 100644 --- a/src/theme/system/spec_list.htm +++ b/src/theme/system/spec_list.htm @@ -1,18 +1,16 @@ - +
    - + - - + -
    - - - - -
    [field:imglink/]
    +
    [field:imglink/] + [field:typelink/] + [field:textlink/] [field:typelink/] [field:textlink/]点击:[field:click/]点击:[field:click/]
    - [field:description/]([field:stime/]) + + [field:description/] + ([field:stime/])
    \ No newline at end of file diff --git a/src/theme/system/tag_feedback.htm b/src/theme/system/tag_feedback.htm index 42032ee5..e94b5bb1 100644 --- a/src/theme/system/tag_feedback.htm +++ b/src/theme/system/tag_feedback.htm @@ -1,4 +1,4 @@
      -
    • [field:username function="(@me=='guest' ? '游客' : @me)"/] 对 [field:title/] 的评论:
    • +
    • [field:username function="(@me=='guest' ? '游客' : @me)"/]对[field:title/]评论:
    • [field:msg/]
    \ No newline at end of file diff --git a/src/theme/system/tag_fieldlist.htm b/src/theme/system/tag_fieldlist.htm index 4685a31c..77ff576e 100644 --- a/src/theme/system/tag_fieldlist.htm +++ b/src/theme/system/tag_fieldlist.htm @@ -1,6 +1,6 @@ - +
    - + diff --git a/src/theme/templet-pluslist.inc b/src/theme/templet-appslist.inc similarity index 54% rename from src/theme/templet-pluslist.inc rename to src/theme/templet-appslist.inc index ce3fd80d..a4828989 100644 --- a/src/theme/templet-pluslist.inc +++ b/src/theme/templet-appslist.inc @@ -1,12 +1,14 @@ +advancedsearch.htm,高级搜索模板 download_links_templet.htm,下载地址列表模板 flink-add.htm,添加友情链接模板 flink-list.htm,友情链接列表模板 heightsearch.htm,高级搜索模板 -list_diyform.htm,自定义表单文档列表模板 -post_diyform.htm,自定义表单文档发送模板 +list_diyform.htm,自定义表单列表模板 +post_diyform.htm,自定义表单发布模板 recommend.htm,文档推荐模板 showphoto.htm,图片展示模板 -view_diyform.htm,自定义表单文档查看模板 +view_diyform.htm,自定义表单查看数据 view_msg.htm,文档权限模板 +view_msg_catalog.htm,栏目权限模板 vote.htm,投票模板 win_templet.htm,窗口模板 \ No newline at end of file diff --git a/src/theme/templet-dirlist.inc b/src/theme/templet-dirlist.inc index 652743e0..b11fe278 100644 --- a/src/theme/templet-dirlist.inc +++ b/src/theme/templet-dirlist.inc @@ -1,3 +1,3 @@ templets,模板目录 -plus,插件目录 +apps,插件目录 system,系统目录 \ No newline at end of file diff --git a/src/theme/templet-filelist.inc b/src/theme/templet-filelist.inc index 6bddeaee..2cec45b3 100644 --- a/src/theme/templet-filelist.inc +++ b/src/theme/templet-filelist.inc @@ -1,4 +1,5 @@ -advancedsearch.htm,高级搜索模板 +top.htm,顶部模板 +head.htm,头部模板 article_article.htm,文档模板 article_default.htm,默认文档模板 article_default_sg.htm,默认表单文档模板 @@ -6,8 +7,6 @@ article_image.htm,图片文档模板 article_infos.htm,分类文档模板 article_soft.htm,软件文档模板 article_spec.htm,专题文档模板 -foot.htm,底部模板 -head.htm,头部模板 index.htm,首页模板 index_article.htm,文档封面模板 index_default.htm,默认封面模板 @@ -24,7 +23,6 @@ list_infos.htm,分类列表模板 list_soft.htm,软件列表模板 list_spec.htm,专题列表模板 search.htm,搜索模板 -top.htm,顶部模板 tag.htm,标签首页模板 taglist.htm,标签文档列表模板 widget_article_feedback.htm,小部件评论模板 @@ -33,4 +31,5 @@ widget_hot.htm,小部件头条文档模板 widget_menu.htm,小部件栏目模板 widget_recommend.htm,小部件推荐栏目模板 widget_search.htm,小部件搜索模板 -widget_vote.htm,小部件投票模板 \ No newline at end of file +widget_vote.htm,小部件投票模板 +foot.htm,底部模板 \ No newline at end of file diff --git a/src/user/templets/album_add.htm b/src/user/templets/album_add.htm index 64e76364..5715f9f7 100755 --- a/src/user/templets/album_add.htm +++ b/src/user/templets/album_add.htm @@ -18,10 +18,10 @@
    diff --git a/src/user/templets/album_edit.htm b/src/user/templets/album_edit.htm index 7da38344..1010a20e 100755 --- a/src/user/templets/album_edit.htm +++ b/src/user/templets/album_edit.htm @@ -18,10 +18,10 @@
    diff --git a/src/user/templets/archives_add.htm b/src/user/templets/archives_add.htm index 11a61fae..584b8a88 100755 --- a/src/user/templets/archives_add.htm +++ b/src/user/templets/archives_add.htm @@ -17,10 +17,10 @@
    diff --git a/src/user/templets/archives_edit.htm b/src/user/templets/archives_edit.htm index 171a8d90..e094183b 100755 --- a/src/user/templets/archives_edit.htm +++ b/src/user/templets/archives_edit.htm @@ -17,10 +17,10 @@
    diff --git a/src/user/templets/archives_sg_add.htm b/src/user/templets/archives_sg_add.htm index da3063ee..c240f22c 100755 --- a/src/user/templets/archives_sg_add.htm +++ b/src/user/templets/archives_sg_add.htm @@ -17,10 +17,10 @@
    diff --git a/src/user/templets/archives_sg_edit.htm b/src/user/templets/archives_sg_edit.htm index 132127e5..2f4a5e70 100755 --- a/src/user/templets/archives_sg_edit.htm +++ b/src/user/templets/archives_sg_edit.htm @@ -17,10 +17,10 @@
    diff --git a/src/user/templets/article_add.htm b/src/user/templets/article_add.htm index 7e9a7a4e..84866ae9 100755 --- a/src/user/templets/article_add.htm +++ b/src/user/templets/article_add.htm @@ -17,10 +17,10 @@
    diff --git a/src/user/templets/article_edit.htm b/src/user/templets/article_edit.htm index 4f9b5300..9c66c8f7 100755 --- a/src/user/templets/article_edit.htm +++ b/src/user/templets/article_edit.htm @@ -17,10 +17,10 @@
    diff --git a/src/user/templets/buy.htm b/src/user/templets/buy.htm index c8c84db8..0414604e 100755 --- a/src/user/templets/buy.htm +++ b/src/user/templets/buy.htm @@ -17,10 +17,10 @@
    GetSta();?>
    diff --git a/src/user/templets/buy_action_payment.htm b/src/user/templets/buy_action_payment.htm index 703fba7e..af63b981 100755 --- a/src/user/templets/buy_action_payment.htm +++ b/src/user/templets/buy_action_payment.htm @@ -17,11 +17,11 @@
    您申请购买的产品如下,确认无误后请点击“购买并支付”按钮,进行网上支付,如果支付失败,请与管理员联系其它支付方式
    diff --git a/src/user/templets/soft_add.htm b/src/user/templets/soft_add.htm index adfb4b69..25ef5858 100755 --- a/src/user/templets/soft_add.htm +++ b/src/user/templets/soft_add.htm @@ -17,10 +17,10 @@
    diff --git a/src/user/templets/soft_edit.htm b/src/user/templets/soft_edit.htm index 5ef8de0a..187c4efb 100755 --- a/src/user/templets/soft_edit.htm +++ b/src/user/templets/soft_edit.htm @@ -17,10 +17,10 @@
    [field:name/][field:name/]
    [field:value/]