aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/session.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2003-06-19 13:19:39 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2003-06-19 13:19:39 +0000
commit67f4864c7a84065ad9aac8ce897681f38e35b5c0 (patch)
tree0c493dfd45f8e9ba0ac459f9fb39a0735236cd76 /phpBB/includes/session.php
parent28c0d2ac0717f57500bd46fafdfdae664d9d3d7b (diff)
downloadforums-67f4864c7a84065ad9aac8ce897681f38e35b5c0.tar
forums-67f4864c7a84065ad9aac8ce897681f38e35b5c0.tar.gz
forums-67f4864c7a84065ad9aac8ce897681f38e35b5c0.tar.bz2
forums-67f4864c7a84065ad9aac8ce897681f38e35b5c0.tar.xz
forums-67f4864c7a84065ad9aac8ce897681f38e35b5c0.zip
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
Diffstat (limited to 'phpBB/includes/session.php')
-rw-r--r--phpBB/includes/session.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php
index 1fb3e88b70..3821f21579 100644
--- a/phpBB/includes/session.php
+++ b/phpBB/includes/session.php
@@ -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();