From e898f10e248661c5a318e3f2c92ef2391d76ac0b Mon Sep 17 00:00:00 2001 From: tianya Date: Wed, 16 Sep 2020 13:22:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=AF=84=E8=AE=BA=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/dede/feedback_edit.php | 7 + src/dede/inc/inc_menu.php | 2 +- src/dede/inc/inc_menu_map.php | 2 +- src/dede/index_body.php | 195 +--------- src/dede/sys_payment.php | 2 +- src/dede/templets/catalog_edit.htm | 3 +- src/dede/templets/feedback_main.htm | 10 +- src/dede/templets/index_body.htm | 10 +- src/dede/templets/makehtml_taglist.htm | 6 +- src/index.php | 1 + src/plus/feedback.php | 34 +- src/plus/feedback_ajax.php | 352 ------------------ src/static/css/member.css | 1 + src/templets/default/ajaxfeedback2.htm | 258 ------------- src/templets/default/widget_article_digg.htm | 2 +- .../default/widget_article_feedback.htm | 1 + 16 files changed, 45 insertions(+), 841 deletions(-) delete mode 100755 src/plus/feedback_ajax.php delete mode 100755 src/templets/default/ajaxfeedback2.htm diff --git a/src/dede/feedback_edit.php b/src/dede/feedback_edit.php index cf2517ab..14fb529e 100755 --- a/src/dede/feedback_edit.php +++ b/src/dede/feedback_edit.php @@ -31,6 +31,13 @@ if($dopost=='edit') $dsql->ExecuteNoneQuery($query); ShowMsg("成功回复一则留言!",$ENV_GOBACK_URL); exit(); +} elseif ($dopost === 'makehtml') { + require_once(DEDEADMIN.'/inc/inc_archives_functions.php'); + $query = "SELECT * FROM `#@__feedback` WHERE id=$id"; + $row = $dsql->GetOne($query); + MakeArt($row['aid']); + ShowMsg("成功更新评论所在的文档内容",$ENV_GOBACK_URL); + exit(); } $query = "SELECT * FROM `#@__feedback` WHERE id=$id"; $row = $dsql->GetOne($query); diff --git a/src/dede/inc/inc_menu.php b/src/dede/inc/inc_menu.php index 8764786f..5df53eda 100755 --- a/src/dede/inc/inc_menu.php +++ b/src/dede/inc/inc_menu.php @@ -127,7 +127,7 @@ $adminMenu1 - + diff --git a/src/dede/inc/inc_menu_map.php b/src/dede/inc/inc_menu_map.php index f898d493..a380f3f6 100755 --- a/src/dede/inc/inc_menu_map.php +++ b/src/dede/inc/inc_menu_map.php @@ -78,7 +78,7 @@ $menusMain = " - + diff --git a/src/dede/index_body.php b/src/dede/index_body.php index 4abc9ee6..4e528c10 100755 --- a/src/dede/index_body.php +++ b/src/dede/index_body.php @@ -154,7 +154,7 @@ function _getRightSide() { } $chArr[] = $row; } ?> - +
@@ -191,7 +191,7 @@ function _getRightSide() { } } AjaxHead(); ?> -
会员数:
+
array( - 'method' => $post ? 'POST' : 'GET', - 'header' => $header, - 'content' => $content, - 'timeout' => $timeout, - ), - )); - $fp = @fopen($scheme . '://' . $host . ':' . $port . $path, 'b', false, $context); - $fpflag = 1; - } - - if (!$fp) { - return ''; - } else { - stream_set_blocking($fp, true); - stream_set_timeout($fp, $timeout); - @fwrite($fp, $out); - $status = stream_get_meta_data($fp); - if (!$status['timed_out']) { - while (!feof($fp) && !$fpflag) { - if (($header = @fgets($fp)) && ($header == "\r\n" || $header == "\n")) { - break; - } - } - if ($limit) { - $return = stream_get_contents($fp, $limit); - } else { - $return = stream_get_contents($fp); - } - } - @fclose($fp); - return $return; - } - } - $seo_info = array(); - $seo_info = $dsql->GetOne("SELECT * FROM `#@__plus_seoinfo` ORDER BY id DESC"); - $now = time(); - if (empty($seo_info) or $now - $seo_info['create_time'] > 60 * 60 * 6) { - $site = str_replace(array("http://", '/'), '', $cfg_basehost); - - $url = "http://www.alexa.com/siteinfo/{$site}"; - $html = dedeseo_http_send($url); - //var_dump($html);exit; - if (preg_match("#API at http://aws.amazon.com/awis -->(.*)#isU", $html, $matches)) { - $seo_info['alexa_num'] = isset($matches[1]) ? trim($matches[1]) : 0; - } - $seo_info['alexa_num'] = empty($seo_info['alexa_num']) ? 0 : $seo_info['alexa_num']; - if (preg_match("#Flag'>(.*)#isU", $html, $matches)) { - $seo_info['alexa_area_num'] = isset($matches[1]) ? trim($matches[1]) : 0; - } - $seo_info['alexa_area_num'] = empty($seo_info['alexa_area_num']) ? 0 : $seo_info['alexa_area_num']; - - $url = "http://www.baidu.com/s?wd=site:{$site}"; - $html = Html2Text(dedeseo_http_send($url)); - if (preg_match("#结果数约([\d]+)个#", $html, $matches)) { - $seo_info['baidu_count'] = isset($matches[1]) ? $matches[1] : 0; - } - if (empty($seo_info['baidu_count']) and preg_match("#网站共有([\d, ]+)个#", $html, $matches)) { - $seo_info['baidu_count'] = isset($matches[1]) ? trim($matches[1]) : 0; - } - $seo_info['baidu_count'] = empty($seo_info['baidu_count']) ? 0 : $seo_info['baidu_count']; - - $url = "http://www.sogou.com/web?query=site:{$site}"; - $html = Html2Text(dedeseo_http_send($url)); - if (preg_match("#结果数约([\d]+)个#", $html, $matches)) { - $seo_info['sogou_count'] = isset($matches[1]) ? $matches[1] : 0; - } - if (empty($seo_info['sogou_count']) and preg_match("#找到约([\d, ]+)条结果#", $html, $matches)) { - $seo_info['sogou_count'] = isset($matches[1]) ? trim($matches[1]) : 0; - } - $seo_info['sogou_count'] = empty($seo_info['sogou_count']) ? 0 : $seo_info['sogou_count']; - - $url = "http://www.haosou.com/s?q=site%3A{$site}"; - $html = Html2Text(dedeseo_http_send($url)); - if (preg_match("#结果数约([\d]+)个#", $html, $matches)) { - $seo_info['haosou360_count'] = isset($matches[1]) ? $matches[1] : 0; - } - if (empty($seo_info['haosou360_count']) and preg_match("#结果约([\d, ]+)个#", $html, $matches)) { - $seo_info['haosou360_count'] = isset($matches[1]) ? trim($matches[1]) : 0; - } - $seo_info['haosou360_count'] = empty($seo_info['haosou360_count']) ? 0 : $seo_info['haosou360_count']; - - - $in_query = "INSERT INTO `#@__plus_seoinfo` (`create_time`, `alexa_num`, `alexa_area_num`, `baidu_count`, `sogou_count`, `haosou360_count`) VALUES ({$now}, '{$seo_info['alexa_num']}', '{$seo_info['alexa_area_num']}', '{$seo_info['baidu_count']}', '{$seo_info['sogou_count']}', '{$seo_info['haosou360_count']}');"; - $dsql->ExecuteNoneQuery($in_query); - } - $inff = array( - 'alexa_num' => 'Alexa全球排名', - 'alexa_area_num' => 'Alexa地区排名', - 'baidu_count' => '百度收录', - 'sogou_count' => '搜狗收录', - 'haosou360_count' => '360收录', - ); -?> -
- - $value) { - if ($key == 'id' or $key == 'create_time') continue; - ?> - - - - - - - - -
- : -
- \ No newline at end of file diff --git a/src/dede/sys_payment.php b/src/dede/sys_payment.php index 6af4276f..dfbe4cfe 100755 --- a/src/dede/sys_payment.php +++ b/src/dede/sys_payment.php @@ -13,7 +13,7 @@ require_once(DEDEINC.'/datalistcp.class.php'); CheckPurview('sys_Data'); $dopost = (empty($dopost))? '' : $dopost; -$pid = (empty($pid))? 0 : preg_replace('/[^0-9]/','',$pid); +$pid = (empty($pid))? 0 : intval($pid); /* 下面数数组格式的例子: */ diff --git a/src/dede/templets/catalog_edit.htm b/src/dede/templets/catalog_edit.htm index 41a039fd..ef76e6f0 100755 --- a/src/dede/templets/catalog_edit.htm +++ b/src/dede/templets/catalog_edit.htm @@ -5,6 +5,7 @@ 栏目管理 + @@ -328,7 +329,7 @@ $i = 0; '> 绑定小分类:
仅适用[分类信息模型] - 用户:{dede:field.username/} - + 文档:{dede:field.arctitle function="RemoveXSS(@me)"/} (浏览) 0) { ?>({dede:field.replycount/}条回复) @@ -119,13 +119,15 @@ IP地址:{dede:field.ip/} - + 时间:{dede:field.dtime function="GetDateTimeMK(@me)" /} - + 编辑 + 更新文档 diff --git a/src/dede/templets/index_body.htm b/src/dede/templets/index_body.htm index 5524dc97..a12dcfc3 100755 --- a/src/dede/templets/index_body.htm +++ b/src/dede/templets/index_body.htm @@ -5,6 +5,7 @@ DedeCMS Home + @@ -43,12 +44,15 @@ display: flex; flex-direction: column; } + .footer { + padding: 10px; + }
-
+
欢迎使用专业的PHP网站管理系统,轻松建站的首选利器 --
@@ -222,7 +226,7 @@
- +
主程序研发: - +
1) { diff --git a/src/dede/templets/makehtml_taglist.htm b/src/dede/templets/makehtml_taglist.htm index 9aaf4b68..31a00938 100644 --- a/src/dede/templets/makehtml_taglist.htm +++ b/src/dede/templets/makehtml_taglist.htm @@ -51,9 +51,9 @@ diff --git a/src/index.php b/src/index.php index d4b1970e..3eece6f9 100755 --- a/src/index.php +++ b/src/index.php @@ -3,6 +3,7 @@ * @version $Id: index.php 1 9:23 2010-11-11 tianya $ * @package DedeCMS.Site * @copyright Copyright (c) 2007 - 2020, DesDev, Inc. + * @copyright Copyright (c) 2020, DedeBIZ.COM * @license http://help.dedecms.com/usersguide/license.html * @link http://www.dedecms.com */ diff --git a/src/plus/feedback.php b/src/plus/feedback.php index b08c95b9..d2bcde7e 100755 --- a/src/plus/feedback.php +++ b/src/plus/feedback.php @@ -27,6 +27,7 @@ if (!isset($action)) { } $msg = isset($msg) ? $msg : ""; +$feedbacktype = isset($feedbacktype) ? $feedbacktype : ""; $validate = isset($validate) ? $validate : ""; $pwd = isset($pwd) ? $pwd : ""; $comtype = isset($comtype) ? $comtype : ""; @@ -34,8 +35,8 @@ $good = isset($good) ? intval($good) : 0; $cfg_formmember = isset($cfg_formmember) ? true : false; $ischeck = $cfg_feedbackcheck == 'Y' ? 0 : 1; -$aid = (isset($aid) && is_numeric($aid)) ? $aid : 0; -$fid = (isset($fid) && is_numeric($fid)) ? $fid : 0; // 用来标记回复评论的变量 +$aid = isset($aid) ? intval($aid) : 0; +$fid = isset($fid) ? intval($fid) : 0; // 用来标记回复评论的变量 if (empty($aid) && empty($fid)) { echo json_encode(array( @@ -97,23 +98,6 @@ if ($action == '' || $action == 'show') { )); exit; } - -//引用评论 -//------------------------------------ -/* -function __Quote(){ } -*/ else if ($action == 'quote') { - AjaxHead(); - - $row = $dsql->GetOne("SELECT * FROM `#@__feedback` WHERE id ='$fid'"); - require_once(DEDEINC . '/dedetemplate.class.php'); - $dtp = new DedeTemplate(); - $tplfile = $type == '' ? DEDETEMPLATE . '/plus/feedback_quote.htm' : DEDETEMPLATE . '/plus/feedback_quote_ajax.htm'; - - $dtp->LoadTemplate($tplfile); - $dtp->Display(); - exit(); -} //发表评论 //------------------------------------ /* @@ -223,18 +207,20 @@ function __SendFeedback(){ } extract($arcRow, EXTR_SKIP); $msg = cn_substrR(TrimMsg($msg), $cfg_feedback_msglen); $username = cn_substrR(HtmlReplace($username, 2), 20); - if (empty($feedbacktype) || ($feedbacktype != 'good' && $feedbacktype != 'bad')) { + + if (empty($feedbacktype) || !in_array($feedbacktype, array('good', 'bad'))) { $feedbacktype = 'feedback'; } + //保存评论内容 - if ($comtype == 'comments') { - $arctitle = addslashes($title); + if ($comtype == 'comments' || $comtype == 'reply') { + $arctitle = empty($title)? "" : addslashes($title); $typeid = intval($typeid); $ischeck = intval($ischeck); $feedbacktype = preg_replace("#[^0-9a-z]#i", "", $feedbacktype); if ($msg != '') { - $inquery = "INSERT INTO `#@__feedback`(`aid`,`typeid`,`username`,`arctitle`,`ip`,`ischeck`,`dtime`, `mid`,`bad`,`good`,`ftype`,`face`,`msg`) - VALUES ('$aid','$typeid','$username','$arctitle','$ip','$ischeck','$dtime', '{$cfg_ml->M_ID}','0','0','$feedbacktype','$face','$msg'); "; + $inquery = "INSERT INTO `#@__feedback`(`aid`,`typeid`,`fid`, `username`,`arctitle`,`ip`,`ischeck`,`dtime`, `mid`,`bad`,`good`,`ftype`,`face`,`msg`) + VALUES ('$aid','$typeid','$fid','$username','$arctitle','$ip','$ischeck','$dtime', '{$cfg_ml->M_ID}','0','0','$feedbacktype','$face','$msg'); "; $rs = $dsql->ExecuteNoneQuery($inquery); if (!$rs) { echo json_encode(array( diff --git a/src/plus/feedback_ajax.php b/src/plus/feedback_ajax.php deleted file mode 100755 index 4e5d2ffe..00000000 --- a/src/plus/feedback_ajax.php +++ /dev/null @@ -1,352 +0,0 @@ -验证码错误,请点击验证码图片更新验证码!'; - exit(); - } - } - - $arcRow = GetOneArchive($aid); - if(empty($arcRow['aid'])) - { - echo '无法查看未知文档的评论!'; - exit(); - } - if(isset($arcRow['notpost']) && $arcRow['notpost']==1) - { - echo '这篇文档禁止评论!'; - exit(); - } - - if( $cfg_soft_lang != 'utf8' ) - { - $msg = UnicodeUrl2Gbk($msg); - if(!empty($username)) $username = UnicodeUrl2Gbk($username); - } - //词汇过滤检查 - if( $cfg_notallowstr != '' ) - { - if(preg_match("#".$cfg_notallowstr."#i", $msg)) - { - echo "评论内容含有禁用词汇!"; - exit(); - } - } - if( $cfg_replacestr != '' ) - { - $msg = preg_replace("#".$cfg_replacestr."#i", '***', $msg); - } - if( empty($msg) ) - { - echo "评论内容可能不合法或为空!"; - exit(); - } - if($cfg_feedback_guest == 'N' && $cfg_ml->M_ID < 1) - { - echo "管理员禁用了游客评论!点击登录"; - exit(); - } - //检查用户 - $username = empty($username) ? '游客' : $username; - if(empty($notuser)) $notuser = 0; - if($notuser==1) - { - $username = $cfg_ml->M_ID > 0 ? '匿名' : '游客'; - } - else if($cfg_ml->M_ID > 0) - { - $username = $cfg_ml->M_UserName; - } - else if($username!='' && $pwd!='') - { - $rs = $cfg_ml->CheckUser($username, $pwd); - if($rs==1) - { - $dsql->ExecuteNoneQuery("Update `#@__member` set logintime='".time()."',loginip='".GetIP()."' where mid='{$cfg_ml->M_ID}'; "); - } - $cfg_ml = new MemberLogin(); - } - - //检查评论间隔时间 - $ip = GetIP(); - $dtime = time(); - if(!empty($cfg_feedback_time)) - { - //检查最后发表评论时间,如果未登录判断当前IP最后评论时间 - $where = ($cfg_ml->M_ID > 0 ? "WHERE `mid` = '$cfg_ml->M_ID' " : "WHERE `ip` = '$ip' "); - $row = $dsql->GetOne("SELECT dtime FROM `#@__feedback` $where ORDER BY `id` DESC "); - if(is_array($row) && $dtime - $row['dtime'] < $cfg_feedback_time) - { - ResetVdValue(); - echo '管理员设置了评论间隔时间,请稍等休息一下!'; - exit(); - } - } - $face = 1; - extract($arcRow, EXTR_SKIP); - $msg = cn_substrR(TrimMsg($msg), 500); - $username = cn_substrR(HtmlReplace($username,2), 20); - if(empty($feedbacktype) || ($feedbacktype!='good' && $feedbacktype!='bad')) - { - $feedbacktype = 'feedback'; - } - //保存评论内容 - if(!empty($fid)) - { - $row = $dsql->GetOne("SELECT username,msg from `#@__feedback` WHERE id ='$fid' "); - $qmsg = '{quote}{content}'.$row['msg'].'{/content}{title}'.$row['username'].' 的原帖:{/title}{/quote}'; - $msg = addslashes($qmsg).$msg; - } - $ischeck = ($cfg_feedbackcheck=='Y' ? 0 : 1); - $arctitle = addslashes(RemoveXSS($title)); - $typeid = intval($typeid); - $feedbacktype = preg_replace("#[^0-9a-z]#i", "", $feedbacktype); - $inquery = "INSERT INTO `#@__feedback`(`aid`,`typeid`,`username`,`arctitle`,`ip`,`ischeck`,`dtime`, `mid`,`bad`,`good`,`ftype`,`face`,`msg`) - VALUES ('$aid','$typeid','$username','$arctitle','$ip','$ischeck','$dtime', '{$cfg_ml->M_ID}','0','0','$feedbacktype','$face','$msg'); "; - $rs = $dsql->ExecuteNoneQuery($inquery); - if( !$rs ) - { - echo "发表评论出错了!"; - //echo $dslq->GetError(); - exit(); - } - $newid = $dsql->GetLastID(); - //给文章评分 - if($feedbacktype=='bad') - { - $dsql->ExecuteNoneQuery("UPDATE `#@__archives` SET scores=scores-{cfg_feedback_sub},badpost=badpost+1,lastpost='$dtime' WHERE id='$aid' "); - } - else if($feedbacktype=='good') - { - $dsql->ExecuteNoneQuery("UPDATE `#@__archives` SET scores=scores+{$cfg_feedback_add},goodpost=goodpost+1,lastpost='$dtime' WHERE id='$aid' "); - } - else - { - $dsql->ExecuteNoneQuery("UPDATE `#@__archives` SET scores=scores+1,lastpost='$dtime' WHERE id='$aid' "); - } - //给用户增加积分 - if($cfg_ml->M_ID > 0) - { - $dsql->ExecuteNoneQuery("UPDATE `#@__member` set scores=scores+{$cfg_sendfb_scores} WHERE mid='{$cfg_ml->M_ID}' "); - $row = $dsql->GetOne("SELECT COUNT(*) AS nums FROM `#@__feedback` WHERE `mid`='".$cfg_ml->M_ID."'"); - $dsql->ExecuteNoneQuery("UPDATE `#@__member_tj` SET `feedback`='$row[nums]' WHERE `mid`='".$cfg_ml->M_ID."'"); - } - $_SESSION['sedtime'] = time(); - if($ischeck==0) - { - echo '成功发表评论,但需审核后才会显示你的评论!'; - exit(); - } - else - { - $spaceurl = '#'; - if($cfg_ml->M_ID > 0) $spaceurl = "{$cfg_memberurl}/index.php?uid=".urlencode($cfg_ml->M_LoginID); - $id = $newid; - $msg = stripslashes($msg); - $msg = str_replace('<', '<', $msg); - $msg = str_replace('>', '>', $msg); - helper('smiley'); - $msg = RemoveXSS(Quote_replace(parseSmileys($msg, $cfg_cmspath.'/images/smiley'))); - //$msg = RemoveXSS(Quote_replace($msg)); - if($feedbacktype=='bad') $bgimg = 'cmt-bad.gif'; - else if($feedbacktype=='good') $bgimg = 'cmt-good.gif'; - else $bgimg = 'cmt-neu.gif'; - global $dsql, $aid, $pagesize, $cfg_templeturl; - if($cfg_ml->M_ID==""){ - $mface=$cfg_cmspath."/member/templets/images/dfboy.png"; - } else { - $row = $dsql->GetOne("SELECT face,sex FROM `#@__member` WHERE mid={$cfg_ml->M_ID} "); - if(empty($row['face'])) - { - if($row['sex']=="女") $mface=$cfg_cmspath."/member/templets/images/dfgirl.png"; - else $mface=$cfg_cmspath."/member/templets/images/dfboy.png"; - } - } -?> - -
- -
-
-GetOne("SELECT COUNT(*) AS dd FROM `#@__feedback` WHERE aid='$aid' AND ischeck='1' "); - $totalcount = (empty($row['dd']) ? 0 : $row['dd']); - $startNum = $pagesize * ($page-1); - if($startNum > $totalcount) - { - echo "参数错误!"; - return $totalcount; - } - $dsql->Execute('fb', $querystring." LIMIT $startNum, $pagesize "); - while($fields = $dsql->GetArray('fb')) - { - if($fields['userid']!='') $spaceurl = $GLOBALS['cfg_memberurl'].'/index.php?uid='.$fields['userid']; - else $spaceurl = '#'; - if($fields['username']=='匿名') $spaceurl = '#'; - $fields['bgimg'] = 'cmt-neu.gif'; - $fields['ftypetitle'] = '该用户表示中立'; - if($fields['ftype']=='bad') - { - $fields['bgimg'] = 'cmt-bad.gif'; - $fields['ftypetitle'] = '该用户表示差评'; - } - else if($fields['ftype']=='good') - { - $fields['bgimg'] = 'cmt-good.gif'; - $fields['ftypetitle'] = '该用户表示好评'; - } - if(empty($fields['mface'])) - { - if($fields['sex']=="女") $fields['mface']=$cfg_cmspath."/member/templets/images/dfgirl.png"; - else $fields['mface']=$cfg_cmspath."/member/templets/images/dfboy.png"; - } - $fields['face'] = empty($fields['face']) ? 6 : $fields['face']; - $fields['msg'] = str_replace('<', '<', $fields['msg']); - $fields['msg'] = str_replace('>', '>', $fields['msg']); - helper('smiley'); - $fields['msg'] = RemoveXSS(Quote_replace(parseSmileys($fields['msg'], $cfg_cmspath.'/images/smiley'))); - extract($fields, EXTR_OVERWRITE); -?> -
- -
-
-"; - echo "总: {$allpage} 页/{$totalcount} 条评论 "; - $listsize = 5; - $total_list = $listsize * 2 + 1; - $totalpage = $allpage; - $listdd = ''; - if($curpage-1 > 0 ) - { - echo "上一页 "; - } - if($curpage >= $total_list) - { - $j = $curpage - $listsize; - $total_list = $curpage + $listsize; - if($total_list > $totalpage) - { - $total_list = $totalpage; - } - } - else - { - $j = 1; - if($total_list > $totalpage) $total_list = $totalpage; - } - for($j; $j <= $total_list; $j++) - { - echo ($j==$curpage ? "$j " : "{$j} "); - } - if($curpage+1 <= $totalpage ) - { - echo "下一页 "; - } - echo " -"; -} \ No newline at end of file diff --git a/src/static/css/member.css b/src/static/css/member.css index aae16233..7c212075 100644 --- a/src/static/css/member.css +++ b/src/static/css/member.css @@ -55,6 +55,7 @@ main.login-from { .member .member-logo { border-radius: 50%; + max-width: 72px; } .member-actions a { diff --git a/src/templets/default/ajaxfeedback2.htm b/src/templets/default/ajaxfeedback2.htm deleted file mode 100755 index 40958a79..00000000 --- a/src/templets/default/ajaxfeedback2.htm +++ /dev/null @@ -1,258 +0,0 @@ - - -
-
-
发表评论
-
-
-
- - - - -
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
- -
评价: - - - - - - -
- -
-
- - - {dede:php} - GetEditor('msg','',100,'Feedback','print','false',true); - {/dede:php}
- -
- -
{dede:php} - if($cfg_mb_open=='Y') { - echo '用户名: - - '; - } - {/dede:php} - {dede:php} - if(preg_match("/4/",$safe_gdopen)){ - echo '验证码: - - 点击我更换图片'; - } - {/dede:php} - - -
- {dede:php} - if($cfg_mb_open=='Y') { - echo ' - - '; - } - {/dede:php} -
- -
-
- -
-
-
-
- - - -
-
-
最新评论 进入详细评论页>>
- -
-
-
-
- - - diff --git a/src/templets/default/widget_article_digg.htm b/src/templets/default/widget_article_digg.htm index da430d0e..a65d224e 100644 --- a/src/templets/default/widget_article_digg.htm +++ b/src/templets/default/widget_article_digg.htm @@ -54,7 +54,7 @@ if (j == 19 && !hasid) break; } } - if (hasid) { alert("您已经顶过该帖,请不要重复顶帖 !"); return; } + if (hasid) { ShowMsg("您已经顶过该帖,请不要重复顶帖 !"); return; } else saveid += ',' + aid; SetCookie('diggid', saveid, 1); } diff --git a/src/templets/default/widget_article_feedback.htm b/src/templets/default/widget_article_feedback.htm index 7167e176..9560bed9 100644 --- a/src/templets/default/widget_article_feedback.htm +++ b/src/templets/default/widget_article_feedback.htm @@ -142,6 +142,7 @@ action : "send", comtype : "reply", fid : fid, + aid : "{dede:field name='id'/}", msg : content, } $.post("{dede:field name='phpurl'/}/feedback.php", reply, function (data) {
说明: 仅更新文档数多于的关键词
- 更新所有TAG将会智能更新在[TAG标签管理]中重新获取更新的内容
- TAG首页模板文件://tag.htm
- TAG列表页模板文件://taglist.htm
+ 更新所有Tag将会智能更新在[Tag标签管理]中重新获取更新的内容
+ Tag首页模板文件://tag.htm
+ Tag列表页模板文件://taglist.htm
生成静态文件后,访问动态文件则直接跳转到静态文件,如果需要动态访问,删除对应文件即可。