Version 5.0.13
This commit is contained in:
1 parent
b89858b2ff
commit
5efe744c5f
1407 files changed
+69690
-30177
No files matched your search
@@ -12,6 +12,7 @@ namespace IPS\core\modules\admin\membersettings;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
|
||||
use IPS\Api\Webhook;
|
||||
use IPS\Data\Store;
|
||||
use IPS\DateTime;
|
||||
use IPS\Db;
|
||||
@@ -180,6 +181,8 @@ class ban extends Controller
|
||||
'ban_reason' => $values['ban_reason'],
|
||||
'ban_date' => time()
|
||||
);
|
||||
|
||||
Webhook::fire( 'ban_filter_added', $save);
|
||||
|
||||
if ( $current )
|
||||
{
|
||||
@@ -217,6 +220,7 @@ class ban extends Controller
|
||||
$current = Db::i()->select( '*', 'core_banfilters', array( 'ban_id=?', Request::i()->id ) )->first();
|
||||
Session::i()->log( 'acplog__ban_deleted', array( 'ban_filter_' . $current['ban_type'] . '_select' => TRUE, $current['ban_content'] => FALSE ) );
|
||||
Db::i()->delete( 'core_banfilters', array( 'ban_id=?', Request::i()->id ) );
|
||||
Webhook::fire( 'ban_filter_removed', $current);
|
||||
unset( Store::i()->bannedIpAddresses );
|
||||
}
|
||||
catch ( UnderflowException $e ) { }
|
||||
|
||||
Reference in new issue
Block a user