aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-12-28 22:11:45 +0100
committerMarc Alexander <admin@m-a-styles.de>2016-12-28 22:11:45 +0100
commit54e31efcbc7a310c00ec81b8b71da0af2ebea8da (patch)
tree1d96c8f21a4b92eac848f300a611681a97bccc10 /phpBB
parent97a0f49be42085a91ae3693c70f9c8d3496c1577 (diff)
parenta03cec5b8dcf34084fac52c38ac5673d20e951f5 (diff)
downloadforums-54e31efcbc7a310c00ec81b8b71da0af2ebea8da.tar
forums-54e31efcbc7a310c00ec81b8b71da0af2ebea8da.tar.gz
forums-54e31efcbc7a310c00ec81b8b71da0af2ebea8da.tar.bz2
forums-54e31efcbc7a310c00ec81b8b71da0af2ebea8da.tar.xz
forums-54e31efcbc7a310c00ec81b8b71da0af2ebea8da.zip
Merge pull request #4525 from senky/ticket/14119
[ticket/14119] Add core.user_unban
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions_user.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index 0b39339c7f..c78beaa6a5 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -1291,7 +1291,7 @@ function user_ban($mode, $ban, $ban_len, $ban_len_other, $ban_exclude, $ban_reas
*/
function user_unban($mode, $ban)
{
- global $db, $user, $auth, $cache;
+ global $db, $user, $auth, $cache, $phpbb_dispatcher;
// Delete stale bans
$sql = 'DELETE FROM ' . BANLIST_TABLE . '
@@ -1358,6 +1358,20 @@ function user_unban($mode, $ban)
add_log('user', $user_id, 'LOG_UNBAN_' . strtoupper($mode), $l_unban_list);
}
}
+
+ /**
+ * Use this event to perform actions after the unban has been performed
+ *
+ * @event core.user_unban
+ * @var string mode One of the following: user, ip, email
+ * @var array user_ids_ary Array with user_ids
+ * @since 3.1.11-RC1
+ */
+ $vars = array(
+ 'mode',
+ 'user_ids_ary',
+ );
+ extract($phpbb_dispatcher->trigger_event('core.user_unban', compact($vars)));
}
$cache->destroy('sql', BANLIST_TABLE);