mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Add new method ... allow grab of options for all forums ... useful for e.g. when forums where post count is incremented are required
git-svn-id: file:///svn/phpbb/trunk@4142 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
28c0d2ac07
commit
67f4864c7a
1 changed files with 25 additions and 0 deletions
|
@ -589,9 +589,34 @@ class auth
|
|||
}
|
||||
}
|
||||
|
||||
// Needs to change ... check founder status when updating cache?
|
||||
return ($this->founder) ? true : $cache[$f][$opt];
|
||||
}
|
||||
|
||||
function acl_getf($opt)
|
||||
{
|
||||
static $cache;
|
||||
|
||||
if (isset($this->acl_options['local'][$opt]))
|
||||
{
|
||||
foreach ($this->acl['local'] as $f => $bitstring)
|
||||
{
|
||||
if (!isset($cache[$opt][$f]))
|
||||
{
|
||||
$cache[$opt][$f] = false;
|
||||
|
||||
$cache[$opt][$f] = $bitstring{$this->acl_options['local'][$opt]};
|
||||
if (isset($this->acl_options['global'][$opt]))
|
||||
{
|
||||
$cache[$opt][$f] |= $this->acl['global']{$this->acl_options['global'][$opt]};
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $cache[$opt];
|
||||
}
|
||||
|
||||
function acl_gets()
|
||||
{
|
||||
$args = func_get_args();
|
||||
|
|
Loading…
Add table
Reference in a new issue