//是否超出每天发布数量
if(!empty($CFG['maxpost'])) {
if($_userid) {
$sql = "select count(*) from {$table}info where userid='$_userid' and postdate > " .mktime(0,0,0);
} else {
$sql = "select count(*) from {$table}info where postdate > " .mktime(0,0,0)." and ($so)";
}
if($db->getOne($sql) >= $CFG['maxpost']) showmsg("系统限制:非VIP用户每天最多发布 $CFG[maxpost] 条信息,办理VIP联系管理员");
}
现在是会员跟游客都限制了。
PHP判断游客会员石头超出每天发帖限制,如果修改成不限制注册会员?
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-