diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2006-02-24 17:33:42 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-02-24 17:33:42 +0000 |
commit | 724b37ae9706c24b23833da67565dc20d7d78045 (patch) | |
tree | eea320ac39a6498362441f819b9ea53381524de5 /phpBB/includes/acp/auth.php | |
parent | 37e0e0a4da489125f825ad9f2ba9ea1763e82452 (diff) | |
download | forums-724b37ae9706c24b23833da67565dc20d7d78045.tar forums-724b37ae9706c24b23833da67565dc20d7d78045.tar.gz forums-724b37ae9706c24b23833da67565dc20d7d78045.tar.bz2 forums-724b37ae9706c24b23833da67565dc20d7d78045.tar.xz forums-724b37ae9706c24b23833da67565dc20d7d78045.zip |
- blabla, additional bugfixing permissions...
git-svn-id: file:///svn/phpbb/trunk@5580 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp/auth.php')
-rw-r--r-- | phpBB/includes/acp/auth.php | 42 |
1 files changed, 14 insertions, 28 deletions
diff --git a/phpBB/includes/acp/auth.php b/phpBB/includes/acp/auth.php index 932d990aae..8f47a6dc71 100644 --- a/phpBB/includes/acp/auth.php +++ b/phpBB/includes/acp/auth.php @@ -47,6 +47,20 @@ class auth_admin extends auth $cache->put('acl_options', $this->acl_options); } + + if (!sizeof($this->option_ids)) + { + $sql = 'SELECT auth_option_id, auth_option + FROM ' . ACL_OPTIONS_TABLE; + $result = $db->sql_query($sql); + + $this->option_ids = array(); + while ($row = $db->sql_fetchrow($result)) + { + $this->option_ids[$row['auth_option']] = $row['auth_option_id']; + } + $db->sql_freeresult($result); + } } /** @@ -662,20 +676,6 @@ class auth_admin extends auth $ug_id = array($ug_id); } - if (!sizeof($this->option_ids)) - { - $sql = 'SELECT auth_option_id, auth_option - FROM ' . ACL_OPTIONS_TABLE; - $result = $db->sql_query($sql); - - $this->option_ids = array(); - while ($row = $db->sql_fetchrow($result)) - { - $this->option_ids[$row['auth_option']] = $row['auth_option_id']; - } - $db->sql_freeresult($result); - } - $ug_id_sql = 'IN (' . implode(', ', array_map('intval', $ug_id)) . ')'; $forum_sql = 'IN (' . implode(', ', array_map('intval', $forum_id)) . ') '; @@ -781,20 +781,6 @@ class auth_admin extends auth { global $db; - if (!sizeof($this->option_ids)) - { - $sql = 'SELECT auth_option_id, auth_option - FROM ' . ACL_OPTIONS_TABLE; - $result = $db->sql_query($sql); - - $this->option_ids = array(); - while ($row = $db->sql_fetchrow($result)) - { - $this->option_ids[$row['auth_option']] = $row['auth_option_id']; - } - $db->sql_freeresult($result); - } - // Remove current auth options... $sql = 'DELETE FROM ' . ACL_ROLES_DATA_TABLE . ' WHERE role_id = ' . $role_id; |