Vergleich warnings.php - 1.8.12 - 1.8.13

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 123Zeile 123
				$warningshandler->friendly_action .= $lang->redirect_warned_pmerror;
}
}

				$warningshandler->friendly_action .= $lang->redirect_warned_pmerror;
}
}

	



		$plugins->run_hooks("warnings_do_warn_end");

$lang->redirect_warned = $lang->sprintf($lang->redirect_warned, htmlspecialchars_uni($user['username']), $warningshandler->new_warning_level, $warningshandler->friendly_action);

		$plugins->run_hooks("warnings_do_warn_end");

$lang->redirect_warned = $lang->sprintf($lang->redirect_warned, htmlspecialchars_uni($user['username']), $warningshandler->new_warning_level, $warningshandler->friendly_action);

Zeile 167Zeile 167

$user = get_user($mybb->get_input('uid', MyBB::INPUT_INT));
if(!$user)


$user = get_user($mybb->get_input('uid', MyBB::INPUT_INT));
if(!$user)

	{

	{

		error($lang->error_invalid_user);

		error($lang->error_invalid_user);

	}


	}


	if($user['uid'] == $mybb->user['uid'])
{
error($lang->warnings_error_cannot_warn_self);

	if($user['uid'] == $mybb->user['uid'])
{
error($lang->warnings_error_cannot_warn_self);

Zeile 179Zeile 179
	if($user['warningpoints'] >= $mybb->settings['maxwarningpoints'])
{
error($lang->warnings_error_user_reached_max_warning);

	if($user['warningpoints'] >= $mybb->settings['maxwarningpoints'])
{
error($lang->warnings_error_user_reached_max_warning);

	}

$group_permissions = user_permissions($user['uid']);

	}

$group_permissions = user_permissions($user['uid']);


if($group_permissions['canreceivewarnings'] != 1)
{


if($group_permissions['canreceivewarnings'] != 1)
{

Zeile 189Zeile 189
	}

if(!modcp_can_manage_user($user['uid']))

	}

if(!modcp_can_manage_user($user['uid']))

	{

	{

		error($lang->error_cant_warn_user);
}


		error($lang->error_cant_warn_user);
}


Zeile 274Zeile 274
				}
else
{

				}
else
{

					$expires = my_date($mybb->settings['dateformat'], $warning['expires']) . ", " . my_date($mybb->settings['timeformat'], $warning['expires']);

					$expires = nice_time($warning['expires']-TIME_NOW);

				}
}
else

				}
}
else

Zeile 299Zeile 299
	}

$plugins->run_hooks("warnings_warn_start");

	}

$plugins->run_hooks("warnings_warn_start");

	



	$type_checked = array('custom' => '');
$expires_period = array('hours' => '', 'days' => '', 'weeks' => '', 'months' => '', 'never' => '');
$send_pm_checked = '';

	$type_checked = array('custom' => '');
$expires_period = array('hours' => '', 'days' => '', 'weeks' => '', 'months' => '', 'never' => '');
$send_pm_checked = '';

Zeile 654Zeile 654
		}
else
{

		}
else
{

			$expires = my_date($mybb->settings['dateformat'], $warning['expires']) . ", " . my_date($mybb->settings['timeformat'], $warning['expires']);

			$expires = my_date('normal', $warning['expires']); // Purposely not using nice_time here as the moderator has clicked for more details so the actual day/time should be shown

		}
$status = $lang->warning_active;
}

		}
$status = $lang->warning_active;
}

Zeile 666Zeile 666
		}
else if($warning['expires'])
{

		}
else if($warning['expires'])
{

			$revoked_date = '('.my_date($mybb->settings['dateformat'], $warning['expires']).', '.my_date($mybb->settings['timeformat'], $warning['expires']).')';

			$revoked_date = '('.my_date('normal', $warning['expires']).')';

			$expires = $status = $lang->already_expired;
}
}

			$expires = $status = $lang->already_expired;
}
}

Zeile 840Zeile 840
			}
else
{

			}
else
{

				$expires = my_date($mybb->settings['dateformat'], $warning['expires']) . ", " . my_date($mybb->settings['timeformat'], $warning['expires']);

				$expires = nice_time($warning['expires']-TIME_NOW);

			}
}
else

			}
}
else