Statistik |
Beiträge: 144.534 (Täglich: 19,19 )
Themen: 16.701
Mitglieder: 13.209
Neuestes Mitglied: zitronentee.
Ausl. d. letzten Minute: 306%
Ausl. d. letzten 5 Minuten: 280%
Ausl. d. letzten 15 Minuten: 283%
Aktulle Uhrzeit: 07:25
Freier Webspace: 4.04 TB
PHP-Version: 7.4.33
|
|
|
|
|
Problem |
|
Jo haoollloooaaaa
ich bins wieder mal.....
so habe folgendes problem!
ich hatte ihn schon super eingebaut den hack, doch irrgendwie ist mir heute was schiefgelaufen als ich in der db was gemacht habe!
das problem bei mir ist das ich den ts viewer auf ein paar verschiedenen versionen zusammengewürfelt habe!
es funtzt jetzt wieder alles bis auf die wiw box des hm portals!
schaut selber was ich meinen www.virtual-army.net ,rechts drüben ist die wer ist online box
ich will da nicht das ganze ts sammt channels rein sondern nur die usernamen die online sind! eben so wie bei der woltlab onlineanzeige!
was habe ich da falsch gemacht?
code: |
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:
|
<tr>
<td class="tableb" width="20%" align="center"><img src="hm-portal/images/authors1.gif" border="0" alt="" />
<br /><span class="smallfont"><a href="wiw.php{$SID_ARG_1ST}">{$lang->items['LANG_HMPORTAL_ONLINE_WHERELINK']}</a></span>
</td>
<td class="tablea" width="80%" align="center" colspan="0"><span class="smallfont">
<if($totaluseronline==1)>
<then>{$lang->items['LANG_HMPORTAL_ONLINE_ONEUSER']}</then>
<else>{$lang->items['LANG_HMPORTAL_ONLINE_SEVUSERS1']} $totaluseronline {$lang->items['LANG_HMPORTAL_ONLINE_SEVUSERS2']}</else>
</if><br /><br/>
$useronline<br />
<if($guestcount==1)>
<then>{$lang->items['LANG_HMPORTAL_ONLINE_ONEGUEST']}</then>
<else>$guestcount {$lang->items['LANG_HMPORTAL_ONLINE_SEVGUESTS']}</else>
</if><br />
</span></td>
</tr>
<!-- TeamSpeaker -->
<if($teamspeaker==1 )>
<then>
<tr>
<b><td class="tabletitle" align="center" colspan="<if($hide_modcell==0)><then>6</then><else>5</else></if>"><span class="smallfont"><b>{$lang->items['LANG_HMPORTAL_TEAMSPEAKER']}</b></span></td>
</tr>
<tr>
<td rowspan="2" class="tableb" align="center"><img src="{$style['imagefolder']}/ts_online.gif" border="0"><br />
<a href="teamspeak.php?sid=$session[hash]"><span class="smallfont">{$lang->items['LANG_HMPORTAL_JOIN_TEAMSPEAK']}</span></a></center>
</td>
<td colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>" class="tablea" align="center"><span class="smallfont">{$lang->items['LANG_HMPORTAL_TEAMSPEAKER_ONLINE']}<br/><br/>
<if($useronline=="")><then> </then></if> $teamspeaker_online_vg </span></td>
</tr>
</then>
</if>
<!-- TeamSpeaker -->
$pchattin |
|
das ist meine hm_box_online
habe nichts geändert, brauchte nach der db geschichte nicht viel machen damit es wieder funtzte, sprich auf der index seite werden die user im ts angezeigt.....
|
|
21.02.2005 16:30 |
|
|
|
code: |
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:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
|
<?
if(!(@hmp_check())) exit();
//
// HM-Portal 3.1
// User-Online-Box
// with code from WBB 2.1 (c) Woltlab
//
$showchat = 0; // Zeige an, wer im Chat ist (für phpmyChat)
eval("print(\"".$hm_boxhead_tpl."\");");
// kaum geaenderter Woltlab-Code:
$guestcount=0;
$membercount=0;
$invisiblecount=0;
$online = new useronline($wbbuserdata['a_can_view_ghosts'],$wbbuserdata['buddylist']);
$result = $db->unbuffered_query("SELECT s.userid, u.username, u.useronlinegroupid, g.useronlinemarking, u.invisible
FROM bb".$n."_sessions s
LEFT JOIN bb".$n."_users u USING (userid)
LEFT JOIN bb".$n."_groups g ON g.groupid=u.useronlinegroupid
WHERE s.lastactivity >= '".(time()-60*$useronlinetimeout)."'".(($wbbuserdata['ignorelist']) ? (" AND s.userid NOT IN (".str_replace(" ",",",$wbbuserdata['ignorelist']).")") : (""))."
ORDER BY u.username ASC");
while($row = $db->fetch_array($result)) {
if($row['userid']==0) {
$guestcount++;
continue;
}
$membercount++;
if($row['invisible']==1) $invisiblecount++;
$online->user($row['userid'],htmlconverter($row['username']),$row['useronlinemarking'],$row['invisible']);
}
$useronline = $online->useronlinebit;
$totaluseronline = $membercount+$guestcount;
// Rekord gebrochen ?
if($totaluseronline>$rekord) {
$rekord=$totaluseronline;
$rekordtime=time();
$db->unbuffered_query("UPDATE bb".$n."_options SET value='$rekord' WHERE varname='rekord'",1);
$db->unbuffered_query("UPDATE bb".$n."_options SET value='$rekordtime' WHERE varname='rekordtime'",1);
require ("./acp/lib/class_options.php");
$option=new options("acp/lib");
$option->write();
}
$rekorddate = formatdate($wbbuserdata['dateformat'],$rekordtime);
$rekordtime = formatdate($wbbuserdata['timeformat'],$rekordtime);
// Ende Woltlab-Code
$pchattin="";
/* ############## / PCHAT (MHm fuer Co2air) ############## */
// pchat - Wer ist im Chat?
if ($showchat) {
$ChatPath = "pchat";
$ShowPrivate = "0";//show users in private rooms?
$DisplayUsers = "1";// 0 only number, 1 list of users
require("./${ChatPath}/lib/connected_users_wbb2.lib.php");
$ChatUsers = s_display_connected(0,1,"","niemand");
eval("\$pchattin = \"".$tpl->get("hm_box_online_pchattin")."\";");
}
/* ############## / PCHAT (MHm) ############## */
/* ### TeamSpeaker Online by Viktor ### */
if($teamspeaker==1) {
if($wbbuserdata['can_show_team_speak']==1) {
require('./acp/lib/class_teamspeak_online.php');
get_teamspeak_configuration();
$tsuserdaten = $db->query_first("SELECT * FROM bb".$n."_teamspeak_user WHERE userid = '".$wbbuserdata['userid']."'");
$tsnickname = $tsuserdaten['tsnickname'];
$tsloginname = $tsuserdaten['tsloginname'];
$tspassword = $tsuserdaten['tspassword'];
$lang->load("START");
$tss2info->getInfo($serverAddress,$serverQueryPort,$serverUDPPort);
$tss2info->userName="Guest";
$counter_teamspeaker = 0;
$teamspeaker_cannel = '';
foreach($tss2info->channelList as $channelInfo) {
$channelname = $channelInfo[channelname];
/* determine codec (verbose) */
$codec = $tss2info->getVerboseCodec($channelInfo[codec]);
/* default? */
if($channelInfo[isdefault] == "1") $isDefault = "yes"; else $isDefault = "no";
if ($channelInfo[channelid] != "id") {
$channeldaten = $db->query_first("SELECT * FROM bb".$n."_teamspeak_channel WHERE channel = '".addslashes($channelname)."'");
$channelid = $channeldaten['id'];
$channelpw = $channeldaten['password'];
if($channelid) {
if($wbbuserdata['can_online_team_speak']==1) {
if(!$tspassword) {
if($serverAddress) {
$channel_ts = "<a href=\"teamspeak://".$serverAddress.":".$serverUDPPort."?channel=".$channelname."?password=".$serverPasswort."?nickname=".$tsnickname."\" title=\"".$channelInfo[topic]."\">".$channelname."</a> (".$channelInfo[currentplayers]."/".$channelInfo[maxplayers].")";
} else {
$channel_ts = $channelname."(".$channelInfo[currentplayers]."/".$channelInfo[maxplayers].")";
}
} else {
if($channelpw) {
$channel_ts = "<a href=\"teamspeak://".$serverAddress.":".$serverUDPPort."?nickname=".$tsnickname."?loginname=".$tsloginname."?password=".$tspassword."?channel=".$channelname."?channelpassword=".$channelpw."\" title=\"".$channelInfo[topic]."\">".$channelname."</a> (".$channelInfo[currentplayers]."/".$channelInfo[maxplayers].")";
} else {
$channel_ts = "<a href=\"teamspeak://".$serverAddress.":".$serverUDPPort."?nickname=".$tsnickname."?loginname=".$tsloginname."?password=".$tspassword."?channel=".$channelname."\" title=\"".$channelInfo[topic]."\">".$channelname."</a> (".$channelInfo[currentplayers]."/".$channelInfo[maxplayers].")";
}
}
} else {
$channel_ts = $channelname."(".$channelInfo[currentplayers]."/".$channelInfo[maxplayers].")";
}
eval ("\$teamspeaker_channel .= \" ".$tpl->get("hm_box_online_teamspeaker_channel")."\";");
foreach($tss2info->playerList as $playerInfo) {
if ($playerInfo[channelid] == $channelInfo[channelid]) {
/* calculate times */
$idletime = date("H:i:s", mktime(floor($playerInfo[idletime] / 3600), floor(($playerInfo[idletime] % 3600) / 60), $playerInfo[idletime] % 60));
$totaltime = date("H:i:s", mktime(floor($playerInfo[totaltime] / 3600), floor(($playerInfo[totaltime] % 3600) / 60), $playerInfo[totaltime] % 60));
$totaltimet = date("G", mktime(floor($playerInfo[totaltime]) / 86400));
//$teamspeaker_online = $playerInfo[playername]."(".$totaltime.")";
if($totaltime != '00:00:00') {
$totaltime = $totaltimet."T:".$totaltime;
/* User-Status-MouseOver */
$teamspeaker_player = $lang->items['LANG_START_TEAMSPEAKER_PLAYER'];
$teamspeaker_away = $lang->items['LANG_START_TEAMSPEAKER_AWAY'];
$teamspeaker_mutemicro = $lang->items['LANG_START_TEAMSPEAKER_MUTEMICRO'];
$teamspeaker_mutespeakers = $lang->items['LANG_START_TEAMSPEAKER_MUTESPEAKERS'];
$teamspeaker_channelcommander = $lang->items['LANG_START_TEAMSPEAKER_CHANNELCOMMANDER'];
/* User-Status-Grafik */
if ($playerInfo[attribute] == "0") $teamspeakergif = "<img src=\"images/teamspeaker/player.gif\" alt=\"$teamspeaker_player\" />";
if (($playerInfo[attribute] == "8")
OR ($playerInfo[attribute] == "9")
OR ($playerInfo[attribute] == "12")
OR ($playerInfo[attribute] == "13")
OR ($playerInfo[attribute] == "24")
OR ($playerInfo[attribute] == "25")
OR ($playerInfo[attribute] == "28")
OR ($playerInfo[attribute] == "29")
OR ($playerInfo[attribute] == "40")
OR ($playerInfo[attribute] == "41")
OR ($playerInfo[attribute] == "44")
OR ($playerInfo[attribute] == "45")
OR ($playerInfo[attribute] == "56")
OR ($playerInfo[attribute] == "57")) $teamspeakergif = "<img src=\"images/teamspeaker/away.gif\" alt=\"$teamspeaker_away\" />";
if (($playerInfo[attribute] == "16")
OR ($playerInfo[attribute] == "17")
OR ($playerInfo[attribute] == "20")
OR ($playerInfo[attribute] == "21")) $teamspeakergif = "<img src=\"images/teamspeaker/mutemicro.gif\" alt=\"$teamspeaker_mutemicro\" />";
if (($playerInfo[attribute] == "32")
OR ($playerInfo[attribute] == "33")
OR ($playerInfo[attribute] == "36")
OR ($playerInfo[attribute] == "37")
OR ($playerInfo[attribute] == "48")
OR ($playerInfo[attribute] == "49")
OR ($playerInfo[attribute] == "52")
OR ($playerInfo[attribute] == "53")) $teamspeakergif = "<img src=\"images/teamspeaker/mutespeakers.gif\" alt=\"$teamspeaker_mutespeakers\" />";
if ($playerInfo[attribute] == "4") $teamspeakergif = "<img src=\"images/teamspeaker/player.gif\" alt=\"$teamspeaker_player\" />";
if (($playerInfo[attribute] == "1")
OR ($playerInfo[attribute] == "5")) $teamspeakergif = "<img src=\"images/teamspeaker/channelcommander.gif\" alt=\"$teamspeaker_channelcommander\" />";
/* User-Rechte */
if ($playerInfo[userstatus] < "4") { $teamspeakerstatus = "U"; } // Unregistriert
if ($playerInfo[userstatus] == "4") { $teamspeakerstatus = "R"; } // Registriert
if ($playerInfo[userstatus] == "5") { $teamspeakerstatus = "R SA"; } // Serveradmin
/* Privilegien */
if ($playerInfo[privileg] == "0") { $teamspeakerprivileg = ""; } // nix
if ($playerInfo[privileg] == "1") { $teamspeakerprivileg = " CA"; } // Channeladmin
eval ("\$teamspeaker_channel .= \" ".$tpl->get("hm_box_online_teamspeaker_user")."\";");
$counter_teamspeaker++;
}
}
} /* end foreach */
}
}
}
eval ("\$lang->items['LANG_HMPORTAL_TEAMSPEAKER_ONLINE'] = \"".$lang->get4eval("LANG_HMPORTAL_TEAMSPEAKER_ONLINE")."\";");
eval ("\$teamspeaker_online = \" ".$tpl->get("hm_box_online_teamspeaker_online")."\";");
if($counter_teamspeaker == 0) {
eval ("\$teamspeaker_online = \" ".$tpl->get("hm_box_online_teamspeaker_offline")."\";");
}
}
}
/* ### TeamSpeaker Online by Viktor ### */
eval("print(\"".$tpl->get("hm_box_online")."\");");
eval("print(\"".$hm_boxtail_tpl."\");");
?>
|
|
hier bitte
|
|
21.02.2005 22:01 |
|
|
Viktor
Administrator
Zeige Viktor auf Karte
Dabei seit: 15.08.2003
Beiträge: 31.570
363 Filebase-Einträge
Alter: 66 Jahre
Herkunft: NRW wBB-Version: wBB2.3 PHP-Version: 7.4.33 MySQL-Version: 10.5.19-MariaDB Wo bist du gehostet?: eigener Server
Bewertung:
Level: 71 [?]
Erfahrungspunkte: 237.770.943
Nächster Level: 266.777.854
|
|
|
21.02.2005 22:09 |
|
|
|
omg damn bin ich ein noob
jetzt passt es fast!
so schaut es im mom in der box aus
$counter_teamspeaker User online:
=VAU=]I[shaman,
=VAU=fkl21[Aut],
=VAU=Wolfman[Aut],
=VAU=ApriFive[AUT],
was ist das $counter_teamspeaker ?
ich will gerne noch die , hinter den namen weg haben
|
|
21.02.2005 22:25 |
|
|
Viktor
Administrator
Zeige Viktor auf Karte
Dabei seit: 15.08.2003
Beiträge: 31.570
363 Filebase-Einträge
Alter: 66 Jahre
Herkunft: NRW wBB-Version: wBB2.3 PHP-Version: 7.4.33 MySQL-Version: 10.5.19-MariaDB Wo bist du gehostet?: eigener Server
Bewertung:
Level: 71 [?]
Erfahrungspunkte: 237.770.943
Nächster Level: 266.777.854
|
|
|
21.02.2005 22:52 |
|
|
|
|
|
|