Zeile 212 | Zeile 212 |
---|
$hide_captcha = false;
// Check the maximum posts per day for this user
|
$hide_captcha = false;
// Check the maximum posts per day for this user
|
if($mybb->usergroup['maxposts'] > 0 && $mybb->usergroup['cancp'] != 1)
| if($mybb->usergroup['maxposts'] > 0)
|
{ $daycut = TIME_NOW-60*60*24;
|
{ $daycut = TIME_NOW-60*60*24;
|
$query = $db->simple_select("posts", "COUNT(*) AS posts_today", "uid='{$mybb->user['uid']}' AND visible='1' AND dateline>{$daycut}");
| $query = $db->simple_select("posts", "COUNT(*) AS posts_today", "uid='{$mybb->user['uid']}' AND visible !='-1' AND dateline>{$daycut}");
|
$post_count = $db->fetch_field($query, "posts_today"); if($post_count >= $mybb->usergroup['maxposts']) {
| $post_count = $db->fetch_field($query, "posts_today"); if($post_count >= $mybb->usergroup['maxposts']) {
|