Skip to main content
 首页 » emlog

emlog侧边栏评论屏蔽作者/管理员的方法

2年前 (2015-06-10)10230百度未收录
   

找到 include/lib/cache.php 缓存函数文件中的:

$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "comment WHERE hide='n' ORDER BY date DESC LIMIT 0, $index_comnum");


改成:
 

$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "comment WHERE hide='n' AND mail!='<font color="#ff0000">XXXXX@qq.com</font>' ORDER BY date DESC LIMIT 0, $index_comnum");


评论列表暂无评论
发表评论