Zeile 263 | Zeile 263 |
---|
if(!empty($nav_announcements) || !empty($nav_modqueue) || !empty($nav_reportcenter) || !empty($nav_modlogs)) {
|
if(!empty($nav_announcements) || !empty($nav_modqueue) || !empty($nav_reportcenter) || !empty($nav_modlogs)) {
|
| $expaltext = (in_array("modcpforums", $collapse)) ? "[+]" : "[-]";
|
eval("\$modcp_nav_forums_posts = \"".$templates->get("modcp_nav_forums_posts")."\";"); }
if(!empty($nav_editprofile) || !empty($nav_banning) || !empty($nav_warninglogs) || !empty($nav_ipsearch)) {
|
eval("\$modcp_nav_forums_posts = \"".$templates->get("modcp_nav_forums_posts")."\";"); }
if(!empty($nav_editprofile) || !empty($nav_banning) || !empty($nav_warninglogs) || !empty($nav_ipsearch)) {
|
| $expaltext = (in_array("modcpusers", $collapse)) ? "[+]" : "[-]";
|
eval("\$modcp_nav_users = \"".$templates->get("modcp_nav_users")."\";"); }
| eval("\$modcp_nav_users = \"".$templates->get("modcp_nav_users")."\";"); }
|
Zeile 2585 | Zeile 2587 |
---|
"profile_fields_editable" => true, "website" => $mybb->get_input('website'), "icq" => $mybb->get_input('icq'),
|
"profile_fields_editable" => true, "website" => $mybb->get_input('website'), "icq" => $mybb->get_input('icq'),
|
"aim" => $mybb->get_input('aim'), "yahoo" => $mybb->get_input('yahoo'),
| |
"skype" => $mybb->get_input('skype'), "google" => $mybb->get_input('google'), "signature" => $mybb->get_input('signature'),
| "skype" => $mybb->get_input('skype'), "google" => $mybb->get_input('google'), "signature" => $mybb->get_input('signature'),
|
Zeile 2616 | Zeile 2616 |
---|
// Set the data of the user in the datahandler. $userhandler->set_data($updated_user);
|
// Set the data of the user in the datahandler. $userhandler->set_data($updated_user);
|
$errors = '';
| $errors = array();
|
// Validate the user and get any errors that might have occurred. if(!$userhandler->validate_user())
| // Validate the user and get any errors that might have occurred. if(!$userhandler->validate_user())
|
Zeile 2665 | Zeile 2665 |
---|
require_once MYBB_ROOT."inc/functions_warnings.php"; foreach($moderator_options as $option) {
|
require_once MYBB_ROOT."inc/functions_warnings.php"; foreach($moderator_options as $option) {
|
$mybb->input[$option['time']] = $mybb->get_input($option['time'], MyBB::INPUT_INT);
| ${$option['time']} = $mybb->get_input($option['time'], MyBB::INPUT_INT);
|
$mybb->input[$option['period']] = $mybb->get_input($option['period']); if(empty($mybb->input[$option['action']])) {
| $mybb->input[$option['period']] = $mybb->get_input($option['period']); if(empty($mybb->input[$option['action']])) {
|
Zeile 2688 | Zeile 2688 |
---|
$string = $option['action']."_error"; $errors[] = $lang->$string; }
|
$string = $option['action']."_error"; $errors[] = $lang->$string; }
|
if(!is_array($errors))
| else
|
{ $suspend_length = fetch_time_length((int)$mybb->input[$option['time']], $mybb->input[$option['period']]);
| { $suspend_length = fetch_time_length((int)$mybb->input[$option['time']], $mybb->input[$option['period']]);
|
Zeile 2731 | Zeile 2730 |
---|
$errors[] = $lang->suspendmoderate_error; }
|
$errors[] = $lang->suspendmoderate_error; }
|
if(is_array($errors))
| if(is_array($errors) && !empty($errors))
|
{ $mybb->input['action'] = "editprofile"; }
| { $mybb->input['action'] = "editprofile"; }
|
Zeile 2757 | Zeile 2756 |
---|
if($mybb->input['action'] == "editprofile") { if($mybb->usergroup['caneditprofiles'] == 0)
|
if($mybb->input['action'] == "editprofile") { if($mybb->usergroup['caneditprofiles'] == 0)
|
{ error_no_permission(); }
add_breadcrumb($lang->mcp_nav_editprofile, "modcp.php?action=editprofile");
| { error_no_permission(); }
add_breadcrumb($lang->mcp_nav_editprofile, "modcp.php?action=editprofile");
|
$user = get_user($mybb->get_input('uid', MyBB::INPUT_INT)); if(!$user) { error($lang->error_nomember);
|
$user = get_user($mybb->get_input('uid', MyBB::INPUT_INT)); if(!$user) { error($lang->error_nomember);
|
}
| }
|
// Check if the current user has permission to edit this user if(!modcp_can_manage_user($user['uid']))
|
// Check if the current user has permission to edit this user if(!modcp_can_manage_user($user['uid']))
|
{
| {
|
error_no_permission();
|
error_no_permission();
|
}
| }
$userperms = user_permissions($user['uid']);
// Set display group $displaygroupfields = array("title", "description", "namestyle", "usertitle", "stars", "starimage", "image");
if(!$user['displaygroup']) { $user['displaygroup'] = $user['usergroup']; }
$display_group = usergroup_displaygroup($user['displaygroup']); if(is_array($display_group)) { $userperms = array_merge($userperms, $display_group); }
|
if(!my_validate_url($user['website'])) { $user['website'] = '';
| if(!my_validate_url($user['website'])) { $user['website'] = '';
|
Zeile 2783 | Zeile 2798 |
---|
if($user['icq'] != "0") { $user['icq'] = (int)$user['icq'];
|
if($user['icq'] != "0") { $user['icq'] = (int)$user['icq'];
|
}
| }
|
if(!$errors) { $mybb->input = array_merge($user, $mybb->input);
| if(!$errors) { $mybb->input = array_merge($user, $mybb->input);
|
Zeile 2800 | Zeile 2815 |
---|
list($mybb->input['birthday_day'], $mybb->input['birthday_month'], $mybb->input['birthday_year']) = $birthday; } else
|
list($mybb->input['birthday_day'], $mybb->input['birthday_month'], $mybb->input['birthday_year']) = $birthday; } else
|
{
| {
|
$errors = inline_error($errors);
|
$errors = inline_error($errors);
|
}
| }
|
// Sanitize all input
|
// Sanitize all input
|
foreach(array('usertitle', 'website', 'icq', 'aim', 'yahoo', 'skype', 'google', 'signature', 'birthday_day', 'birthday_month', 'birthday_year') as $field) {
| foreach(array('usertitle', 'website', 'icq', 'skype', 'google', 'signature', 'birthday_day', 'birthday_month', 'birthday_year') as $field) {
|
$mybb->input[$field] = htmlspecialchars_uni($mybb->get_input($field));
|
$mybb->input[$field] = htmlspecialchars_uni($mybb->get_input($field));
|
}
// Custom user title, check to see if we have a default group title if(!$user['displaygroup']) { $user['displaygroup'] = $user['usergroup']; }
$displaygroupfields = array('usertitle'); $display_group = usergroup_displaygroup($user['displaygroup']);
if(!empty($display_group['usertitle'])) { $defaulttitle = htmlspecialchars_uni($display_group['usertitle']);
| }
// Custom user title if(!empty($userperms['usertitle'])) { $defaulttitle = htmlspecialchars_uni($userperms['usertitle']);
|
} else
|
} else
|
{
| {
|
// Go for post count title if a group default isn't set $usertitles = $cache->read('usertitles');
|
// Go for post count title if a group default isn't set $usertitles = $cache->read('usertitles');
|
|
|
foreach($usertitles as $title) { if($title['posts'] <= $user['postnum'])
| foreach($usertitles as $title) { if($title['posts'] <= $user['postnum'])
|
Zeile 2836 | Zeile 2843 |
---|
break; } }
|
break; } }
|
}
| }
|
$user['usertitle'] = htmlspecialchars_uni($user['usertitle']);
if(empty($user['usertitle'])) { $lang->current_custom_usertitle = '';
|
$user['usertitle'] = htmlspecialchars_uni($user['usertitle']);
if(empty($user['usertitle'])) { $lang->current_custom_usertitle = '';
|
}
| }
|
$bdaydaysel = $selected = ''; for($day = 1; $day <= 31; ++$day) { if($mybb->input['birthday_day'] == $day) { $selected = "selected=\"selected\"";
|
$bdaydaysel = $selected = ''; for($day = 1; $day <= 31; ++$day) { if($mybb->input['birthday_day'] == $day) { $selected = "selected=\"selected\"";
|
}
| }
|
else { $selected = ''; }
eval("\$bdaydaysel .= \"".$templates->get("usercp_profile_day")."\";");
|
else { $selected = ''; }
eval("\$bdaydaysel .= \"".$templates->get("usercp_profile_day")."\";");
|
}
| }
|
$bdaymonthsel = array(); foreach(range(1, 12) as $month)
|
$bdaymonthsel = array(); foreach(range(1, 12) as $month)
|
{
| {
|
$bdaymonthsel[$month] = ''; } $bdaymonthsel[$mybb->input['birthday_month']] = 'selected="selected"';
| $bdaymonthsel[$month] = ''; } $bdaymonthsel[$mybb->input['birthday_month']] = 'selected="selected"';
|
Zeile 2871 | Zeile 2878 |
---|
{ $awaycheck = array('', ''); if($errors)
|
{ $awaycheck = array('', ''); if($errors)
|
{ if($user['away'] == 1) { $awaycheck[1] = "checked=\"checked\""; } else
| { if($user['away'] == 1) { $awaycheck[1] = "checked=\"checked\""; } else
|
{ $awaycheck[0] = "checked=\"checked\""; }
| { $awaycheck[0] = "checked=\"checked\""; }
|
Zeile 2899 | Zeile 2906 |
---|
{ $awaynotice = $lang->away_notice; $awaycheck[0] = "checked=\"checked\"";
|
{ $awaynotice = $lang->away_notice; $awaycheck[0] = "checked=\"checked\"";
|
}
| }
|
$returndate = explode("-", $user['returndate']); } $returndatesel = $selected = '';
| $returndate = explode("-", $user['returndate']); } $returndatesel = $selected = '';
|
Zeile 2975 | Zeile 2982 |
---|
$userfield = $user_fields[$field]; } if($type == "multiselect")
|
$userfield = $user_fields[$field]; } if($type == "multiselect")
|
{ if($errors) { $useropts = $userfield; } else {
| { if($errors) { $useropts = $userfield; } else {
|
$useropts = explode("\n", $userfield); } if(is_array($useropts)) { foreach($useropts as $key => $val)
|
$useropts = explode("\n", $userfield); } if(is_array($useropts)) { foreach($useropts as $key => $val)
|
{
| {
|
$seloptions[$val] = $val; } }
| $seloptions[$val] = $val; } }
|
Zeile 3001 | Zeile 3008 |
---|
$sel = ""; if(isset($seloptions[$val]) && $val == $seloptions[$val])
|
$sel = ""; if(isset($seloptions[$val]) && $val == $seloptions[$val])
|
{ $sel = " selected=\"selected\""; }
eval("\$select .= \"".$templates->get("usercp_profile_profilefields_select_option")."\";"); } if(!$profilefield['length']) { $profilefield['length'] = 3;
| { $sel = " selected=\"selected\""; }
eval("\$select .= \"".$templates->get("usercp_profile_profilefields_select_option")."\";"); } if(!$profilefield['length']) { $profilefield['length'] = 3;
|
}
eval("\$code = \"".$templates->get("usercp_profile_profilefields_multiselect")."\";");
| }
eval("\$code = \"".$templates->get("usercp_profile_profilefields_multiselect")."\";");
|
Zeile 3062 | Zeile 3069 |
---|
if($errors) { $useropts = $userfield;
|
if($errors) { $useropts = $userfield;
|
} else
| } else
|
{ $useropts = explode("\n", $userfield); } if(is_array($useropts)) { foreach($useropts as $key => $val)
|
{ $useropts = explode("\n", $userfield); } if(is_array($useropts)) { foreach($useropts as $key => $val)
|
{
| {
|
$seloptions[$val] = $val; } }
| $seloptions[$val] = $val; } }
|
Zeile 3090 | Zeile 3097 |
---|
} } elseif($type == "textarea")
|
} } elseif($type == "textarea")
|
{ $value = htmlspecialchars_uni($userfield);
| { $value = htmlspecialchars_uni($userfield);
|
eval("\$code = \"".$templates->get("usercp_profile_profilefields_textarea")."\";");
|
eval("\$code = \"".$templates->get("usercp_profile_profilefields_textarea")."\";");
|
} else {
| } else {
|
$value = htmlspecialchars_uni($userfield); $maxlength = ""; if($profilefield['maxlength'] > 0) { $maxlength = " maxlength=\"{$profilefield['maxlength']}\""; }
|
$value = htmlspecialchars_uni($userfield); $maxlength = ""; if($profilefield['maxlength'] > 0) { $maxlength = " maxlength=\"{$profilefield['maxlength']}\""; }
|
|
|
eval("\$code = \"".$templates->get("usercp_profile_profilefields_text")."\";"); }
| eval("\$code = \"".$templates->get("usercp_profile_profilefields_text")."\";"); }
|
Zeile 3118 | Zeile 3125 |
---|
} } if($customfields)
|
} } if($customfields)
|
{
| {
|
eval("\$customfields = \"".$templates->get("usercp_profile_profilefields")."\";"); }
$user['username'] = htmlspecialchars_uni($user['username']); $lang->edit_profile = $lang->sprintf($lang->edit_profile, $user['username']); $profile_link = build_profile_link(format_name($user['username'], $user['usergroup'], $user['displaygroup']), $user['uid']);
|
eval("\$customfields = \"".$templates->get("usercp_profile_profilefields")."\";"); }
$user['username'] = htmlspecialchars_uni($user['username']); $lang->edit_profile = $lang->sprintf($lang->edit_profile, $user['username']); $profile_link = build_profile_link(format_name($user['username'], $user['usergroup'], $user['displaygroup']), $user['uid']);
|
|
|
$user['signature'] = htmlspecialchars_uni($user['signature']); $codebuttons = build_mycode_inserter("signature");
| $user['signature'] = htmlspecialchars_uni($user['signature']); $codebuttons = build_mycode_inserter("signature");
|
Zeile 3136 | Zeile 3143 |
---|
$checked_item = "checked=\"checked\""; } else
|
$checked_item = "checked=\"checked\""; } else
|
{
| {
|
$checked = 0; $checked_item = ''; }
| $checked = 0; $checked_item = ''; }
|
Zeile 3146 | Zeile 3153 |
---|
{ $modpost_check = 1; $modpost_checked = "checked=\"checked\"";
|
{ $modpost_check = 1; $modpost_checked = "checked=\"checked\"";
|
}
| }
|
else { $modpost_check = 0;
| else { $modpost_check = 0;
|
Zeile 3199 | Zeile 3206 |
---|
$suspendsignature_info = $moderateposts_info = $suspendposting_info = ''; $action_options = $modpost_options = $suspost_options = '';
|
$suspendsignature_info = $moderateposts_info = $suspendposting_info = ''; $action_options = $modpost_options = $suspost_options = '';
|
| $modopts = array();
|
foreach($moderator_options as $option)
|
foreach($moderator_options as $option)
|
{ $mybb->input[$option['time']] = $mybb->get_input($option['time'], MyBB::INPUT_INT);
| { ${$option['time']} = $mybb->get_input($option['time'], MyBB::INPUT_INT);
|
// Display the suspension info, if this user has this option suspended if($user[$option['option']]) {
| // Display the suspension info, if this user has this option suspended if($user[$option['option']]) {
|
Zeile 3274 | Zeile 3282 |
---|
$newtitle = ''; }
|
$newtitle = ''; }
|
$plugins->run_hooks("modcp_editprofile_end");
| $birthday_year = $mybb->input['birthday_year']; $user_website = $mybb->input['website']; $user_icq = $mybb->input['icq']; $user_skype = $mybb->input['skype']; $user_google = $mybb->input['google'];
$plugins->run_hooks("modcp_editprofile_end");
|
eval("\$edituser = \"".$templates->get("modcp_editprofile")."\";"); output_page($edituser);
| eval("\$edituser = \"".$templates->get("modcp_editprofile")."\";"); output_page($edituser);
|
Zeile 3283 | Zeile 3297 |
---|
if($mybb->input['action'] == "finduser") { if($mybb->usergroup['caneditprofiles'] == 0)
|
if($mybb->input['action'] == "finduser") { if($mybb->usergroup['caneditprofiles'] == 0)
|
{
| {
|
error_no_permission(); }
| error_no_permission(); }
|
Zeile 3420 | Zeile 3434 |
---|
$plugins->run_hooks("modcp_finduser_end");
|
$plugins->run_hooks("modcp_finduser_end");
|
| $username = htmlspecialchars_uni($mybb->get_input('username'));
|
eval("\$finduser = \"".$templates->get("modcp_finduser")."\";"); output_page($finduser); }
| eval("\$finduser = \"".$templates->get("modcp_finduser")."\";"); output_page($finduser); }
|
Zeile 3560 | Zeile 3575 |
---|
$per_page = (int)$mybb->input['filter']['per_page']; } $start = ($page-1) * $per_page;
|
$per_page = (int)$mybb->input['filter']['per_page']; } $start = ($page-1) * $per_page;
|
| $pages = ceil($total_warnings / $per_page); if($page > $pages) { $start = 0; $page = 1; }
|
// Build the base URL for pagination links $url = 'modcp.php?action=warninglogs'; if(is_array($mybb->input['filter']) && count($mybb->input['filter']))
| // Build the base URL for pagination links $url = 'modcp.php?action=warninglogs'; if(is_array($mybb->input['filter']) && count($mybb->input['filter']))
|
Zeile 3620 | Zeile 3641 |
---|
if(empty($row['title'])) { $title = $row['custom_title'];
|
if(empty($row['title'])) { $title = $row['custom_title'];
|
}
| }
|
$title = htmlspecialchars_uni($title); if($row['points'] >= 0) {
| $title = htmlspecialchars_uni($title); if($row['points'] >= 0) {
|
Zeile 3628 | Zeile 3649 |
---|
}
eval("\$warning_list .= \"".$templates->get("modcp_warninglogs_warning")."\";");
|
}
eval("\$warning_list .= \"".$templates->get("modcp_warninglogs_warning")."\";");
|
}
| }
|
if(!$warning_list) {
| if(!$warning_list) {
|
Zeile 3636 | Zeile 3657 |
---|
}
$plugins->run_hooks("modcp_warninglogs_end");
|
}
$plugins->run_hooks("modcp_warninglogs_end");
|
| $filter_username = $mybb->input['filter']['username']; $filter_modusername = $mybb->input['filter']['mod_username']; $filter_reason = $mybb->input['filter']['reason'];
|
eval("\$warninglogs = \"".$templates->get("modcp_warninglogs")."\";"); output_page($warninglogs); }
|
eval("\$warninglogs = \"".$templates->get("modcp_warninglogs")."\";"); output_page($warninglogs); }
|
|
|
if($mybb->input['action'] == "ipsearch") { if($mybb->usergroup['canuseipsearch'] == 0)
| if($mybb->input['action'] == "ipsearch") { if($mybb->usergroup['canuseipsearch'] == 0)
|
Zeile 3661 | Zeile 3686 |
---|
$ipaddressvalue = htmlspecialchars_uni($mybb->input['ipaddress']);
$ip_range = fetch_ip_range($mybb->input['ipaddress']);
|
$ipaddressvalue = htmlspecialchars_uni($mybb->input['ipaddress']);
$ip_range = fetch_ip_range($mybb->input['ipaddress']);
|
|
|
$post_results = $user_results = 0;
// Searching post IP addresses
| $post_results = $user_results = 0;
// Searching post IP addresses
|
Zeile 3701 | Zeile 3726 |
---|
$onlyusfids = array(); $group_permissions = forum_permissions(); foreach($group_permissions as $fid => $forumpermissions)
|
$onlyusfids = array(); $group_permissions = forum_permissions(); foreach($group_permissions as $fid => $forumpermissions)
|
{
| {
|
if(isset($forumpermissions['canonlyviewownthreads']) && $forumpermissions['canonlyviewownthreads'] == 1) { $onlyusfids[] = $fid; }
|
if(isset($forumpermissions['canonlyviewownthreads']) && $forumpermissions['canonlyviewownthreads'] == 1) { $onlyusfids[] = $fid; }
|
}
| }
|
if(!empty($onlyusfids))
|
if(!empty($onlyusfids))
|
{
| {
|
$where_sql .= " AND ((t.fid IN(".implode(',', $onlyusfids).") AND t.uid='{$mybb->user['uid']}') OR t.fid NOT IN(".implode(',', $onlyusfids)."))"; }
| $where_sql .= " AND ((t.fid IN(".implode(',', $onlyusfids).") AND t.uid='{$mybb->user['uid']}') OR t.fid NOT IN(".implode(',', $onlyusfids)."))"; }
|
Zeile 3721 | Zeile 3746 |
---|
$visible_sql = " AND (p.visible = 1 AND t.visible = 1)"; $query = $db->simple_select("moderators", "fid, canviewunapprove, canviewdeleted", "(id='{$mybb->user['uid']}' AND isgroup='0') OR (id='{$mybb->user['usergroup']}' AND isgroup='1')"); while($moderator = $db->fetch_array($query))
|
$visible_sql = " AND (p.visible = 1 AND t.visible = 1)"; $query = $db->simple_select("moderators", "fid, canviewunapprove, canviewdeleted", "(id='{$mybb->user['uid']}' AND isgroup='0') OR (id='{$mybb->user['usergroup']}' AND isgroup='1')"); while($moderator = $db->fetch_array($query))
|
{
| {
|
if($moderator['canviewunapprove'] == 1) { $unapprove_forums[] = $moderator['fid'];
| if($moderator['canviewunapprove'] == 1) { $unapprove_forums[] = $moderator['fid'];
|
Zeile 4159 | Zeile 4184 |
---|
else if($remaining < 86400) { $banned_class = "moderate_banned";
|
else if($remaining < 86400) { $banned_class = "moderate_banned";
|
}
| }
|
else if($remaining < 604800) { $banned_class = "low_banned";
|
else if($remaining < 604800) { $banned_class = "low_banned";
|
}
| }
|
else { $banned_class = "normal_banned";
| else { $banned_class = "normal_banned";
|
Zeile 4173 | Zeile 4198 |
---|
}
eval("\$bannedusers .= \"".$templates->get("modcp_banning_ban")."\";");
|
}
eval("\$bannedusers .= \"".$templates->get("modcp_banning_ban")."\";");
|
}
| }
|
if(!$bannedusers) {
| if(!$bannedusers) {
|
Zeile 4187 | Zeile 4212 |
---|
}
if($mybb->input['action'] == "liftban")
|
}
if($mybb->input['action'] == "liftban")
|
{
| {
|
// Verify incoming POST request verify_post_check($mybb->get_input('my_post_key'));
|
// Verify incoming POST request verify_post_check($mybb->get_input('my_post_key'));
|
|
|
if($mybb->usergroup['canbanusers'] == 0)
|
if($mybb->usergroup['canbanusers'] == 0)
|
{ error_no_permission();
| { error_no_permission();
|
}
$query = $db->simple_select("banned", "*", "uid='".$mybb->get_input('uid', MyBB::INPUT_INT)."'");
| }
$query = $db->simple_select("banned", "*", "uid='".$mybb->get_input('uid', MyBB::INPUT_INT)."'");
|
Zeile 4202 | Zeile 4227 |
---|
if(!$ban) { error($lang->error_invalidban);
|
if(!$ban) { error($lang->error_invalidban);
|
}
| }
|
// Permission to edit this ban? if($mybb->user['uid'] != $ban['admin'] && $mybb->usergroup['issupermod'] != 1 && $mybb->usergroup['cancp'] != 1) { error_no_permission(); }
|
// Permission to edit this ban? if($mybb->user['uid'] != $ban['admin'] && $mybb->usergroup['issupermod'] != 1 && $mybb->usergroup['cancp'] != 1) { error_no_permission(); }
|
|
|
$plugins->run_hooks("modcp_liftban_start");
|
$plugins->run_hooks("modcp_liftban_start");
|
|
|
$query = $db->simple_select("users", "username", "uid = '{$ban['uid']}'");
|
$query = $db->simple_select("users", "username", "uid = '{$ban['uid']}'");
|
$username = $db->fetch_field($query, "username");
| $username = $db->fetch_field($query, "username");
|
$updated_group = array( 'usergroup' => $ban['oldgroup'], 'additionalgroups' => $ban['oldadditionalgroups'],
| $updated_group = array( 'usergroup' => $ban['oldgroup'], 'additionalgroups' => $ban['oldadditionalgroups'],
|
Zeile 4223 | Zeile 4248 |
---|
$db->update_query("users", $updated_group, "uid='{$ban['uid']}'"); $db->delete_query("banned", "uid='{$ban['uid']}'");
|
$db->update_query("users", $updated_group, "uid='{$ban['uid']}'"); $db->delete_query("banned", "uid='{$ban['uid']}'");
|
$cache->update_banned();
| |
$cache->update_moderators(); log_moderator_action(array("uid" => $ban['uid'], "username" => $username), $lang->lifted_ban);
| $cache->update_moderators(); log_moderator_action(array("uid" => $ban['uid'], "username" => $username), $lang->lifted_ban);
|
Zeile 4379 | Zeile 4403 |
---|
'additionalgroups' => '', ); $db->update_query('users', $update_array, "uid = {$user['uid']}");
|
'additionalgroups' => '', ); $db->update_query('users', $update_array, "uid = {$user['uid']}");
|
$cache->update_banned();
| |
// Log edit or add ban if($existing_ban)
| // Log edit or add ban if($existing_ban)
|