Zeile 161 | Zeile 161 |
---|
$given_today = $db->fetch_field($query, "given_today"); if($given_today >= $mybb->usergroup['maxwarningsday']) {
|
$given_today = $db->fetch_field($query, "given_today"); if($given_today >= $mybb->usergroup['maxwarningsday']) {
|
error($lang->sprintf($lang->reached_max_warnings_day, $mybb->usergroup['maxwarningsday']));
| error($lang->sprintf($lang->warnings_reached_max_warnings_day, $mybb->usergroup['maxwarningsday']));
|
} }
| } }
|
Zeile 173 | Zeile 173 |
---|
if($user['uid'] == $mybb->user['uid']) {
|
if($user['uid'] == $mybb->user['uid']) {
|
error($lang->cannot_warn_self);
| error($lang->warnings_error_cannot_warn_self);
|
}
if($user['warningpoints'] >= $mybb->settings['maxwarningpoints']) {
|
}
if($user['warningpoints'] >= $mybb->settings['maxwarningpoints']) {
|
error($lang->user_reached_max_warning);
| error($lang->warnings_error_user_reached_max_warning);
|
}
$group_permissions = user_permissions($user['uid']);
| }
$group_permissions = user_permissions($user['uid']);
|
Zeile 207 | Zeile 207 |
---|
if(!$post || !$thread) {
|
if(!$post || !$thread) {
|
error($lang->error_invalid_post);
| error($lang->warnings_error_invalid_post);
|
}
$forum_permissions = forum_permissions($thread['fid']);
| }
$forum_permissions = forum_permissions($thread['fid']);
|
Zeile 344 | Zeile 344 |
---|
if($mybb->settings['maxwarningpoints'] < 1) { $mybb->settings['maxwarningpoints'] = 10;
|
if($mybb->settings['maxwarningpoints'] < 1) { $mybb->settings['maxwarningpoints'] = 10;
|
| }
if(!is_array($groupscache)) { $groupscache = $cache->read("usergroups");
|
}
$current_level = round($user['warningpoints']/$mybb->settings['maxwarningpoints']*100);
| }
$current_level = round($user['warningpoints']/$mybb->settings['maxwarningpoints']*100);
|