aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2002-11-18 21:04:45 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2002-11-18 21:04:45 +0000
commit6e910ca116436e227561eb51b51ed7aca9667242 (patch)
tree9a0b8695b587cb3d90f936e22f93877ab7d0ce22 /phpBB/includes/functions.php
parentce40939e608a2b2f36fa2c9b7f47ab52d1b02a42 (diff)
downloadforums-6e910ca116436e227561eb51b51ed7aca9667242.tar
forums-6e910ca116436e227561eb51b51ed7aca9667242.tar.gz
forums-6e910ca116436e227561eb51b51ed7aca9667242.tar.bz2
forums-6e910ca116436e227561eb51b51ed7aca9667242.tar.xz
forums-6e910ca116436e227561eb51b51ed7aca9667242.zip
Cache moderator names? Output moderators for all forums in viewforum. Alter a few things in templates
git-svn-id: file:///svn/phpbb/trunk@3061 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php33
1 files changed, 0 insertions, 33 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 646014f8ff..ccff70652e 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -105,44 +105,11 @@ function get_moderators(&$forum_moderators, $forum_id = false)
$forum_moderators[$row['forum_id']][] = (!empty($row['user_id'])) ? '<a href="profile.' . $phpEx . $SID . '&amp;mode=viewprofile&amp;u=' . $row['user_id'] . '">' . $row['username'] . '</a>' : '<a href="groupcp.' . $phpEx . $SID . '&amp;g=' . $row['group_id'] . '">' . $row['groupname'] . '</a>';
}
$db->sql_freeresult($result);
-/*
- $sql = "SELECT a.forum_id, u.user_id, u.username
- FROM " . ACL_OPTIONS_TABLE . " o, " . ACL_USERS_TABLE . " a, " . USERS_TABLE . " u
- WHERE a.auth_option_id = o.auth_option_id
- AND a.user_id = u.user_id
- AND o.auth_value = 'm_'
- AND a.auth_allow_deny = 1
- $forum_sql";
- $result = $db->sql_query($sql);
-
- while ($row = $db->sql_fetchrow($result))
- {
- $forum_moderators[$row['forum_id']][] = '<a href="profile.' . $phpEx . $SID . '&amp;mode=viewprofile&amp;u=' . $row['user_id'] . '">' . $row['username'] . '</a>';
- }
- $db->sql_freeresult($result);
-
- $sql = "SELECT a.forum_id, g.group_name, g.group_id
- FROM " . ACL_OPTIONS_TABLE . " o, " . ACL_GROUPS_TABLE . " a, " . GROUPS_TABLE . " g
- WHERE a.auth_option_id = o.auth_option_id
- AND a.group_id = g.group_id
- AND o.auth_value = 'm_'
- AND a.auth_allow_deny = 1
- AND g.group_type <> " . GROUP_HIDDEN . "
- $forum_sql";
- $result = $db->sql_query($sql);
- while ($row = $db->sql_fetchrow($result))
- {
- $forum_moderators[$row['forum_id']][] = '<a href="groupcp.' . $phpEx . $SID . '&amp;g=' . $row['group_id'] . '">' . $row['group_name'] . '</a>';
- }
- $db->sql_freeresult($result);
-*/
return;
}
-//
// User authorisation levels output
-//
function get_forum_rules($mode, &$rules, &$forum_id)
{
global $SID, $auth, $user;