Zeile 281 | Zeile 281 |
---|
/** * Gets a valid warning from the DB engine. *
|
/** * Gets a valid warning from the DB engine. *
|
* @return mixed array when valid, boolean false when invalid.
| * @param int $wid * @return array|bool array when valid, boolean false when invalid.
|
*/ function get($wid) {
| */ function get($wid) {
|
Zeile 361 | Zeile 362 |
---|
*/ function update_user($method='insert') {
|
*/ function update_user($method='insert') {
|
global $db, $mybb, $lang;
| global $db, $mybb, $lang, $cache, $groupscache;
|
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");
|
}
$warning = &$this->data;
| }
$warning = &$this->data;
|
Zeile 461 | Zeile 467 |
---|
"uid" => $user['uid'], "gid" => $action['usergroup'], "oldgroup" => $user['usergroup'],
|
"uid" => $user['uid'], "gid" => $action['usergroup'], "oldgroup" => $user['usergroup'],
|
"oldadditionalgroups" => $user['additionalgroups'],
| "oldadditionalgroups" => $db->escape_string($user['additionalgroups']),
|
"olddisplaygroup" => $user['displaygroup'], "admin" => $mybb->user['uid'], "dateline" => TIME_NOW,
| "olddisplaygroup" => $user['displaygroup'], "admin" => $mybb->user['uid'], "dateline" => TIME_NOW,
|
Zeile 475 | Zeile 481 |
---|
$db->delete_query("banned", "uid='{$user['uid']}' AND gid='{$action['usergroup']}'"); // Override new ban details with old group info $new_ban['oldgroup'] = $existing_ban['oldgroup'];
|
$db->delete_query("banned", "uid='{$user['uid']}' AND gid='{$action['usergroup']}'"); // Override new ban details with old group info $new_ban['oldgroup'] = $existing_ban['oldgroup'];
|
$new_ban['oldadditionalgroups'] = $existing_ban['oldadditionalgroups'];
| $new_ban['oldadditionalgroups'] = $db->escape_string($existing_ban['oldadditionalgroups']);
|
$new_ban['olddisplaygroup'] = $existing_ban['olddisplaygroup']; }
| $new_ban['olddisplaygroup'] = $existing_ban['olddisplaygroup']; }
|
Zeile 586 | Zeile 592 |
---|
{ case 1: // Ban // we'll have to resort to letting the admin/mod remove the ban manually, since there's an issue if stacked bans are in force...
|
{ case 1: // Ban // we'll have to resort to letting the admin/mod remove the ban manually, since there's an issue if stacked bans are in force...
|
continue;
| continue 2;
|
case 2: // Revoke posting $current_expiry_field = 'suspensiontime'; $current_inforce_field = 'suspendposting';
| case 2: // Revoke posting $current_expiry_field = 'suspensiontime'; $current_inforce_field = 'suspendposting';
|