mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-09 19:26:53 +02:00
[ticket/10758] Add compat functions.
PHPBB3-10758
This commit is contained in:
@ -2472,6 +2472,20 @@ function phpbb_cache_moderators($db, $cache, $auth)
|
|||||||
$db->sql_multi_insert(MODERATOR_CACHE_TABLE, $sql_ary);
|
$db->sql_multi_insert(MODERATOR_CACHE_TABLE, $sql_ary);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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
|
* View log
|
||||||
* If $log_count is set to false, we will skip counting all entries in the database.
|
* If $log_count is set to false, we will skip counting all entries in the database.
|
||||||
@ -2862,6 +2876,19 @@ function phpbb_update_foes($db, $auth, $group_id = false, $user_id = false)
|
|||||||
unset($perms);
|
unset($perms);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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
|
* Lists inactive users
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user