Vergleich admin/modules/config/banning.php - 1.8.1 - 1.8.6

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 27Zeile 27
		$errors[] = $lang->error_missing_ban_input;
}


		$errors[] = $lang->error_missing_ban_input;
}


	$query = $db->simple_select("banfilters", "fid", "filter = '".$db->escape_string($mybb->input['filter'])."' AND type = '".$mybb->get_input('type', 1)."'");

	$query = $db->simple_select("banfilters", "fid", "filter = '".$db->escape_string($mybb->input['filter'])."' AND type = '".$mybb->get_input('type', MyBB::INPUT_INT)."'");

	if($db->num_rows($query))
{
$errors[] = $lang->error_filter_already_banned;

	if($db->num_rows($query))
{
$errors[] = $lang->error_filter_already_banned;

Zeile 37Zeile 37
	{
$new_filter = array(
"filter" => $db->escape_string($mybb->input['filter']),

	{
$new_filter = array(
"filter" => $db->escape_string($mybb->input['filter']),

			"type" => $mybb->get_input('type', 1),

			"type" => $mybb->get_input('type', MyBB::INPUT_INT),

			"dateline" => TIME_NOW
);
$fid = $db->insert_query("banfilters", $new_filter);

			"dateline" => TIME_NOW
);
$fid = $db->insert_query("banfilters", $new_filter);

Zeile 54Zeile 54
		}

// Log admin action

		}

// Log admin action

		log_admin_action($fid, $mybb->input['filter'], $mybb->input['type']);

		log_admin_action($fid, htmlspecialchars_uni($mybb->input['filter']), (int)$mybb->input['type']);


if($mybb->input['type'] == 1)
{


if($mybb->input['type'] == 1)
{

Zeile 92Zeile 92

if($mybb->input['action'] == "delete")
{


if($mybb->input['action'] == "delete")
{

	$query = $db->simple_select("banfilters", "*", "fid='".$mybb->get_input('fid', 1)."'");

	$query = $db->simple_select("banfilters", "*", "fid='".$mybb->get_input('fid', MyBB::INPUT_INT)."'");

	$filter = $db->fetch_array($query);

// Does the filter not exist?

	$filter = $db->fetch_array($query);

// Does the filter not exist?

Zeile 131Zeile 131
		$plugins->run_hooks("admin_config_banning_delete_commit");

// Log admin action

		$plugins->run_hooks("admin_config_banning_delete_commit");

// Log admin action

		log_admin_action($filter['fid'], $filter['filter'], $filter['type']);

		log_admin_action($filter['fid'], htmlspecialchars_uni($filter['filter']), (int)$filter['type']);


// Banned IP? Rebuild banned IP cache
if($filter['type'] == 1)


// Banned IP? Rebuild banned IP cache
if($filter['type'] == 1)