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:
Paul S. Owen 2003-06-19 13:19:39 +00:00
parent 28c0d2ac07
commit 67f4864c7a

View file

@ -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();