Vergleich admin/modules/config/banning.php - 1.6.3 - 1.6.6

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: banning.php 5380 2011-02-21 12:04:43Z Tomm $

 * $Id: banning.php 5557 2011-08-26 14:06:44Z huji $

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 40Zeile 40
		if($mybb->input['type'] == 1)
{
$cache->update_bannedips();

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

 
		}
else if($mybb->input['type'] == 3)
{
$cache->update_bannedemails();

		}

$plugins->run_hooks("admin_config_banning_add_commit");

		}

$plugins->run_hooks("admin_config_banning_add_commit");





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


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


Zeile 51Zeile 55
		{
flash_message($lang->success_ip_banned, 'success');
admin_redirect("index.php?module=config-banning");

		{
flash_message($lang->success_ip_banned, 'success');
admin_redirect("index.php?module=config-banning");

		}

		}

		else if($mybb->input['type'] == 2)

		else if($mybb->input['type'] == 2)

		{

		{

			flash_message($lang->success_username_disallowed, 'success');
admin_redirect("index.php?module=config-banning&type=usernames");
}

			flash_message($lang->success_username_disallowed, 'success');
admin_redirect("index.php?module=config-banning&type=usernames");
}

Zeile 62Zeile 66
			flash_message($lang->success_email_disallowed, 'success');
admin_redirect("index.php?module=config-banning&type=emails");
}

			flash_message($lang->success_email_disallowed, 'success');
admin_redirect("index.php?module=config-banning&type=emails");
}

	}

	}

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

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

Zeile 84Zeile 88
if($mybb->input['action'] == "delete")
{
$plugins->run_hooks("admin_config_banning_delete");

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

	

	

	$query = $db->simple_select("banfilters", "*", "fid='".intval($mybb->input['fid'])."'");
$filter = $db->fetch_array($query);


	$query = $db->simple_select("banfilters", "*", "fid='".intval($mybb->input['fid'])."'");
$filter = $db->fetch_array($query);


Zeile 106Zeile 110
	else
{
$type = "ips";

	else
{
$type = "ips";

	}

	}

	
// User clicked no
if($mybb->input['no'])

	
// User clicked no
if($mybb->input['no'])

Zeile 123Zeile 127

// Log admin action
log_admin_action($filter['fid'], $filter['filter'], $filter['type']);


// Log admin action
log_admin_action($filter['fid'], $filter['filter'], $filter['type']);



 

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


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

		{

		{

			$cache->update_bannedips();

			$cache->update_bannedips();

 
		}
else if($filter['type'] == 3)
{
$cache->update_bannedemails();

		}

flash_message($lang->success_ban_deleted, 'success');

		}

flash_message($lang->success_ban_deleted, 'success');

Zeile 266Zeile 273
	}
else
{

	}
else
{

		$form_container = new FormContainer($lang->ban_ip_address);

		$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->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);
}