Vergleich admin/modules/config/banning.php - 1.8.12 - 1.8.23

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 54Zeile 54
		}

// Log admin action

		}

// Log admin action

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

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


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


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

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'], htmlspecialchars_uni($filter['filter']), (int)$filter['type']);

		log_admin_action($filter['fid'], $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)

Zeile 203Zeile 203
	{
$page->output_inline_error($errors);
}

	{
$page->output_inline_error($errors);
}

 

$form = new Form("index.php?module=config-banning&action=add", "post", "add");

if($mybb->input['type'] == "usernames")
{
$form_container = new FormContainer($lang->add_disallowed_username);
$form_container->output_row($lang->username." <em>*</em>", $lang->username_desc, $form->generate_text_box('filter', $mybb->input['filter'], array('id' => 'filter')), 'filter');
$buttons[] = $form->generate_submit_button($lang->disallow_username);
}
else if($mybb->input['type'] == "emails")
{
$form_container = new FormContainer($lang->add_disallowed_email_address);
$form_container->output_row($lang->email_address." <em>*</em>", $lang->email_address_desc, $form->generate_text_box('filter', $mybb->input['filter'], array('id' => 'filter')), 'filter');
$buttons[] = $form->generate_submit_button($lang->disallow_email_address);
}
else
{
$form_container = new FormContainer($lang->ban_an_ip_address);
$form_container->output_row($lang->ip_address." <em>*</em>", $lang->ip_address_desc, $form->generate_text_box('filter', $mybb->input['filter'], array('id' => 'filter')), 'filter');
$buttons[] = $form->generate_submit_button($lang->ban_ip_address);
}

$form_container->end();
echo $form->generate_hidden_field("type", $type);
$form->output_submit_wrapper($buttons);
$form->end();

echo '<br />';


$table = new Table;
if($mybb->input['type'] == "usernames")


$table = new Table;
if($mybb->input['type'] == "usernames")

Zeile 224Zeile 252
		$table->construct_header($lang->last_access, array("class" => "align_center", "width" => 200));
}
$table->construct_header($lang->controls, array("width" => 1));

		$table->construct_header($lang->last_access, array("class" => "align_center", "width" => 200));
}
$table->construct_header($lang->controls, array("width" => 1));





	$query = $db->simple_select("banfilters", "*", "type='{$type}'", array("order_by" => "filter", "order_dir" => "asc"));
while($filter = $db->fetch_array($query))
{
$filter['filter'] = htmlspecialchars_uni($filter['filter']);

if($filter['lastuse'] > 0)

	$query = $db->simple_select("banfilters", "*", "type='{$type}'", array("order_by" => "filter", "order_dir" => "asc"));
while($filter = $db->fetch_array($query))
{
$filter['filter'] = htmlspecialchars_uni($filter['filter']);

if($filter['lastuse'] > 0)

		{

		{

			$last_use = my_date('relative', $filter['lastuse']);

			$last_use = my_date('relative', $filter['lastuse']);

		}
else
{

		}
else
{

			$last_use = $lang->never;
}


			$last_use = $lang->never;
}


Zeile 262Zeile 290
	}

$table->output($title);

	}

$table->output($title);


$form = new Form("index.php?module=config-banning&amp;action=add", "post", "add");

if($mybb->input['type'] == "usernames")
{
$form_container = new FormContainer($lang->add_disallowed_username);
$form_container->output_row($lang->username." <em>*</em>", $lang->username_desc, $form->generate_text_box('filter', $mybb->input['filter'], array('id' => 'filter')), 'filter');
$buttons[] = $form->generate_submit_button($lang->disallow_username);
}
else if($mybb->input['type'] == "emails")
{
$form_container = new FormContainer($lang->add_disallowed_email_address);
$form_container->output_row($lang->email_address." <em>*</em>", $lang->email_address_desc, $form->generate_text_box('filter', $mybb->input['filter'], array('id' => 'filter')), 'filter');
$buttons[] = $form->generate_submit_button($lang->disallow_email_address);
}
else
{
$form_container = new FormContainer($lang->ban_an_ip_address);
$form_container->output_row($lang->ip_address." <em>*</em>", $lang->ip_address_desc, $form->generate_text_box('filter', $mybb->input['filter'], array('id' => 'filter')), 'filter');
$buttons[] = $form->generate_submit_button($lang->ban_ip_address);
}

$form_container->end();
echo $form->generate_hidden_field("type", $type);
$form->output_submit_wrapper($buttons);
$form->end();

 

$page->output_footer();
}


$page->output_footer();
}