<?php
require("../class/connect.php");
if(!defined('InEmpireCMS'))
{
exit();
}
$myuserid=(int)getcvar('mluserid');
$myusername=getcvar('mlusername');
if($myuserid)
{
?>
document.writeln("<label><span style=\"color:#FF0000;padding-left:10px;\">评论内容请发表有意义的文字,纯数字/字母/复制粘贴本段话或其他人回复/无意义文字等回复将被禁言!<\/span><\/label>");
<?
}
else
{
?>
document.writeln("<label><span style=\"color:#FF0000;padding-left:10px;\">登录后可评论资源 ^0^ <\/span> <\/label> <a href=\"<?=$public_r[newsurl]?>e\/member\/login\/\">点我登录<\/a>");
<?
}
?>
2、在公共变量模板中修改评论表单([!--temp.pl--])
3、在调用的地方使用: <script src="[!--news.url--]e/pl/plpanduan.php"></script> 即可
注意:如果评论参数设置中没有关闭评论验证码,需要将评论表单([!--temp.pl--]) 中的验证码保留。