diff --git a/phpBB/docs/auth_api.html b/phpBB/docs/auth_api.html index c83aaadc2d..50d73d4485 100644 --- a/phpBB/docs/auth_api.html +++ b/phpBB/docs/auth_api.html @@ -61,6 +61,9 @@
acl_getf(option, true)
returned one or more forums but it's faster. It should be called in the following way:
-$result = acl_getf_global(option
) +$result = $auth->acl_getf_global(option
)
As with the previous methods option is a string specifying the permission which has to be checked.
@@ -187,6 +190,49 @@ $result = acl_getf_global(option
)
This should be considered a private method and not be called externally. It handles the generation of the user_permissions data from the basic user and group authorisation data. When necessary this method is called automatically by acl
.
This method clears the user_permissions column in the users table for the given user. If the user ID passed is zero, the permissions cache is cleared for all users. This method should be called whenever permissions are set.
+ ++// clear stored permissions for user 2 +$user_id = 2; +$auth->acl_clear_prefetch($user_id); +
This method returns void.
+ +This method returns an an array describing which users have permissions in given fora. The resultant array contains an entry for permission that every user has in every forum when no arguments are passed.
+ ++$user_id = array(2, 53); +$permissions = array('f_list', 'f_read'); +$forum_id = array(1, 2, 3); +$result = $auth->acl_get_list($user_id, $permissions, $forum_id); +
The parameters may be of the following legal types:
+false
, int, array(int, int, int, ...)false
, string, array(string, string, ...)false
, int, array(int, int, int, ...)There are other methods defined in the auth class which serve mostly as private methods, but are available for use if needed. Each of them is used to pull data directly from the database tables. They are:
+function acl_group_raw_data($group_id = false, $opts = false, $forum_id = false)
function acl_user_raw_data($user_id = false, $opts = false, $forum_id = false)
function acl_raw_data_single_user($user_id)
function acl_raw_data($user_id = false, $opts = false, $forum_id = false)
function acl_role_data($user_type, $role_type, $ug_id = false, $forum_id = false)
Of these, acl_raw_data
is the most general, but the others will be faster if you need a smaller amount of data.
Information on repository rules, such as commit messages can be found at http://wiki.phpbb.com/display/DEV/Git
. +Information on repository rules, such as commit messages can be found at http://wiki.phpbb.com/display/DEV/Git
. diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 912d39e0f0..0f150a3d63 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -4399,7 +4399,7 @@ function page_header($page_title = '', $display_online_list = true, $item_id = 0 'S_ENABLE_FEEDS_TOPICS_ACTIVE' => ($config['feed_topics_active']) ? true : false, 'S_ENABLE_FEEDS_NEWS' => ($s_feed_news) ? true : false, - 'S_LOAD_UNREADS' => ($config['load_unreads_search']) ? true : false, + 'S_LOAD_UNREADS' => ($config['load_unreads_search'] && ($config['load_anon_lastread'] || $user->data['is_registered'])) ? true : false, 'T_THEME_PATH' => "{$web_path}styles/" . $user->theme['theme_path'] . '/theme', 'T_TEMPLATE_PATH' => "{$web_path}styles/" . $user->theme['template_path'] . '/template', diff --git a/phpBB/styles/prosilver/template/index_body.html b/phpBB/styles/prosilver/template/index_body.html index af2077141c..d4d50a11c0 100644 --- a/phpBB/styles/prosilver/template/index_body.html +++ b/phpBB/styles/prosilver/template/index_body.html @@ -6,7 +6,7 @@ diff --git a/phpBB/styles/subsilver2/template/overall_header.html b/phpBB/styles/subsilver2/template/overall_header.html index 37691d4f1c..a8a53abd24 100644 --- a/phpBB/styles/subsilver2/template/overall_header.html +++ b/phpBB/styles/subsilver2/template/overall_header.html @@ -201,8 +201,8 @@ function marklist(id, name, state)