multi spam word delete

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

View file

@ -70,14 +70,7 @@ class spamfilterAdminController extends spamfilter
function procSpamfilterAdminDeleteDeniedIP()
{
$ipAddressList = Context::get('ipaddress');
if(is_array($ipAddressList))
{
foreach($ipAddressList AS $key=>$ipaddress)
{
$this->deleteIP($ipaddress);
}
}
$this->deleteIP($ipAddressList);
$this->setMessage(Context::getLang('success_deleted'));
@ -90,12 +83,13 @@ class spamfilterAdminController extends spamfilter
*/
function procSpamfilterAdminDeleteDeniedWord()
{
$word = Context::get('word');
//$word = base64_decode(Context::get('word'));
$output = $this->deleteWord($word);
$wordList = Context::get('word');
$this->deleteWord($wordList);
$this->setMessage(Context::getLang('success_deleted'));
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispSpamfilterAdminDeniedWordList','active','word');
return $this->setRedirectUrl($returnUrl, $output);
return $this->setRedirectUrl($returnUrl);
}
/**