1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
<?php /* $Id: team.php,v 1.2 2002/12/29 23:40:28 thetinysteini Exp $ */ /* ThWboard - PHP/MySQL Bulletin Board System ============================================== (c) 2000, 2001 by Paul Baecher <paul@thewall.de> Felix Gonschorek <funner@thewall.de>
download the latest version: http://www.thwboard.de
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
==============================================
*/ include './inc/header.inc.php';
$TFrame = new Template('./templates/' . $style['styletemplate'] . '/frame.html'); $TTeam = new Template('./templates/' . $style['styletemplate'] . '/team.html'); $TRow = new Template('./templates/' . $style['styletemplate'] . '/teamrow.html');
// who is online? $a_online = array(); $r_online = thwb_query ("SELECT online.userid, online.onlinetime FROM ".$pref."online AS online, ".$pref."user AS user WHERE user.userid=online.userid"); while( $online = mysql_fetch_array($r_online) ) { if( $online['onlinetime'] > (time() - 60 * 5) ) { $a_online[$online['userid']] = 1; } } mysql_free_result($r_online);
$a_group = array(); $group_ids = ''; $r_group = thwb_query("SELECT groupid, title FROM $pref"."group WHERE (accessmask & ".P_INTEAM.") ORDER BY titlepriority DESC"); if( mysql_num_rows($r_group) < 1 ) { message('Info', 'Kein Staff vorhanden.'); }
while( $group = mysql_fetch_array($r_group) ) { $a_group[] = $group; $group_ids .= "OR INSTR(groupids, ',$group[groupid],')>0 "; } $group_ids = substr($group_ids, 3);
$r_user = thwb_query("SELECT userid, username, useremail, userhideemail, usertitle, userinvisible, groupids FROM $pref"."user WHERE $group_ids ORDER BY username ASC"); while( $user = mysql_fetch_array($r_user) ) { $user['username'] = parse_code($user['username']); if( $user['usertitle'] ) { $user['userlevel'] = $user['usertitle']; } else { // group titling.. reset($a_group); while( list(, $group) = each($a_group) ) { if( strstr($user['groupids'], ','.$group['groupid'].',' ) ) { $user['userlevel'] = $group['title']; break; } } } $user['useremail'] = get_email( $user, true );
if( $a_online[$user['userid']] && $user['userinvisible'] != 1 ) { $user['userisonline'] = 'Ja'; } else { $user['userisonline'] = 'Nein'; } eval($TRow->GetTemplate("TEAMROWS")); }
$navpath .= 'Forumstaff';
eval($TTeam->GetTemplate("CONTENT")); eval($TFrame->GetTemplate());
?>
|