1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 05:37:32 +02:00

Merge pull request #3098 from yesszus/patch-2

Update admin banlist.php
This commit is contained in:
Cameron
2018-04-22 11:59:04 -07:00
committed by GitHub
2 changed files with 4 additions and 3 deletions

View File

@@ -591,7 +591,7 @@ class banlist_form_ui extends e_admin_form_ui
$allFailedTotal = e107::getDB()->count('generic', '(*)', "gen_type='failed_login'"); $allFailedTotal = e107::getDB()->count('generic', '(*)', "gen_type='failed_login'");
$this->batchOptions = array('delete-all'=>"Delete all ".$allFailedTotal." failed logins from database"); $this->batchOptions = array('delete-all'=>str_replace('[x]', $allFailedTotal, BANLAN_127));
if(!empty($_POST['etrigger_batch']) && $_POST['etrigger_batch'] == "delete-all") if(!empty($_POST['etrigger_batch']) && $_POST['etrigger_batch'] == "delete-all")
{ {
@@ -1707,4 +1707,4 @@ function headerjs()
require_once(e_ADMIN."footer.php"); require_once(e_ADMIN."footer.php");
exit; exit;
?> ?>

View File

@@ -130,5 +130,6 @@ define("BANLAN_123", "Add to Blacklist");
define("BANLAN_124", "Expires"); // not ban_lan_34 define("BANLAN_124", "Expires"); // not ban_lan_34
define("BANLAN_125", "Use my IP"); define("BANLAN_125", "Use my IP");
define("BANLAN_126", "IP / Email"); define("BANLAN_126", "IP / Email");
define("BANLAN_127", "Delete all [x] failed logins from database");
?> ?>