Vergleich admin/modules/config/banning.php - 1.6.0 - 1.6.4

  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 5016 2010-06-12 00:24:02Z RyanGordon $

 * $Id: banning.php 5402 2011-03-18 16:51:08Z Tomm $

 */

// 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 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

	}
else

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

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

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)
{
$cache->update_bannedips();


// Banned IP? Rebuild banned IP cache
if($filter['type'] == 1)
{
$cache->update_bannedips();

		}






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


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

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

Zeile 212Zeile 219
	while($filter = $db->fetch_array($query))
{
$filter['filter'] = htmlspecialchars_uni($filter['filter']);

	while($filter = $db->fetch_array($query))
{
$filter['filter'] = htmlspecialchars_uni($filter['filter']);

 


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

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

		{

		{

			$last_use = my_date($mybb->settings['dateformat'], $filter['lastuse']).", ".my_date($mybb->settings['timeformat'], $filter['lastuse']);

			$last_use = my_date($mybb->settings['dateformat'], $filter['lastuse']).", ".my_date($mybb->settings['timeformat'], $filter['lastuse']);

		}










		}
else
{
$last_use = $lang->never;
}

if($filter['dateline'] > 0)
{
$date = my_date($mybb->settings['dateformat'], $filter['dateline']).", ".my_date($mybb->settings['timeformat'], $filter['dateline']);
}

		else
{

		else
{

			$last_use = $lang->never;

			$date = $lang->na;

		}

		}

		$date = my_date($mybb->settings['dateformat'], $filter['dateline']).", ".my_date($mybb->settings['timeformat'], $filter['dateline']);



		$table->construct_cell($filter['filter']);
$table->construct_cell($date, array("class" => "align_center"));
$table->construct_cell($last_use, array("class" => "align_center"));

		$table->construct_cell($filter['filter']);
$table->construct_cell($date, array("class" => "align_center"));
$table->construct_cell($last_use, array("class" => "align_center"));