From 4e0e4636ca9667170015ea5c89297b799726a108 Mon Sep 17 00:00:00 2001 From: tianya Date: Fri, 4 Dec 2020 15:06:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/dede/js/main.js | 1 - src/plus/recommend.php | 28 +-- .../default/widget_article_feedback.htm | 1 - src/templets/plus/comments_frame.htm | 171 ---------------- src/templets/plus/heightsearch.htm | 187 ++++++++---------- src/templets/plus/recommend.htm | 93 +++++---- 6 files changed, 140 insertions(+), 341 deletions(-) delete mode 100755 src/templets/plus/comments_frame.htm diff --git a/src/dede/js/main.js b/src/dede/js/main.js index d85f885c..abccb8f0 100755 --- a/src/dede/js/main.js +++ b/src/dede/js/main.js @@ -354,7 +354,6 @@ function CkRemote() { //载入指定宽高的AJAX窗体 function LoadQuickDiv(e, surl, oname, w, h) { - console.log(e); if ($Nav() == 'IE') { if (window.event) { var posLeft = window.event.clientX - 20; diff --git a/src/plus/recommend.php b/src/plus/recommend.php index f0f93ef4..11fa6259 100755 --- a/src/plus/recommend.php +++ b/src/plus/recommend.php @@ -25,36 +25,26 @@ if (empty($aid)) { //读取文档信息 if ($action == '') { - if ($type == 'sys') { - //读取文档信息 - $arcRow = GetOneArchive($aid); - if ($arcRow['aid'] == '') { - ShowMsg("无法把未知文档推荐给好友!", "-1"); - exit(); - } - extract($arcRow, EXTR_OVERWRITE); - } else { - $arcRow = $dsql->GetOne("SELECT s.*,t.* FROM `#@__member_stow` AS s LEFT JOIN `#@__member_stowtype` AS t ON s.type=t.stowname WHERE s.aid='$aid' AND s.type='$type'"); - if (!is_array($arcRow)) { - ShowMsg("无法把未知文档推荐给好友!", "-1"); - exit(); - } - $arcRow['arcurl'] = $arcRow['indexurl'] . "=" . $arcRow['aid']; - extract($arcRow, EXTR_OVERWRITE); + //读取文档信息 + $arcRow = GetOneArchive($aid); + if ($arcRow['aid'] == '') { + ShowMsg("无法把未知文档推荐给好友!", "-1"); + exit(); } + extract($arcRow, EXTR_OVERWRITE); } //发送推荐信息 else if ($action == 'send') { if (!CheckEmail($email)) { - echo ""; + ShowMsg("Email格式不正确", -1); exit(); } $mailbody = ''; - $msg = dede_htmlspecialchars($msg); + $msg = RemoveXSS(dede_htmlspecialchars($msg)); $mailtitle = "你的好友给你推荐了一篇文章"; $mailbody .= "$msg \r\n\r\n"; - $mailbody .= "Power by https://www.dedebiz.com DedeCMSV6内容管理系统!"; + $mailbody .= "Powered by https://www.dedebiz.com DedeCMSV6内容管理系统!"; $headers = "From: " . $cfg_adminemail . "\r\nReply-To: " . $cfg_adminemail; diff --git a/src/templets/default/widget_article_feedback.htm b/src/templets/default/widget_article_feedback.htm index f70f8e9b..7ae7da05 100644 --- a/src/templets/default/widget_article_feedback.htm +++ b/src/templets/default/widget_article_feedback.htm @@ -233,7 +233,6 @@ $.post("{dede:field name='phpurl'/}/feedback.php", good, function (data) { let result = JSON.parse(data); $(`#feedbackGood${fid}`).html(result.data); - console.log(result); }) } \ No newline at end of file diff --git a/src/templets/plus/comments_frame.htm b/src/templets/plus/comments_frame.htm deleted file mode 100755 index d08d2a4f..00000000 --- a/src/templets/plus/comments_frame.htm +++ /dev/null @@ -1,171 +0,0 @@ - - - - -comment - - - - - -
-
-
- 最新评论 - 查看所有评论 -
-
-
-{dede:datalist} - -
-
-0) echo $fields['face'];?>.gif'/> -{dede:field.username/} -{dede:field.dtime function=GetDateMk(@me)/} -发表 -
-
-支持[{dede:field.good/}] -反对[{dede:field.bad/}] -引用 -
-
{dede:field.msg function='jstrim(@me,100)'/}{dede:field.ftypetitle/} -
-
-{/dede:datalist} -
-
-
-
-
-
-
- 发表评论 - 查看所有评论 -
-
-
-
- - - - -
- 请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。 -
-
- 评价: - - - -
-
- -
- -
- 表情: -
    -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
-
-
-
- 用户名: - 密码: - 验证码: - -
- -
- -
-
-
-
-
-
-
- - - diff --git a/src/templets/plus/heightsearch.htm b/src/templets/plus/heightsearch.htm index 5a686b42..15efeec2 100755 --- a/src/templets/plus/heightsearch.htm +++ b/src/templets/plus/heightsearch.htm @@ -1,63 +1,56 @@ - + + - -<?php echo $cfg_webname;?>_高级搜索 - + + <?php echo $cfg_webname;?>_高级搜索 + + + + - -
-
-
-

{dede:global.cfg_webname/}

-
+ -
-
+ -
-
-

高级搜索

- - 返回首页 - -
-
- - - - - + + + + + + + + + + + + + + + + + + + + + + +
网站栏目: - +
+ + + + + - - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - -
网站栏目: + GetOptionArray(0,0,0); - echo "\r\n"; echo "\r\n"; echo $typeOptions; echo ""; ?> -
关 键 字:
发布时间:
内容类型:
关 键 字:
发布时间:
内容类型:
排序方式:
显示条数:
关键字模式: - 或 - - 与
搜索内容: - -
 
-
-
- - +
排序方式:
显示条数:
关键字模式: + +
搜索内容: + +
  + +
+
+
+
- - + - + + \ No newline at end of file diff --git a/src/templets/plus/recommend.htm b/src/templets/plus/recommend.htm index 7ef60c58..fca45a01 100755 --- a/src/templets/plus/recommend.htm +++ b/src/templets/plus/recommend.htm @@ -1,37 +1,37 @@ - + + - -推荐_<?php echo $title; ?>_{dede:global name='cfg_webname'/} - + + 推荐_<?php echo $title; ?>_{dede:global name='cfg_webname'/} + + + + - -
-
-
-

-
+ -
-
-
-
-

推荐:

-
-
-
- - - - - - - - - - - - - - - - -
你好友的Email:
你的留言:
 
-
-
-
- - + + +   + + + + + + + + + + - + + \ No newline at end of file