From db2f708b03bfbc454dc665b9f1fafbd6850449bd 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: Fri, 21 Apr 2023 11:34:52 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/admin/catalog_del.php | 4 +-
src/admin/catalog_do.php | 33 +++-----
src/admin/makehtml_list_action.php | 7 +-
src/admin/member_view.php | 1 -
src/admin/templets/catalog_edit.htm | 37 +++-----
src/admin/templets/catalog_main.htm | 1 +
src/system/archive/listview.class.php | 8 +-
src/system/archive/sglistview.class.php | 2 +-
src/system/libraries/jsonq/JsonQueriable.php | 1 -
src/system/memberlogin.class.php | 50 ++++++-----
src/system/taglib/help/arclist.txt | 25 +++---
src/system/taglib/help/arclistsg.txt | 32 ++++---
src/system/taglib/help/autochannel.txt | 4 +-
src/system/taglib/help/channel.txt | 3 +-
src/system/taglib/help/channelartlist.txt | 3 +-
src/system/taglib/help/demotag.txt | 3 +-
src/system/taglib/help/feedback.txt | 4 +-
src/system/taglib/help/flink.txt | 4 +-
src/system/taglib/help/infoguide.txt | 3 +-
src/system/taglib/help/infolink.txt | 3 +-
src/system/taglib/help/jsonq.txt | 9 --
src/system/taglib/help/likearticle.txt | 4 +-
src/system/taglib/help/type.txt | 2 +-
src/system/taglib/help/vote.txt | 3 +-
src/user/album_add.php | 2 +-
src/user/album_edit.php | 4 +-
src/user/archives_add.php | 2 +-
src/user/archives_edit.php | 4 +-
src/user/archives_sg_add.php | 2 +-
src/user/archives_sg_edit.php | 2 +-
src/user/article_add.php | 2 +-
src/user/article_edit.php | 4 +-
src/user/index_do.php | 89 +++++++++-----------
src/user/reg_new.php | 6 +-
src/user/soft_edit.php | 2 +-
src/user/templets/edit_baseinfo.htm | 4 +-
src/user/templets/index.htm | 24 +++---
src/user/templets/reg-new.htm | 8 +-
src/user/templets/win_templet.htm | 1 -
39 files changed, 182 insertions(+), 220 deletions(-)
delete mode 100755 src/system/taglib/help/jsonq.txt
diff --git a/src/admin/catalog_del.php b/src/admin/catalog_del.php
index c36bdcc6..d2b388f9 100644
--- a/src/admin/catalog_del.php
+++ b/src/admin/catalog_del.php
@@ -26,8 +26,8 @@ if ($dopost == 'ok') {
}
$dsql->SetQuery("SELECT typename,typedir FROM `#@__arctype` WHERE id=".$id);
$row = $dsql->GetOne();
-$wintitle = "删除栏目确认";
-$wecome_info = "栏目管理 > 删除栏目确认";
+$wintitle = "删除栏目";
+$wecome_info = "栏目管理 > 删除栏目";
$win = new OxWindow();
$win->Init('catalog_del.php', 'js/blank.js', 'POST');
$win->AddHidden('id', $id);
diff --git a/src/admin/catalog_do.php b/src/admin/catalog_do.php
index 95e2211e..ceebbeee 100644
--- a/src/admin/catalog_do.php
+++ b/src/admin/catalog_do.php
@@ -10,7 +10,7 @@
*/
require_once(dirname(__FILE__).'/config.php');
if (empty($dopost)) {
- ShowMsg("请指定栏目参数", "catalog_main.php");
+ ShowMsg("请指定一个栏目参数", "catalog_main.php");
exit();
}
$cid = empty($cid) ? 0 : intval($cid);
@@ -32,10 +32,9 @@ if ($dopost == "addArchives") {
}
$gurl = $row["addcon"];
if ($gurl == "") {
- ShowMsg("您指的栏目可能有误", "catalog_main.php");
+ ShowMsg("操作失败,正在返回", "catalog_main.php");
exit();
}
-
//跳转并传递参数
header("location:{$gurl}?channelid={$channelid}&cid={$cid}");
exit();
@@ -57,7 +56,7 @@ else if ($dopost == "listArchives") {
$typename = $row["typename"];
$channelname = $row["channelname"];
if ($gurl == "") {
- ShowMsg("您指的栏目可能有误", "catalog_main.php");
+ ShowMsg("操作失败,正在返回", "catalog_main.php");
exit();
}
} else if ($channelid > 0) {
@@ -67,7 +66,6 @@ else if ($dopost == "listArchives") {
$typename = "";
$channelname = $row["typename"];
}
-
if (empty($gurl)) $gurl = 'content_list.php';
header("location:{$gurl}?channelid={$channelid}&cid={$cid}");
exit();
@@ -102,8 +100,9 @@ else if ($dopost == "upRank") {
UpDateCatCache();
ShowMsg("操作成功,返回目录", "catalog_main.php");
exit();
-} else if ($dopost == "upRankAll") {
- //检查权限许可
+}
+//检查权限许可
+else if ($dopost == "upRankAll") {
CheckPurview('t_Edit');
$row = $dsql->GetOne("SELECT id FROM `#@__arctype` ORDER BY id DESC");
if (is_array($row)) {
@@ -143,11 +142,6 @@ else if ($dopost == "upcatcache") {
ShowMsg("操作成功,正在返回", "catalog_main.php");
exit();
}
-//获取js文件
-else if ($dopost == "GetJs") {
- header("location:makehtml_js.php");
- exit();
-}
//获得子类的文档
else if ($dopost == "GetSunListsMenu") {
$userChannel = $cuserLogin->getUserChannel();
@@ -193,16 +187,15 @@ else if ($dopost == 'unitCatalog') {
$win->AddHidden('typeid', $typeid);
$win->AddHidden('channelid', $channelid);
$win->AddHidden('nextjob', 'unitok');
- $win->AddTitle("合并目录时不会删除原来的栏目目录,合并后需手动更新目标栏目的文档网页和列表网页");
+ $win->AddTitle("合并目录时不会删除原来的栏目目录,合并后需手动更新目标栏目的文档网页和列表网页,栏目不能有下级子栏目,只允许子级到更高级或同级或不同父级的情况");
$win->AddItem('您选择的栏目是:', "$typename($typeid)");
$win->AddItem('您希望合并到那个栏目', "");
- $win->AddItem('注意事项:', '栏目不能有下级子栏目,只允许子级到更高级或同级或不同父级的情况');
$winform = $win->GetWindow('ok');
$win->Display();
exit();
} else {
if ($typeid == $unittype) {
- ShowMsg("同一栏目无法合并,请后退重试", '-1');
+ ShowMsg("同一栏目无法合并,请重新合并", '-1');
exit();
}
if (IsParent($unittype, $typeid)) {
@@ -243,10 +236,9 @@ else if ($dopost == 'moveCatalog') {
$win->AddHidden('typeid', $typeid);
$win->AddHidden('channelid', $channelid);
$win->AddHidden('nextjob', 'unitok');
- $win->AddTitle("移动目录时不会删除原来已创建的列表,移动后需重新对栏目创建网页");
+ $win->AddTitle("移动目录时不会删除原来已创建的列表,移动后需重新对栏目创建网页,不允许从父级移动到子级目录,只允许子级到更高级或同级或不同父级的情况");
$win->AddItem('您选择的栏目是:', "$typename($typeid)");
$win->AddItem('您希望移动到那个栏目', "");
- $win->AddItem('注意事项:', '不允许从父级移动到子级目录,只允许子级到更高级或同级或不同父级的情况');
$winform = $win->GetWindow('ok');
$win->Display();
exit();
@@ -265,7 +257,8 @@ else if ($dopost == 'moveCatalog') {
ShowMsg('成功移动目录', 'catalog_main.php');
exit();
}
-} //查看API
+}
+//查看跨站调用秘钥
else if ($dopost == 'viewAPI') {
require_once(DEDEINC.'/typelink/typelink.class.php');
$typeid = isset($typeid) ? intval($typeid) : 0;
@@ -283,7 +276,6 @@ else if ($dopost == 'viewAPI') {
}
?>';
$gocode = 'package main
-
import (
"crypto/md5"
"encoding/json"
@@ -293,7 +285,6 @@ import (
"strconv"
"time"
)
-
func main() {
typeid := '.$typeid.'
row := 10
@@ -325,7 +316,6 @@ func main() {
import json
import time
import urllib.request
-
typeid = '.$typeid.'
row = 10
timestamp = int(time.time())
@@ -339,7 +329,6 @@ if data[\'code\'] == 0:
';
$jscode = 'const crypto = require(\'crypto\');
const http = require(\'http\');
-
const typeid = '.$typeid.';
const row = 10;
const timestamp = Math.floor(Date.now() / 1000);
diff --git a/src/admin/makehtml_list_action.php b/src/admin/makehtml_list_action.php
index 65548176..399124e0 100644
--- a/src/admin/makehtml_list_action.php
+++ b/src/admin/makehtml_list_action.php
@@ -35,7 +35,6 @@ if ($gotype == '' || $gotype == 'mkallct') {
$idArray[] = $typeid;
}
}
-
//一键更新带缓存的情况
else if ($gotype == 'mkall') {
$uppage = 1;
@@ -44,7 +43,7 @@ else if ($gotype == 'mkall') {
if (file_exists($mkcachefile)) require_once($mkcachefile);
}
if (!$idArray) {
- ShowMsg("尚未添加栏目,请先添加栏目再进行更新", "javascript:;");
+ ShowMsg("暂无栏目,请添加栏目", "javascript:;");
exit;
}
//当前更新栏目id
@@ -110,11 +109,11 @@ if ($nextpage >= $totalpage && $finishType) {
$typename = isset($cfg_Cs[$tid][3])? base64_decode($cfg_Cs[$tid][3]) : "";
if ($finishType) {
$gourl = "makehtml_list_action.php?gotype={$gotype}&uppage=$uppage&maxpagesize=$maxpagesize&typeid=$typeid&pageno=$nextpage";
- ShowMsg("更新栏目id:".$tid.",栏目名称:{$typename},继续执行任务", $gourl, 0, 100);
+ ShowMsg("更新栏目(id:".$tid."){$typename},继续执行任务", $gourl, 0, 100);
exit();
} else {
$gourl = "makehtml_list_action.php?gotype={$gotype}&uppage=$uppage&mkpage=$mkpage&maxpagesize=$maxpagesize&typeid=$typeid&pageno=$pageno";
- ShowMsg("更新栏目id:".$tid.",栏目名称:{$typename},继续执行任务", $gourl, 0, 100);
+ ShowMsg("更新栏目(id:".$tid."){$typename},继续执行任务", $gourl, 0, 100);
exit();
}
}
diff --git a/src/admin/member_view.php b/src/admin/member_view.php
index d55382ed..9ac11fc3 100644
--- a/src/admin/member_view.php
+++ b/src/admin/member_view.php
@@ -36,7 +36,6 @@ if ($row['send_max'] == -1) {
} else {
$rtimes = ($row['send_max'] - $sendtime) > 0? $row['send_max'] - $sendtime : 0;
}
-
function GetMemberTypeName($rank)
{
global $dsql;
diff --git a/src/admin/templets/catalog_edit.htm b/src/admin/templets/catalog_edit.htm
index 46498179..7a6c3a3c 100644
--- a/src/admin/templets/catalog_edit.htm
+++ b/src/admin/templets/catalog_edit.htm
@@ -128,7 +128,7 @@
文件保存目录: |
- (标签“{cmspath}”请勿删除) |
+ (标签“{cmspath}”必填) |
继承选项: |
|
@@ -248,10 +248,8 @@
是否支持跨站调用: |
+
-
-
-
|
@@ -277,21 +275,17 @@
diff --git a/src/admin/templets/catalog_main.htm b/src/admin/templets/catalog_main.htm
index bfad881c..0765237a 100644
--- a/src/admin/templets/catalog_main.htm
+++ b/src/admin/templets/catalog_main.htm
@@ -8,6 +8,7 @@
+
diff --git a/src/system/archive/listview.class.php b/src/system/archive/listview.class.php
index d233eff6..d0b73a61 100755
--- a/src/system/archive/listview.class.php
+++ b/src/system/archive/listview.class.php
@@ -98,7 +98,7 @@ class ListView
));
exit;
}
- //验签算法 md5(typeid+timestamp+apikey+PageNo+PageSize)
+ //验签算法md5(typeid+timestamp+apikey+PageNo+PageSize)
$sign = md5($this->TypeID.$GLOBALS['timestamp'].$this->Fields['apikey'].$GLOBALS['PageNo'].$GLOBALS['PageSize']);
if ($sign !== $GLOBALS['sign']) {
echo json_encode(array(
@@ -1106,12 +1106,12 @@ class ListView
}
$totalpage = ceil($this->TotalResult / $this->pagesize);
if ($totalpage <= 1 && $this->TotalResult > 0) {
- return "1页".$this->TotalResult."条\r\n";
+ return "1页".$this->TotalResult."条\r\n";
}
if ($this->TotalResult == 0) {
- return "0页".$this->TotalResult."条\r\n";
+ return "0页".$this->TotalResult."条\r\n";
}
- $maininfo = "{$totalpage}页".$this->TotalResult."条\r\n";
+ $maininfo = "{$totalpage}页".$this->TotalResult."条\r\n";
$purl = $this->GetCurUrl();
//如果开启为静态,则对规则进行替换
if ($cfg_rewrite == 'Y') {
diff --git a/src/system/archive/sglistview.class.php b/src/system/archive/sglistview.class.php
index 1a2f60be..cc0c2a22 100755
--- a/src/system/archive/sglistview.class.php
+++ b/src/system/archive/sglistview.class.php
@@ -94,7 +94,7 @@ class SgListView
));
exit;
}
- //验签算法 md5(typeid+timestamp+apikey+PageNo+PageSize)
+ //验签算法md5(typeid+timestamp+apikey+PageNo+PageSize)
$sign = md5($this->TypeID.$GLOBALS['timestamp'].$this->Fields['apikey'].$GLOBALS['PageNo'].$GLOBALS['PageSize']);
if ($sign !== $GLOBALS['sign']) {
echo json_encode(array(
diff --git a/src/system/libraries/jsonq/JsonQueriable.php b/src/system/libraries/jsonq/JsonQueriable.php
index 7a4e1a6c..74a4ca52 100644
--- a/src/system/libraries/jsonq/JsonQueriable.php
+++ b/src/system/libraries/jsonq/JsonQueriable.php
@@ -269,7 +269,6 @@ trait JsonQueriable
*/
protected function getDataFromUrl($url)
{
-
$curl_handle=curl_init();
curl_setopt($curl_handle, CURLOPT_URL, $url);
curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2);
diff --git a/src/system/memberlogin.class.php b/src/system/memberlogin.class.php
index fcad7f38..d9d2486d 100755
--- a/src/system/memberlogin.class.php
+++ b/src/system/memberlogin.class.php
@@ -320,8 +320,7 @@ class MemberLogin
return $fnum;
}
/**
- * 会员登录
- * 把登录密码转为指定长度md5数据
+ * 会员登录,把登录密码转为指定长度md5数据
*
* @access public
* @param string $pwd 需要加密的密码
@@ -343,29 +342,7 @@ class MemberLogin
}
}
/**
- * 投稿是否被限制
- *
- * @return array
- */
- function IsSendLimited()
- {
- $arr = $this->dsql->GetOne("SELECT COUNT(*) as dd FROM `#@__arctiny` WHERE mid='{$this->M_ID}'");
- if (is_array($arr)) {
- if ($this->M_SendMax < 0) {
- return false;
- }
- if ($arr['dd'] >= $this->M_SendMax) {
- return true;
- } else {
- return false;
- }
- } else {
- return true;
- }
- }
- /**
- * 把数据库密码转为特定长度
- * 如果数据库密码是明文的,本程序不支持
+ * 会员登录,把数据库密码转为特定长度,如果数据库密码是明文,本程序不支持
*
* @access public
* @param string
@@ -391,6 +368,27 @@ class MemberLogin
}
}
}
+ /**
+ * 投稿是否被限制
+ *
+ * @return array
+ */
+ function IsSendLimited()
+ {
+ $arr = $this->dsql->GetOne("SELECT COUNT(*) as dd FROM `#@__arctiny` WHERE mid='{$this->M_ID}'");
+ if (is_array($arr)) {
+ if ($this->M_SendMax < 0) {
+ return false;
+ }
+ if ($arr['dd'] >= $this->M_SendMax) {
+ return true;
+ } else {
+ return false;
+ }
+ } else {
+ return true;
+ }
+ }
/**
* 检查会员是否合法
*
@@ -408,7 +406,7 @@ class MemberLogin
$loginuser = $rs;
return '0';
}
- //matt=10 是管理员关连的前台帐号,为了安全起见,这个帐号只能从后台登录,不能直接从前台登录
+ //matt=10是管理员关连的前台帐号,为了安全起见,这个帐号只能从后台登录,不能直接从前台登录
$row = $this->dsql->GetOne("SELECT mid,matt,pwd,pwd_new,logintime FROM `#@__member` WHERE userid LIKE '$loginuser' ");
if (is_array($row)) {
if (!empty($row['pwd_new']) && !password_verify($loginpwd, $row['pwd_new'])) {
diff --git a/src/system/taglib/help/arclist.txt b/src/system/taglib/help/arclist.txt
index 869cf54f..d3faed0e 100755
--- a/src/system/taglib/help/arclist.txt
+++ b/src/system/taglib/help/arclist.txt
@@ -1,14 +1,15 @@
文档列表标签
>>dede>>
-{dede:arclist typeid='' row='' col='' titlelen='' flag='h' infolen='' imgwidth='' imgheight='' listtype='' orderby='' keyword='' limit='0,1'}
+{dede:arclist typeid='' notypeid='' row='' col='' titlelen='' flag='h' infolen='' imgwidth='' imgheight='' listtype='' orderby='' keyword='' limit='0,1'}
[field:title/]
{/dede:arclist}
>>dede>>
-col='' 分多少列显示(默认为单列)
-row='10' 返回文档列表总数
-typeid='' 调用栏目id,用英文逗号分开表示多个栏目
-titlelen='30' 标题长度等同于titlelength
-infolen='160' 表示文档简介长度等同于infolength
+typeid='' 调用栏目id文档,用英文逗号分开表示多个栏目
+notypeid='' 不调用栏目id文档,用英文逗号分开表示多个栏目
+row='10' 调用文档列表总数
+col='2' 分多少列显示(默认为单列)
+titlelen='160' 标题长度
+infolen='260' 文档简介长度
imgwidth='120' 缩略图宽度
imgheight='90' 缩略图高度
listtype='all' 栏目类型(顶级栏目)
@@ -20,14 +21,14 @@ orderby='sortrank' 文档排序方式
orderby=='scores' 按得分排序
orderby='id' 按文档id排序
orderby='rand' 随机获得指定条件的文档列表
-keyword='' 含有指定关键词的文档列表,多个关键词用英文逗号分开
+keyword='关键词' 含有指定关键词的文档列表,多个关键词用英文逗号分开
+limit='' 限定的记录范围(如:limit='1,2')
innertext='' 单条记录样式
aid='' 指定文档id
-idlist='' 提取特定文档(文档id)
+idlist='' 提取特定文档
isweight='n' 开启按照权重排序,默认为n/N,如果设为y/Y,则文档会按照weight字段排序,数值越小越靠前
-channelid 栏目id
-limit='' 起始,结束 表示限定的记录范围(如:limit='1,2')
+channelid='' 栏目id
flag='h' 自定义属性值:头条[h]推荐[c]图片[p]幻灯[f]滚动[s]跳转[j]图文[a]加粗[b]
noflag='' 同flag,但这里是表示不包含这些属性
-orderway='desc' 值为desc或asc,指定排序方式是降序还是顺向排序,默认为降序
-subday='天数' 表示在多少天以内的文档
\ No newline at end of file
+orderway='' 值为desc或asc,指定排序方式是降序还是顺向排序,默认为降序
+subday='7' 表示在多少天以内的文档
\ No newline at end of file
diff --git a/src/system/taglib/help/arclistsg.txt b/src/system/taglib/help/arclistsg.txt
index 27efb021..c5c9745b 100755
--- a/src/system/taglib/help/arclistsg.txt
+++ b/src/system/taglib/help/arclistsg.txt
@@ -1,19 +1,27 @@
自定义模型文档列表标签
>>dede>>
-{dede:arclistsg typeid='' row='' flag='h' col='' titlelen='' orderway='' keyword='' limit='0,1'}
+{dede:arclistsg typeid='' row='' col='' titlelen='' flag='h' orderway='' keyword='' limit='0,1'}
[field:title/]
{/dede:arclistsg}
>>dede>>
-col='' 分多少列显示(默认为单列)
-row='10' 返回文档列表总数
-typeid='' 调用栏目id,用英文逗号分开表示多个栏目
-titlelen='30' 标题长度等同于titlelength
-orderwey='desc'或'asc'排序方向
-keyword= 含有指定关键词的文档列表,多个关键词用英文逗号分开
-innertext="[field:title/]" 单条记录样式(innertext是放在标签之间的代码)
-arcid='' 指定文档id
-idlist='' 提取特定文档(文档id)
+typeid='' 调用栏目id文档,用英文逗号分开表示多个栏目
+row='10' 调用文档列表总数
+col='2' 分多少列显示(默认为单列)
+titlelen='160' 标题长度
+orderby='sortrank' 文档排序方式
+ orderby='hot' 或orderby='click'表示按点击数排列
+ orderby='sortrank' 或orderby='pubdate'按出版时间排列
+ orderby='near'
+ orderby=='lastpost' 按最后评论时间
+ orderby=='scores' 按得分排序
+ orderby='id' 按文档id排序
+ orderby='rand' 随机获得指定条件的文档列表
+keyword='关键词' 含有指定关键词的文档列表,多个关键词用英文逗号分开
+limit='' 限定的记录范围(如:limit='1,2')
+innertext='' 单条记录样式
+aid='' 指定文档id
+idlist='' 提取特定文档
channelid='' 栏目id
-limit='' 起始结束表示限定的记录范围(如:limit='1,2')
flag='h' 自定义属性值:头条[h]推荐[c]图片[p]幻灯[f]滚动[s]跳转[j]图文[a]加粗[b]
-subday='天数' 表示在多少天以内的文档
\ No newline at end of file
+orderway='' 值为desc或asc,指定排序方式是降序还是顺向排序,默认为降序
+subday='7' 表示在多少天以内的文档
\ No newline at end of file
diff --git a/src/system/taglib/help/autochannel.txt b/src/system/taglib/help/autochannel.txt
index 6367d73f..e0459eb1 100755
--- a/src/system/taglib/help/autochannel.txt
+++ b/src/system/taglib/help/autochannel.txt
@@ -2,5 +2,5 @@
>>dede>>
{dede:autochannel partsort='' typeid=''}{/dede:autochannel}
>>dede>>
-partsort='0' 栏目所在的排序位置
-typeid='0' 指定的父栏目
\ No newline at end of file
+partsort='' 栏目所在的排序位置
+typeid='' 指定的父栏目
\ No newline at end of file
diff --git a/src/system/taglib/help/channel.txt b/src/system/taglib/help/channel.txt
index 5a59adf1..6b273ed4 100755
--- a/src/system/taglib/help/channel.txt
+++ b/src/system/taglib/help/channel.txt
@@ -1,11 +1,10 @@
获取栏目列表标签
>>dede>>
-{dede:channel type='top' typeid='' notypeid='' row='8' currentstyle="~typename~"}
+{dede:channel type='top' typeid='' row='8' currentstyle="~typename~"}
[field:typename/]
{/dede:channel}
>>dede>>
typeid='' 调用栏目id,用英文逗号分开表示多个栏目
-notypeid='' 不调用栏目id,用英文逗号分开表示多个栏目
reid='0' 调用上级栏目id
row='100' 调用栏目数
col='1' 分多少列显示(默认为单列)
diff --git a/src/system/taglib/help/channelartlist.txt b/src/system/taglib/help/channelartlist.txt
index 1793d2b1..2bdec974 100755
--- a/src/system/taglib/help/channelartlist.txt
+++ b/src/system/taglib/help/channelartlist.txt
@@ -15,5 +15,4 @@
typeid='' 调用栏目id,用英文逗号分开表示多个栏目
notypeid='' 不调用栏目id,用英文逗号分开表示多个栏目
row='20' 获取的栏目返回值
-除了宏标签外,channelArtlist 是唯一一个可以直接嵌套其它标签的标签,不过仅限于嵌套
-{dede:type}{/dede:type}和{dede:arclist}{/dede:arclist}两个标签
\ No newline at end of file
+除了宏标签外,{dede:channelartlist}标签是唯一一个可以直接嵌套其它标签的标签,仅限于嵌套{dede:type}和{dede:arclist}
\ No newline at end of file
diff --git a/src/system/taglib/help/demotag.txt b/src/system/taglib/help/demotag.txt
index e8c881ef..94eba013 100755
--- a/src/system/taglib/help/demotag.txt
+++ b/src/system/taglib/help/demotag.txt
@@ -1,5 +1,4 @@
演示标签
>>dede>>
{dede:demotag/}
->>dede>>
-无属性信息
+>>dede>>
\ No newline at end of file
diff --git a/src/system/taglib/help/feedback.txt b/src/system/taglib/help/feedback.txt
index 8a940166..5c09037f 100755
--- a/src/system/taglib/help/feedback.txt
+++ b/src/system/taglib/help/feedback.txt
@@ -6,5 +6,5 @@
{/dede:feedback}
>>dede>>
row='12' 调用评论条数
-titlelen='24' 标题长度
-infolen='100' 评论长度
\ No newline at end of file
+titlelen='160' 标题长度
+infolen='260' 评论长度
\ No newline at end of file
diff --git a/src/system/taglib/help/flink.txt b/src/system/taglib/help/flink.txt
index 8c237188..0be44dd5 100755
--- a/src/system/taglib/help/flink.txt
+++ b/src/system/taglib/help/flink.txt
@@ -2,8 +2,8 @@
>>dede>>
{dede:flink row='30'/}
>>dede>>
-type='image' 或textall,图片链接,text文字链接;
+type='image' 或textall,图片链接,text文字链接
row='30' 链接数量
-titlelen='24' 站点文字的长度
+titlelen='30' 站点文字的长度
linktype='1' 链接位置(1首页,2内页)
typeid='0' 所有类型
\ No newline at end of file
diff --git a/src/system/taglib/help/infoguide.txt b/src/system/taglib/help/infoguide.txt
index c49cdbdb..46bce9b8 100755
--- a/src/system/taglib/help/infoguide.txt
+++ b/src/system/taglib/help/infoguide.txt
@@ -1,5 +1,4 @@
分类信息地区与小分类搜索标签
>>dede>>
{dede:infoguide/}
->>dede>>
-无属性
\ No newline at end of file
+>>dede>>
\ No newline at end of file
diff --git a/src/system/taglib/help/infolink.txt b/src/system/taglib/help/infolink.txt
index fbd87a65..4ba5d511 100755
--- a/src/system/taglib/help/infolink.txt
+++ b/src/system/taglib/help/infolink.txt
@@ -1,5 +1,4 @@
分类信息地区与类型快捷链接标签
>>dede>>
{dede:infolink/}
->>dede>>
-无属性
\ No newline at end of file
+>>dede>>
\ No newline at end of file
diff --git a/src/system/taglib/help/jsonq.txt b/src/system/taglib/help/jsonq.txt
deleted file mode 100755
index 01192aaf..00000000
--- a/src/system/taglib/help/jsonq.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-JSONQ标签
->>dede>>
-{dede:jsonq url='域名/api/v1/ping' path='list' cachetime='3600'}
- [field:title/]
-{/dede:json}
->>dede>>
-url='' JSON接口地址
-path='' 路径(可选),如果为空[field:path/]可获取指定path的值
-cachetime='3600' 缓存时间
\ No newline at end of file
diff --git a/src/system/taglib/help/likearticle.txt b/src/system/taglib/help/likearticle.txt
index f9f5bc61..2405dfda 100755
--- a/src/system/taglib/help/likearticle.txt
+++ b/src/system/taglib/help/likearticle.txt
@@ -6,7 +6,7 @@
>>dede>>
col='' 分多少列显示(默认为单列)
row='10' 返回文档列表总数
-titlelen='30' 标题长度等同于titlelength
-infolen='160' 表示文档简介长度 等同于infolength
+titlelen='160' 标题长度等同于titlelength
+infolen='260' 表示文档简介长度 等同于infolength
mytypeid='0' 手工指定要限定的栏目id,用英文逗号表示多个
innertext='' 单条记录样式(指标签中间的文档)
\ No newline at end of file
diff --git a/src/system/taglib/help/type.txt b/src/system/taglib/help/type.txt
index e3e4570a..6548da18 100755
--- a/src/system/taglib/help/type.txt
+++ b/src/system/taglib/help/type.txt
@@ -1,6 +1,6 @@
指定单个栏目数据标签
>>dede>>
-{dede:type}
+{dede:type typeid=''}
[field:typename/]
{/dede:type}
>>dede>>
diff --git a/src/system/taglib/help/vote.txt b/src/system/taglib/help/vote.txt
index 3a7f8999..4c7d8d7e 100755
--- a/src/system/taglib/help/vote.txt
+++ b/src/system/taglib/help/vote.txt
@@ -2,10 +2,9 @@
>>dede>>
{dede:vote id='' lineheight='26' tablewidth='100%' titlebgcolor='#EDEDE2' titlebackground='' tablebgcolor='#ffffff'/}
>>dede>>
-id='' 数字,当前投票ID
+id='' 数字,当前投票id
lineheight='26' 表格高度
tablewidth='100%' 表格宽度
titlebgcolor='#EDEDE2' 投票标题背景色
-titlebackground=''
tablebg='' 投票表格背景色
在后台->插件列表->投票管理,直接复制生成的网页代码来使用
\ No newline at end of file
diff --git a/src/user/album_add.php b/src/user/album_add.php
index a1e9dcee..4288c76f 100755
--- a/src/user/album_add.php
+++ b/src/user/album_add.php
@@ -29,7 +29,7 @@ $typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0;
$menutype = 'content';
if (empty($formhtml)) $formhtml = 0;
if ($cfg_ml->IsSendLimited()) {
- ShowMsg("投稿失败,投稿限定次数{$cfg_ml->M_SendMax}次(剩余0次),需要增加次数,请联系网站管理员", "-1", "0", 5000);
+ ShowMsg("投稿失败,投稿限定次数{$cfg_ml->M_SendMax}次(剩余0次),需要增加次数,请联系网站管理员", "index.php", "0", 5000);
exit();
}
if (empty($dopost)) {
diff --git a/src/user/album_edit.php b/src/user/album_edit.php
index bee3e1f2..4679b0e6 100755
--- a/src/user/album_edit.php
+++ b/src/user/album_edit.php
@@ -28,7 +28,7 @@ $aid = isset($aid) && is_numeric($aid) ? $aid : 0;
$menutype = 'content';
if (empty($formhtml)) $formhtml = 0;
if ($cfg_ml->IsSendLimited()) {
- ShowMsg("投稿失败,投稿限定次数{$cfg_ml->M_SendMax}次(剩余0次),需要增加次数,请联系网站管理员", "-1", "0", 5000);
+ ShowMsg("投稿失败,投稿限定次数{$cfg_ml->M_SendMax}次(剩余0次),需要增加次数,请联系网站管理员", "index.php", "0", 5000);
exit();
}
if (empty($dopost)) {
@@ -42,7 +42,7 @@ if (empty($dopost)) {
$dtime = time();
$maxtime = $cfg_mb_editday * 24 * 3600;
if ($dtime - $row['senddate'] > $maxtime) {
- ShowMsg("这篇文档已经锁定,暂时无法修改", "-1");
+ ShowMsg("这篇文档已锁定,暂时无法修改", "-1");
exit();
}
}
diff --git a/src/user/archives_add.php b/src/user/archives_add.php
index b98570ce..a1096fd3 100755
--- a/src/user/archives_add.php
+++ b/src/user/archives_add.php
@@ -20,7 +20,7 @@ $typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0;
$mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0;
$menutype = 'content';
if ($cfg_ml->IsSendLimited()) {
- ShowMsg("投稿失败,投稿限定次数{$cfg_ml->M_SendMax}次(剩余0次),需要增加次数,请联系网站管理员", "-1", "0", 5000);
+ ShowMsg("投稿失败,投稿限定次数{$cfg_ml->M_SendMax}次(剩余0次),需要增加次数,请联系网站管理员", "index.php", "0", 5000);
exit();
}
if (empty($dopost)) {
diff --git a/src/user/archives_edit.php b/src/user/archives_edit.php
index 464e62ef..99ce2f60 100755
--- a/src/user/archives_edit.php
+++ b/src/user/archives_edit.php
@@ -19,7 +19,7 @@ $aid = isset($aid) && is_numeric($aid) ? $aid : 0;
$mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0;
$menutype = 'content';
if ($cfg_ml->IsSendLimited()) {
- ShowMsg("投稿失败,投稿限定次数{$cfg_ml->M_SendMax}次(剩余0次),需要增加次数,请联系网站管理员", "-1", "0", 5000);
+ ShowMsg("投稿失败,投稿限定次数{$cfg_ml->M_SendMax}次(剩余0次),需要增加次数,请联系网站管理员", "index.php", "0", 5000);
exit();
}
if (empty($dopost)) {
@@ -33,7 +33,7 @@ if (empty($dopost)) {
$dtime = time();
$maxtime = $cfg_mb_editday * 24 * 3600;
if ($dtime - $row['senddate'] > $maxtime) {
- ShowMsg("这篇文档已经锁定,暂时无法修改", "-1");
+ ShowMsg("这篇文档已锁定,暂时无法修改", "-1");
exit();
}
}
diff --git a/src/user/archives_sg_add.php b/src/user/archives_sg_add.php
index 4dee58b1..e8822d2f 100755
--- a/src/user/archives_sg_add.php
+++ b/src/user/archives_sg_add.php
@@ -20,7 +20,7 @@ $typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0;
$mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0;
$menutype = 'content';
if ($cfg_ml->IsSendLimited()) {
- ShowMsg("投稿失败,投稿限定次数{$cfg_ml->M_SendMax}次(剩余0次),需要增加次数,请联系网站管理员", "-1", "0", 5000);
+ ShowMsg("投稿失败,投稿限定次数{$cfg_ml->M_SendMax}次(剩余0次),需要增加次数,请联系网站管理员", "index.php", "0", 5000);
exit();
}
if (empty($dopost)) {
diff --git a/src/user/archives_sg_edit.php b/src/user/archives_sg_edit.php
index a50029c9..83263e82 100755
--- a/src/user/archives_sg_edit.php
+++ b/src/user/archives_sg_edit.php
@@ -19,7 +19,7 @@ $aid = isset($aid) && is_numeric($aid) ? $aid : 0;
$mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0;
$menutype = 'content';
if ($cfg_ml->IsSendLimited()) {
- ShowMsg("投稿失败,投稿限定次数{$cfg_ml->M_SendMax}次(剩余0次),需要增加次数,请联系网站管理员", "-1", "0", 5000);
+ ShowMsg("投稿失败,投稿限定次数{$cfg_ml->M_SendMax}次(剩余0次),需要增加次数,请联系网站管理员", "index.php", "0", 5000);
exit();
}
if (empty($dopost)) {
diff --git a/src/user/article_add.php b/src/user/article_add.php
index caaa179e..ecaabe9f 100755
--- a/src/user/article_add.php
+++ b/src/user/article_add.php
@@ -20,7 +20,7 @@ $typeid = isset($typeid) && is_numeric($typeid) ? $typeid : 0;
$mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0;
$menutype = 'content';
if ($cfg_ml->IsSendLimited()) {
- ShowMsg("投稿失败,投稿限定次数{$cfg_ml->M_SendMax}次(剩余0次),需要增加次数,请联系网站管理员", "-1", "0", 5000);
+ ShowMsg("投稿失败,投稿限定次数{$cfg_ml->M_SendMax}次(剩余0次),需要增加次数,请联系网站管理员", "index.php", "0", 5000);
exit();
}
if (empty($dopost)) {
diff --git a/src/user/article_edit.php b/src/user/article_edit.php
index d5794227..66ba68fc 100755
--- a/src/user/article_edit.php
+++ b/src/user/article_edit.php
@@ -19,7 +19,7 @@ $aid = isset($aid) && is_numeric($aid) ? $aid : 0;
$mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0;
$menutype = 'content';
if ($cfg_ml->IsSendLimited()) {
- ShowMsg("投稿失败,投稿限定次数{$cfg_ml->M_SendMax}次(剩余0次),需要增加次数,请联系网站管理员", "-1", "0", 5000);
+ ShowMsg("投稿失败,投稿限定次数{$cfg_ml->M_SendMax}次(剩余0次),需要增加次数,请联系网站管理员", "index.php", "0", 5000);
exit();
}
if (empty($dopost)) {
@@ -33,7 +33,7 @@ if (empty($dopost)) {
$dtime = time();
$maxtime = $cfg_mb_editday * 24 * 3600;
if ($dtime - $row['senddate'] > $maxtime) {
- ShowMsg("这篇文档已经锁定,暂时无法修改", "-1");
+ ShowMsg("这篇文档已锁定,暂时无法修改", "-1");
exit();
}
}
diff --git a/src/user/index_do.php b/src/user/index_do.php
index 4e36daed..742fe01a 100755
--- a/src/user/index_do.php
+++ b/src/user/index_do.php
@@ -27,11 +27,9 @@ if ($fmdo == 'sendMail') {
$url = $proto.preg_replace("#\/\/#i", '/', $url);
$mailtitle = "{$cfg_webname},会员邮件验证通知";
$mailbody = '';
- $mailbody .= "尊敬的会员{$cfg_ml->fields['uname']},您好:\r\n";
- $mailbody .= "欢迎注册成为{$cfg_webname}会员\r\n";
+ $mailbody .= "尊敬的会员{$cfg_ml->fields['uname']},欢迎注册成为{$cfg_webname}会员\r\n";
$mailbody .= "要通过注册,还必须进行最后一步操作,请点击或复制下面链接到地址栏浏览这地址:\r\n";
$mailbody .= "{$url}\r\n";
- $mailbody .= "Powered by DedeBIZ开发团队\r\n";
$headers = "From: ".$cfg_adminemail."\r\nReply-To: ".$cfg_adminemail;
if (!empty($cfg_bizcore_appid) && !empty($cfg_bizcore_key)) {
$client = new DedeBizClient();
@@ -69,7 +67,7 @@ if ($fmdo == 'sendMail') {
$dsql->ExecuteNoneQuery("UPDATE `#@__member` SET spacesta=0 WHERE mid='{$mid}' ");
//清除会员缓存
$cfg_ml->DelCache($mid);
- ShowMsg('操作成功,请重新登录系统', 'login.php');
+ ShowMsg('会员缓存已清理', 'login.php');
exit();
} else if ($fmdo == 'user') {
//检查会员名是否存在
@@ -211,54 +209,49 @@ if ($fmdo == 'sendMail') {
require_once(DEDEINC.'/libraries/oxwindow.class.php');
CheckRank(0, 0);
$row = $dsql->GetOne("SELECT count(*) as dd FROM `#@__member` WHERE `pmid`='{$cfg_ml->M_ID}' ");
- $msg = "您已经邀请了{$row['dd']}人:
-
-
-
-
-
-
-
链接邀请
-
复制链接
+ $msg = "
您已经邀请了{$row['dd']}人:
+
-
-
-
-
-
-
-
- ";
+
+
+
+
+ ";
$wintitle = "邀请好友赚积分";
$wecome_info = " ";
$win = new OxWindow();
diff --git a/src/user/reg_new.php b/src/user/reg_new.php
index 3e5b607c..c2dbdafa 100755
--- a/src/user/reg_new.php
+++ b/src/user/reg_new.php
@@ -17,7 +17,7 @@ if (!isset($dopost)) $dopost = '';
$step = empty($step) ? 1 : intval($step);
if ($step == 1) {
if ($cfg_ml->IsLogin()) {
- ShowMsg('操作成功,请重新登录系统', 'index.php');
+ ShowMsg('正在登录会员中心,请稍等', 'index.php');
exit();
}
if ($dopost == 'regbase') {
@@ -108,7 +108,7 @@ if ($step == 1) {
if ($pMid > 0) {
$dsql->ExecuteNoneQuery("UPDATE `#@__member` SET scores=scores+{$cfg_userad_adds} WHERE mid='$pMid'");
}
- ShowMsg('操作成功,请重新登录系统', 'index.php');
+ ShowMsg('正在登录会员中心,请稍等', 'index.php');
exit;
} else {
ShowMsg("注册失败,请检查资料是否有误或与管理员联系", "-1");
@@ -122,7 +122,7 @@ if ($step == 1) {
ShowMsg("您未填写基本信息,请填写基本信息", "index_do.php?fmdo=user&dopost=regnew");
exit;
} else {
- ShowMsg('操作成功,请重新登录系统', 'index.php');
+ ShowMsg('正在登录会员中心,请稍等', 'index.php');
exit;
}
}
diff --git a/src/user/soft_edit.php b/src/user/soft_edit.php
index 6c50de3d..54c44aaf 100755
--- a/src/user/soft_edit.php
+++ b/src/user/soft_edit.php
@@ -29,7 +29,7 @@ if (empty($dopost)) {
$dtime = time();
$maxtime = $cfg_mb_editday * 24 * 3600;
if ($dtime - $row['senddate'] > $maxtime) {
- ShowMsg("这篇文档已经锁定,暂时无法修改", "-1");
+ ShowMsg("这篇文档已锁定,暂时无法修改", "-1");
exit();
}
}
diff --git a/src/user/templets/edit_baseinfo.htm b/src/user/templets/edit_baseinfo.htm
index 9792dfb9..454584e7 100755
--- a/src/user/templets/edit_baseinfo.htm
+++ b/src/user/templets/edit_baseinfo.htm
@@ -102,7 +102,7 @@
function checkSubmit() {
if (document.form2.oldpwd.value == '') {
document.form2.oldpwd.focus();
- ShowMsg("请您填写旧密码");
+ ShowMsg("请您填写原登录密码");
return false;
}
if (document.form2.userpwdok.value != document.form2.userpwd.value) {
@@ -124,7 +124,7 @@
$(document).ready(function () {
$("#btnChangeEmail").click(function () {
if ($("#iptOldpwd").val() === "") {
- ShowMsg("请您填写旧密码");
+ ShowMsg("请您填写原登录密码");
return false;
}
$.post("/user/api.php?action=get_old_email", { oldpwd: $("#iptOldpwd").val() }, function (result) {
diff --git a/src/user/templets/index.htm b/src/user/templets/index.htm
index aa2efc35..19966045 100755
--- a/src/user/templets/index.htm
+++ b/src/user/templets/index.htm
@@ -41,28 +41,28 @@
- -
-
+
-
+
消息管理
- -
-
+
-
+
文档管理
- -
-
+
-
+
我的收藏
- -
-
+
-
+
积分钱包
- -
-
+
-
+
资料修改
- -
-
+
-
+
推广链接
diff --git a/src/user/templets/reg-new.htm b/src/user/templets/reg-new.htm
index 7ca14a46..9b8c0719 100755
--- a/src/user/templets/reg-new.htm
+++ b/src/user/templets/reg-new.htm
@@ -18,10 +18,10 @@