Vergleich admin/modules/user/banning.php - 1.8.34 - 1.8.38

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 62Zeile 62
	$query = $db->simple_select("banned", "*", "uid='{$mybb->input['uid']}'");
$ban = $db->fetch_array($query);


	$query = $db->simple_select("banned", "*", "uid='{$mybb->input['uid']}'");
$ban = $db->fetch_array($query);


	if(!$ban['uid'])

	if(!$ban)

	{
flash_message($lang->error_invalid_ban, 'error');
admin_redirect("index.php?module=user-banning");

	{
flash_message($lang->error_invalid_ban, 'error');
admin_redirect("index.php?module=user-banning");

Zeile 70Zeile 70

$user = get_user($ban['uid']);



$user = get_user($ban['uid']);


	if(is_super_admin($user['uid']) && ($mybb->user['uid'] != $user['uid'] && !is_super_admin($mybb->user['uid'])))

	if(!$user || (is_super_admin($user['uid']) && ($mybb->user['uid'] != $user['uid'] && !is_super_admin($mybb->user['uid']))))

	{
flash_message($lang->cannot_perform_action_super_admin_general, 'error');
admin_redirect("index.php?module=user-banning");

	{
flash_message($lang->cannot_perform_action_super_admin_general, 'error');
admin_redirect("index.php?module=user-banning");

Zeile 122Zeile 122
	$query = $db->simple_select("banned", "*", "uid='{$mybb->input['uid']}'");
$ban = $db->fetch_array($query);


	$query = $db->simple_select("banned", "*", "uid='{$mybb->input['uid']}'");
$ban = $db->fetch_array($query);


	if(!$ban['uid'])

	if(!$ban)

	{
flash_message($lang->error_invalid_ban, 'error');
admin_redirect("index.php?module=user-banning");

	{
flash_message($lang->error_invalid_ban, 'error');
admin_redirect("index.php?module=user-banning");

Zeile 130Zeile 130

$user = get_user($ban['uid']);



$user = get_user($ban['uid']);


	if(is_super_admin($user['uid']) && ($mybb->user['uid'] != $user['uid'] && !is_super_admin($mybb->user['uid'])))

	if(!$user || (is_super_admin($user['uid']) && ($mybb->user['uid'] != $user['uid'] && !is_super_admin($mybb->user['uid']))))

	{
flash_message($lang->cannot_perform_action_super_admin_general, 'error');
admin_redirect("index.php?module=user-banning");

	{
flash_message($lang->cannot_perform_action_super_admin_general, 'error');
admin_redirect("index.php?module=user-banning");

Zeile 170Zeile 170
	$query = $db->simple_select("banned", "*", "uid='{$mybb->input['uid']}'");
$ban = $db->fetch_array($query);


	$query = $db->simple_select("banned", "*", "uid='{$mybb->input['uid']}'");
$ban = $db->fetch_array($query);


	if(empty($ban['uid']))

	if(!$ban)

	{
flash_message($lang->error_invalid_ban, 'error');
admin_redirect("index.php?module=user-banning");

	{
flash_message($lang->error_invalid_ban, 'error');
admin_redirect("index.php?module=user-banning");

Zeile 182Zeile 182

if($mybb->request_method == "post")
{


if($mybb->request_method == "post")
{

		if(!$ban['uid'])

		if(empty($ban['uid']))

		{
$errors[] = $lang->error_invalid_username;
}

		{
$errors[] = $lang->error_invalid_username;
}

Zeile 334Zeile 334
		}
else
{

		}
else
{

			if(empty($user['uid']))

			if(!$user)

			{
$errors[] = $lang->error_invalid_username;
}

			{
$errors[] = $lang->error_invalid_username;
}