要取消留言簿审核功能方法:
修改网站根目录文件夹\plus\guestbook\gustbook下guestbook.inc.php文件内容:<?php
$cfg_needFilter = true;
require(dirname(__FILE__)."/../../include/config_base.php");
if(empty($gotopagerank)) $gotopagerank="";
if($gotopagerank=="admin")
{
require(dirname(__FILE__)."/../../include/inc_userlogin.php");
$cuserLogin = new userLogin();
CheckPurview('plus_留言簿模块');
}
//设置为 0,表示留言需要审核
//如果设置为 1 ,则留言不需要审核就能显示
if($cfg_feedbackcheck=='Y') $needCheck = 0;
else $needCheck = 1;
function trimMsg($msg,$gtype=0)
{
$msg = htmlspecialchars(trim($msg));
if($gtype==1){
$msg = nl2br($msg);
$msg = str_replace(" "," ",$msg);
}
return $msg;
}
?>