multi spam ip delete

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12536 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2013-01-11 08:17:03 +00:00
parent b8706b14b9
commit 16ee384ac8
2 changed files with 22 additions and 5 deletions

View file

@ -69,11 +69,20 @@ class spamfilterAdminController extends spamfilter
*/
function procSpamfilterAdminDeleteDeniedIP()
{
$ipaddress = Context::get('ipaddress');
$output = $this->deleteIP($ipaddress);
$ipAddressList = Context::get('ipaddress');
if(is_array($ipAddressList))
{
foreach($ipAddressList AS $key=>$ipaddress)
{
$this->deleteIP($ipaddress);
}
}
$this->setMessage(Context::getLang('success_deleted'));
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispSpamfilterAdminDeniedIPList');
return $this->setRedirectUrl($returnUrl, $output);
return $this->setRedirectUrl($returnUrl);
}
/**