在下面加入:
session_start();
if( empty($_SESSION["s_validate"]) ) $svali = "";
else $svali = $_SESSION["s_validate"];
if($feedback_validate && strtolower($vdcode)!=$svali && $svali!=""){
ShowMsg("验证码错误!","-1");
exit();
这样就可以实现评论验证码的功能了,并且可选开关。另外,评论还可以加入时间限制,IP限制等
{dede:field name='keywords' runphp='yes' }
if(!empty(@me)){
$kws = explode(' ',@me);
@me = "";
foreach($kws as $k){
@me .= "<a class='tags' HREF='javascript:void(null)' onclick='var ajax=new AJAXRequest;document.getElementById(\"relatedlinks\").innerHTML=\"< img src=http://www.joohe.com/images/indicator.gif>数据加载中,请稍候...\"; ajax.get(\"/plus/searchtag.php?keyword=".urlencode($k)."\",\"relatedlinks\");'>$k</a> ";
}
//@me= str_replace('+', ' ',trim(@me));
}
{/dede:field}