diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2012-12-19 21:47:53 -0500 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2012-12-20 00:00:15 -0500 |
commit | 69e373c1af09e10722c1146f44493e8dc3669918 (patch) | |
tree | 85038dbf8949cff09b3d542e9f2e7e9666a4001a /phpBB/includes/functions_admin.php | |
parent | f9cee47003ad76c124822675cf4db0406af1bd70 (diff) | |
download | forums-69e373c1af09e10722c1146f44493e8dc3669918.tar forums-69e373c1af09e10722c1146f44493e8dc3669918.tar.gz forums-69e373c1af09e10722c1146f44493e8dc3669918.tar.bz2 forums-69e373c1af09e10722c1146f44493e8dc3669918.tar.xz forums-69e373c1af09e10722c1146f44493e8dc3669918.zip |
[ticket/10758] Add compat functions.
PHPBB3-10758
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r-- | phpBB/includes/functions_admin.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php index e8dd55813b..496d3eba09 100644 --- a/phpBB/includes/functions_admin.php +++ b/phpBB/includes/functions_admin.php @@ -2473,6 +2473,20 @@ function phpbb_cache_moderators($db, $cache, $auth) } /** +* Cache moderators. Called whenever permissions are changed +* via admin_permissions. Changes of usernames and group names +* must be carried through for the moderators table +* +* @return null +*/ +function cache_moderators() +{ + global $db, $cache, $auth; + return phpbb_cache_moderators($db, $cache, $auth); +} + + +/** * View log * If $log_count is set to false, we will skip counting all entries in the database. */ @@ -2863,6 +2877,19 @@ function phpbb_update_foes($db, $auth, $group_id = false, $user_id = false) } /** +* Removes moderators and administrators from foe lists. +* +* @param array|bool $group_id If an array, remove all members of this group from foe lists, or false to ignore +* @param array|bool $user_id If an array, remove this user from foe lists, or false to ignore +* @return null +*/ +function update_foes($group_id = false, $user_id = false) +{ + global $db, $auth; + phpbb_update_foes($db, $auth, $group_id, $user_id); +} + +/** * Lists inactive users */ function view_inactive_users(&$users, &$user_count, $limit = 0, $offset = 0, $limit_days = 0, $sort_by = 'user_inactive_time DESC') |