Vergleich modcp.php - 1.8.18 - 1.8.25

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 2587Zeile 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 2617Zeile 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 2689Zeile 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 2700Zeile 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

							$extra_user_updates[$option['update_length']] = TIME_NOW + $suspend_length;

							$extra_user_updates[$option['update_length']] = TIME_NOW + $suspend_length;

						}
}
elseif(!$user[$option['update_field']])

						}
}
elseif(!$user[$option['update_field']])

Zeile 2715Zeile 2713
						if($suspend_length == "-1")
{
$extra_user_updates[$option['update_length']] = 0;

						if($suspend_length == "-1")
{
$extra_user_updates[$option['update_length']] = 0;

						}

						}

						else
{
$extra_user_updates[$option['update_length']] = TIME_NOW + $suspend_length;

						else
{
$extra_user_updates[$option['update_length']] = TIME_NOW + $suspend_length;

Zeile 2728Zeile 2726
		// 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";
}

Zeile 2784Zeile 2782
	if(!$user['displaygroup'])
{
$user['displaygroup'] = $user['usergroup'];

	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 2822Zeile 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 2842Zeile 2840
			if($title['posts'] <= $user['postnum'])
{
$defaulttitle = $title['title'];

			if($title['posts'] <= $user['postnum'])
{
$defaulttitle = $title['title'];

				break;
}

				break;
}

		}
}


		}
}


Zeile 3289Zeile 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");

eval("\$edituser = \"".$templates->get("modcp_editprofile")."\";");

	$plugins->run_hooks("modcp_editprofile_end");

eval("\$edituser = \"".$templates->get("modcp_editprofile")."\";");

Zeile 3437Zeile 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 3486Zeile 3483

$mybb->input['filter']['mod_uid'] = (int)$mod_user['uid'];
$mybb->input['filter']['mod_username'] = htmlspecialchars_uni($mybb->input['filter']['mod_username']);


$mybb->input['filter']['mod_uid'] = (int)$mod_user['uid'];
$mybb->input['filter']['mod_username'] = htmlspecialchars_uni($mybb->input['filter']['mod_username']);

	}
else

	}
else

	{
$mybb->input['filter']['mod_username'] = '';
}

	{
$mybb->input['filter']['mod_username'] = '';
}

Zeile 3500Zeile 3497
			$mod_user = get_user($mybb->input['search']['uid']);
$mybb->input['search']['mod_username'] = htmlspecialchars_uni($mod_user['username']);
}

			$mod_user = get_user($mybb->input['search']['uid']);
$mybb->input['search']['mod_username'] = htmlspecialchars_uni($mod_user['username']);
}

	}
else

	}
else

	{
$mybb->input['filter']['mod_uid'] = '';

	{
$mybb->input['filter']['mod_uid'] = '';

	}

	}

	if(!empty($mybb->input['filter']['reason']))
{
$search['reason'] = $db->escape_string_like($mybb->input['filter']['reason']);

	if(!empty($mybb->input['filter']['reason']))
{
$search['reason'] = $db->escape_string_like($mybb->input['filter']['reason']);

Zeile 3514Zeile 3511
	else
{
$mybb->input['filter']['reason'] = '';

	else
{
$mybb->input['filter']['reason'] = '';

	}

	}

	$sortbysel = array('username' => '', 'expires' => '', 'issuedby' => '', 'dateline' => '');
if(!isset($mybb->input['filter']['sortby']))
{

	$sortbysel = array('username' => '', 'expires' => '', 'issuedby' => '', 'dateline' => '');
if(!isset($mybb->input['filter']['sortby']))
{

Zeile 3578Zeile 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_warning / $per_page);

	$pages = ceil($total_warnings / $per_page);

	if($page > $pages)
{
$start = 0;

	if($page > $pages)
{
$start = 0;

Zeile 4251Zeile 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 4407Zeile 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)