Zeile 2587 | 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'),
|
"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 2617 | 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 2689 | 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 2700 | Zeile 2698 |
---|
if($suspend_length == "-1") { // Permanent ban on action
|
if($suspend_length == "-1") { // Permanent ban on action
|
$extra_user_updates[$option['update_length']] = 0; }
| $extra_user_updates[$option['update_length']] = 0; }
|
elseif($suspend_length && $suspend_length != "-1") { // Temporary ban on action
| elseif($suspend_length && $suspend_length != "-1") { // Temporary ban on action
|
Zeile 2722 | Zeile 2720 |
---|
} } }
|
} } }
|
} }
| } }
|
// Those with javascript turned off will be able to select both - cheeky! // Check to make sure we're not moderating AND suspending posting if(isset($extra_user_updates) && $extra_user_updates['moderateposts'] && $extra_user_updates['suspendposting'])
|
// Those with javascript turned off will be able to select both - cheeky! // Check to make sure we're not moderating AND suspending posting if(isset($extra_user_updates) && $extra_user_updates['moderateposts'] && $extra_user_updates['suspendposting'])
|
{
| {
|
$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";
|
}
| }
|
else { $plugins->run_hooks("modcp_do_editprofile_update");
| else { $plugins->run_hooks("modcp_do_editprofile_update");
|
Zeile 2768 | Zeile 2766 |
---|
if(!$user) { error($lang->error_nomember);
|
if(!$user) { error($lang->error_nomember);
|
}
| }
|
// Check if the current user has permission to edit this user if(!modcp_can_manage_user($user['uid'])) { error_no_permission();
|
// Check if the current user has permission to edit this user if(!modcp_can_manage_user($user['uid'])) { error_no_permission();
|
}
$userperms = user_permissions($user['uid']);
| }
$userperms = user_permissions($user['uid']);
|
// Set display group $displaygroupfields = array("title", "description", "namestyle", "usertitle", "stars", "starimage", "image");
|
// 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)) {
| $display_group = usergroup_displaygroup($user['displaygroup']); if(is_array($display_group)) {
|
Zeile 2816 | Zeile 2820 |
---|
}
// Sanitize all input
|
}
// Sanitize all input
|
foreach(array('usertitle', 'website', 'icq', '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)); }
|
Zeile 2909 | Zeile 2913 |
---|
for($day = 1; $day <= 31; ++$day) { if($returndate[0] == $day)
|
for($day = 1; $day <= 31; ++$day) { if($returndate[0] == $day)
|
{ $selected = "selected=\"selected\""; }
| { $selected = "selected=\"selected\""; }
|
else { $selected = '';
| else { $selected = '';
|
Zeile 2939 | Zeile 2943 |
---|
}
$plugins->run_hooks("modcp_editprofile_start");
|
}
$plugins->run_hooks("modcp_editprofile_start");
|
|
|
// Fetch profile fields $query = $db->simple_select("userfields", "*", "ufid='{$user['uid']}'"); $user_fields = $db->fetch_array($query);
| // Fetch profile fields $query = $db->simple_select("userfields", "*", "ufid='{$user['uid']}'"); $user_fields = $db->fetch_array($query);
|
Zeile 2980 | Zeile 2984 |
---|
if($type == "multiselect") { if($errors)
|
if($type == "multiselect") { if($errors)
|
{
| {
|
$useropts = $userfield; } else
| $useropts = $userfield; } else
|
Zeile 3019 | Zeile 3023 |
---|
} } elseif($type == "select")
|
} } elseif($type == "select")
|
{ $expoptions = explode("\n", $options); if(is_array($expoptions))
| { $expoptions = explode("\n", $options); if(is_array($expoptions))
|
{ foreach($expoptions as $key => $val) {
| { foreach($expoptions as $key => $val) {
|
Zeile 3240 | Zeile 3244 |
---|
// Generate the boxes for this option $selection_options = ''; foreach($periods as $key => $value)
|
// Generate the boxes for this option $selection_options = ''; foreach($periods as $key => $value)
|
{
| {
|
$string = $option['select_option']."_period"; if($mybb->get_input($string) == $key) {
| $string = $option['select_option']."_period"; if($mybb->get_input($string) == $key) {
|
Zeile 3283 | Zeile 3287 |
---|
$user_icq = $mybb->input['icq']; $user_skype = $mybb->input['skype']; $user_google = $mybb->input['google'];
|
$user_icq = $mybb->input['icq']; $user_skype = $mybb->input['skype']; $user_google = $mybb->input['google'];
|
$user_yahoo = $mybb->input['yahoo'];
| |
$plugins->run_hooks("modcp_editprofile_end");
| $plugins->run_hooks("modcp_editprofile_end");
|
Zeile 3431 | Zeile 3434 |
---|
$plugins->run_hooks("modcp_finduser_end");
|
$plugins->run_hooks("modcp_finduser_end");
|
$username = $mybb->get_input('username');
| $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 3572 | 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']))
|