Zeile 3 | Zeile 3 |
---|
* MyBB 1.2 * Copyright � 2006 MyBB Group, All Rights Reserved *
|
* MyBB 1.2 * Copyright � 2006 MyBB Group, All Rights Reserved *
|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html
| * Website: http://www.mybboard.net * License: http://www.mybboard.net/eula.html
|
*
|
*
|
* $Id: showteam.php 2164 2006-08-30 06:17:49Z chris $
| * $Id: showteam.php 3030 2007-04-26 00:19:47Z Tikitiki $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 40 | Zeile 40 |
---|
}
// Fetch specific forum moderator details
|
}
// Fetch specific forum moderator details
|
if($usergroups[6]['showforumteam'] == 'yes')
| if($usergroups[6]['gid'])
|
{ $query = $db->query(" SELECT m.*, f.name FROM ".TABLE_PREFIX."moderators m LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=m.uid) LEFT JOIN ".TABLE_PREFIX."forums f ON (f.fid=m.fid)
|
{ $query = $db->query(" SELECT m.*, f.name FROM ".TABLE_PREFIX."moderators m LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=m.uid) LEFT JOIN ".TABLE_PREFIX."forums f ON (f.fid=m.fid)
|
| WHERE f.active = 'yes'
|
ORDER BY u.username
|
ORDER BY u.username
|
"); while($moderator = $db->fetch_array($query)) { $moderators[$moderator['uid']][] = $moderator; }
| "); while($moderator = $db->fetch_array($query)) { $moderators[$moderator['uid']][] = $moderator; }
|
}
// Now query the users of those specific groups $groups_in = implode(",", array_keys($usergroups)); $users_in = implode(",", array_keys($moderators)); if(!$groups_in)
|
}
// Now query the users of those specific groups $groups_in = implode(",", array_keys($usergroups)); $users_in = implode(",", array_keys($moderators)); if(!$groups_in)
|
{
| {
|
$groups_in = 0; } if(!$users_in)
|
$groups_in = 0; } if(!$users_in)
|
{
| {
|
$users_in = 0; } $forum_permissions = forum_permissions();
| $users_in = 0; } $forum_permissions = forum_permissions();
|
Zeile 83 | Zeile 84 |
---|
} $user['forumlist'] = $forumlist; $forumlist = '';
|
} $user['forumlist'] = $forumlist; $forumlist = '';
|
| $usergroups[6]['user_list'][$user['uid']] = $user; } if($user['displaygroup'] == '6' || $user['displaygroup'] == '6') {
|
$usergroups[6]['user_list'][$user['uid']] = $user; }
| $usergroups[6]['user_list'][$user['uid']] = $user; }
|
Zeile 129 | Zeile 135 |
---|
$bgcolor = alt_trow();
|
$bgcolor = alt_trow();
|
//If the current group is a moderator group if($usergroup['gid'] == 6)
| // If the current group is a moderator group if($usergroup['gid'] == 6 && !empty($user['forumlist']))
|
{ $forumslist = $user['forumlist']; eval("\$modrows .= \"".$templates->get("showteam_moderators_mod")."\";");
| { $forumslist = $user['forumlist']; eval("\$modrows .= \"".$templates->get("showteam_moderators_mod")."\";");
|
Zeile 141 | Zeile 147 |
---|
} }
|
} }
|
if($usergroup['gid'] == 6)
| if($usergroup['gid'] == 6 && !empty($user['forumlist']))
|
{ eval("\$grouplist .= \"".$templates->get("showteam_moderators")."\";"); }
| { eval("\$grouplist .= \"".$templates->get("showteam_moderators")."\";"); }
|