Statistik |
Beiträge: 144.532 (Täglich: 19,19 )
Themen: 16.700
Mitglieder: 13.209
Neuestes Mitglied: zitronentee.
Ausl. d. letzten Minute: 155%
Ausl. d. letzten 5 Minuten: 158%
Ausl. d. letzten 15 Minuten: 150%
Aktulle Uhrzeit: 23:42
Freier Webspace: 4.04 TB
PHP-Version: 7.4.33
|
|
|
|
irgendwie bin ich blind, oder ich find die "ip_einlesen.php" nirgends mehr hier. nur noch die csv-datei.
hab die datei bei mir vom server gelöscht
hat die nochmal jemand ?
greetz
günni
__________________
|
|
04.02.2006 18:40 |
|
|
janolaf
wBB2-User
Zeige janolaf auf Karte
Dabei seit: 23.05.2004
Beiträge: 1.918
2 Filebase-Einträge
Alter: 59 Jahre
Herkunft: nahe bei Kölle wBB-Version: wBB2.3 PHP-Version: 5.2.6 MySQL-Version: 5.0.26 Wo bist du gehostet?: selbst ist der Mann
Bewertung:
Level: 52 [?]
Erfahrungspunkte: 13.903.872
Nächster Level: 16.259.327
|
|
|
04.02.2006 18:48 |
|
|
|
ich sag ja: ich bin blind
danke dir
greetz
günni
__________________
|
|
04.02.2006 18:54 |
|
|
|
HUHU
Ich habe auch folgendes Problem habe das mal eingebaut bei
beiden sachen die ich über das ACP installen mußte kam folgende Meldung
fclose(): supplied argument is not a valid stream resource
stand aber da drunter erfolgreich installiert
habe dann weiter gemacht alles so wie es da stand
aber auch die anzeige geht gar nicht es ist alles so wie es vorher
auch war
habe das ganz schon dreimal kontrollt weiß aber nicht wo der fehler
liegt bitte mal um hilfe
mfg
|
|
06.02.2006 02:03 |
|
|
|
huhu
Ja das habe ich aber auch da kam die gleich fehlermeldung
dort kommt IP-Land Daten neu einlesen
Warning: fclose(): supplied argument is not a valid stream resource in /srv/www/htdocs/web1/html/30092006mw/acp/ip_einlesen.php on line 90
Daten wurden 54776 Datensätze erfolgreich Eingelesen!
Viel Spaß!
so steht das da und so was ähnliches hatte ich als ich die andere php ausführen mußte
mfg
|
|
06.02.2006 13:06 |
|
|
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.760.781
Nächster Level: 266.777.854
|
|
|
06.02.2006 19:34 |
|
|
|
So oki das Problem ist beseitigt nun folgt das nächste Problem
ich weiß auch nicht aber irgend was muß bei mir ganz schön schief gelaufen sein
das sind die beiden neuen Probleme also ein mal beim einlesen
tauchen da zeichen am ende auf was wohl nicht richtig sein kann
und das zweite problem wenn ich auf wer ist wo online gehe
da steht unten am Bild Rand auch was , was da nicht hingehört
ich habe die zu ändernden datein schon nach geschaut und nichts
gefunden
Habe dir mal von beiden dingen die Bilder angehängt
Dateianhänge: |
2.bmp (2 MB, 10 mal heruntergeladen) 1.bmp (2,08 MB, 15 mal heruntergeladen)
|
|
|
07.02.2006 01:17 |
|
|
|
HUHU
Ja ich habe mal die wiw.php angehängt
ich hoffe da ist was zu finden
php: |
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:
|
<?php
// ************************************************************************************//
// * WoltLab Burning Board 2
// ************************************************************************************//
// * Copyright (c) 2001-2004 WoltLab GmbH
// * Web http://www.woltlab.de/
// * License http://www.woltlab.de/products/burning_board/license_en.php
// * http://www.woltlab.de/products/burning_board/license.php
// ************************************************************************************//
// * WoltLab Burning Board 2 is NOT free software.
// * You may not redistribute this package or any of it's files.
// ************************************************************************************//
// * $Date: 2004-10-20 13:24:57 +0200 (Wed, 20 Oct 2004) $
// * $Author: Burntime $
// * $Rev: 1453 $
// ************************************************************************************//
$filename = 'wiw.php';
require('./global.php');
require('./includes/ip_land_function.inc.php');
if (!$wbbuserdata['can_view_wiw']) access_error();
require('./acp/lib/class_useronline.php');
require('./acp/lib/class_wiw.php');
$lang->load('WIW');
// Define
if (!isset($_GET['sortby'])) $_GET['sortby'] = '';
if (!isset($_GET['order'])) $_GET['order'] = '';
$sel_sortby['username'] = '';
$sel_sortby['ipaddress'] = '';
$sel_sortby['useragent'] = '';
$sel_sortby['lastactivity'] = '';
$sel_sortby['request_uri'] = '';
$sel_order['ASC'] = '';
$sel_order['DESC'] = '';
$useronline = '';
switch ($_GET['sortby']) {
case "username": break;
case "ipaddress": break;
case "useragent": break;
case "lastactivity": break;
case "request_uri": break;
default: $_GET['sortby'] = "lastactivity"; break;
}
switch ($_GET['order']) {
case "ASC": break;
case "DESC": break;
default: $_GET['order'] = "DESC"; break;
}
$sel_sortby[$_GET['sortby']] = " selected=\"selected\"";
$sel_order[$_GET['order']] = " selected=\"selected\"";
$wiw = &new WIW($wbbuserdata['a_can_view_ghosts'], $wbbuserdata['buddylist']);
$boardids = '';
$threadids = '';
$result = $db->query("SELECT s.*, u.username, u.invisible, u.useronlinegroupid,g.useronlinemarking, 0 AS script 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)."'".(($wiw_showonlyusers == 1) ? (" AND s.userid<>0") : ("")).(($wbbuserdata['ignorelist']) ? (" AND s.userid NOT IN (".str_replace(" ", ",", $wbbuserdata['ignorelist']).")") : (""))." ORDER BY ".$_GET['sortby']." ".$_GET['order']."");
while ($row = $db->fetch_array($result)) $wiw->insert($row);
$wiw->cache();
$guestcount = 1;
while ($row = $wiw->get()) {
if (!$row['userid']) {
$username = $lang->get("LANG_WIW_GUEST", array('$guestcount' => $guestcount));
$guestcount++;
}
else $username = $wiw->parse($row['userid'], htmlconverter($row['username']), $row['useronlinemarking'], $row['invisible']);
$time = formatdate($wbbuserdata['timeformat'], $row['lastactivity']);
if ($wbbuserdata['a_can_view_ipaddress'] == 1) {
$ipadress = htmlconverter($row['ipaddress']);
$browser = $row['useragent'];
if (wbb_strlen($browser) > 50) $browser = wbb_substr($browser, 0, 50)."...";
$browser = htmlconverter($browser);
$row['useragent'] = htmlconverter($row['useragent']);
}
$ip_land1 = htmlconverter($row['ipaddress']);
$ip_land = where_are_you_from(TRUE, FALSE, $ip_land1);
$location = $row['location'];
eval("\$useronline .= \"".$tpl->get("wiw_userbit")."\";");
}
eval("\$wiw_sortby = \"".$tpl->get("wiw_sortby")."\";");
eval("\$wiw_order = \"".$tpl->get("wiw_order")."\";");
$lang->items['LANG_WIW_SORTOPTIONS'] = $lang->get("LANG_WIW_SORTOPTIONS", array('$wiw_sortby' => $wiw_sortby, '$wiw_order' => $wiw_order));
eval("\$tpl->output(\"".$tpl->get("wiw")."\");");
?>ANG_WIW_SORTOPTIONS", array('$wiw_sortby' => $wiw_sortby, '$wiw_order' => $wiw_order));
eval("\$tpl->output(\"".$tpl->get("wiw")."\");");
?> |
|
ich sage schon mal vielen dank
mfg
|
|
08.02.2006 11:43 |
|
|
|
huhu
kpl inhalt der wiw php ersetzen
php: |
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:
|
<?php
// ************************************************************************************//
// * WoltLab Burning Board 2
// ************************************************************************************//
// * Copyright (c) 2001-2004 WoltLab GmbH
// * Web http://www.woltlab.de/
// * License http://www.woltlab.de/products/burning_board/license_en.php
// * http://www.woltlab.de/products/burning_board/license.php
// ************************************************************************************//
// * WoltLab Burning Board 2 is NOT free software.
// * You may not redistribute this package or any of it's files.
// ************************************************************************************//
// * $Date: 2004-10-20 13:24:57 +0200 (Wed, 20 Oct 2004) $
// * $Author: Burntime $
// * $Rev: 1453 $
// ************************************************************************************//
$filename = 'wiw.php';
require('./global.php');
require('./includes/ip_land_function.inc.php');
if (!$wbbuserdata['can_view_wiw']) access_error();
require('./acp/lib/class_useronline.php');
require('./acp/lib/class_wiw.php');
$lang->load('WIW');
// Define
if (!isset($_GET['sortby'])) $_GET['sortby'] = '';
if (!isset($_GET['order'])) $_GET['order'] = '';
$sel_sortby['username'] = '';
$sel_sortby['ipaddress'] = '';
$sel_sortby['useragent'] = '';
$sel_sortby['lastactivity'] = '';
$sel_sortby['request_uri'] = '';
$sel_order['ASC'] = '';
$sel_order['DESC'] = '';
$useronline = '';
switch ($_GET['sortby']) {
case "username": break;
case "ipaddress": break;
case "useragent": break;
case "lastactivity": break;
case "request_uri": break;
default: $_GET['sortby'] = "lastactivity"; break;
}
switch ($_GET['order']) {
case "ASC": break;
case "DESC": break;
default: $_GET['order'] = "DESC"; break;
}
$sel_sortby[$_GET['sortby']] = " selected=\"selected\"";
$sel_order[$_GET['order']] = " selected=\"selected\"";
$wiw = &new WIW($wbbuserdata['a_can_view_ghosts'], $wbbuserdata['buddylist']);
$boardids = '';
$threadids = '';
$result = $db->query("SELECT s.*, u.username, u.invisible, u.useronlinegroupid,g.useronlinemarking, 0 AS script 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)."'".(($wiw_showonlyusers == 1) ? (" AND s.userid<>0") : ("")).(($wbbuserdata['ignorelist']) ? (" AND s.userid NOT IN (".str_replace(" ", ",", $wbbuserdata['ignorelist']).")") : (""))." ORDER BY ".$_GET['sortby']." ".$_GET['order']."");
while ($row = $db->fetch_array($result)) $wiw->insert($row);
$wiw->cache();
$guestcount = 1;
while ($row = $wiw->get()) {
if (!$row['userid']) {
$username = $lang->get("LANG_WIW_GUEST", array('$guestcount' => $guestcount));
$guestcount++;
}
else $username = $wiw->parse($row['userid'], htmlconverter($row['username']), $row['useronlinemarking'], $row['invisible']);
$time = formatdate($wbbuserdata['timeformat'], $row['lastactivity']);
if ($wbbuserdata['a_can_view_ipaddress'] == 1) {
$ipadress = htmlconverter($row['ipaddress']);
$browser = $row['useragent'];
if (wbb_strlen($browser) > 50) $browser = wbb_substr($browser, 0, 50)."...";
$browser = htmlconverter($browser);
$row['useragent'] = htmlconverter($row['useragent']);
}
$ip_land1 = htmlconverter($row['ipaddress']);
$ip_land = where_are_you_from(TRUE, FALSE, $ip_land1);
$location = $row['location'];
eval("\$useronline .= \"".$tpl->get("wiw_userbit")."\";");
}
eval("\$wiw_sortby = \"".$tpl->get("wiw_sortby")."\";");
eval("\$wiw_order = \"".$tpl->get("wiw_order")."\";");
$lang->items['LANG_WIW_SORTOPTIONS'] = $lang->get("LANG_WIW_SORTOPTIONS", array('$wiw_sortby' => $wiw_sortby, '$wiw_order' => $wiw_order));
eval("\$tpl->output(\"".$tpl->get("wiw")."\");");
?> |
|
jetzt sollte es wieder funzen bei dir
__________________
Ich bin nicht gestört - ich bin verhaltensoriginell
|
|
08.02.2006 12:23 |
|
|
|
HUHU
Jetzt funtz des wie ne eins
wie ich das nun fabriziert habe das es doppelt ist weiß ich nicht
LOL aber als nächstes werd ich denn Speed Report einbauen
da werde ich doch hoffentlich gleich alles richtig machen
Und wenn nicht *g* komme ich wieder mit tausend fragen
Aber trozdem vielen vielen lieben dank
mfg
Alete
|
|
08.02.2006 14:21 |
|
|
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.760.781
Nächster Level: 266.777.854
|
|
|
08.02.2006 18:58 |
|
|
|
Hm, irgendwie fruchtet das nicht, habe hoffentlich alles richtig gemacht. Bastel schon recht lange, denke aber mal, das ich den Wald vor lauter Bäume nicht sehe.
Datenbank ist auch installiert und Adressen eingefügt, gab auch keine fehler.
Es ist so, wie vorher, ip adressen werden angezeigt. Jedoch nicht die Fahnen.
wiw_userbit
php: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
|
<tr align="left">
<td class="tableb"><span class="smallfont">$username</span></td>
<if($wbbuserdata['a_can_view_ipaddress']==1)>
<then>
<td class="tablea"><span class="smallfont">$ipadress $ip_land</span></td>
<td class="tableb"><span class="smallfont" title="$row[useragent]">$browser</span></td>
</then>
<else>
<td class="tablea" align="center"><span class="smallfont">$ip_land</span></td>
</else>
</if>
<td class="tablea"><span class="smallfont">$time</span></td>
<td class="tableb"><span class="smallfont">$location</span></td>
</tr> |
|
Wiw.Tpl
php: |
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:
|
<?xml version="1.0" encoding="{$lang->items['LANG_GLOBAL_ENCODING']}"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{$lang->items['LANG_GLOBAL_DIRECTION']}" lang="{$lang->items['LANG_GLOBAL_LANGCODE']}" xml:lang="{$lang->items['LANG_GLOBAL_LANGCODE']}">
<head>
<title>$master_board_name | {$lang->items['LANG_WIW_TITLE']}</title>
$headinclude
<if($wiw_autorefresh > 0)><then><meta http-equiv="refresh" content="$wiw_autorefresh; url=wiw.php?sortby=$_GET[sortby]&order=$_GET[order]{$SID_ARG_2ND_UN}" /></then></if>
</head>
<body>
$header
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
<tr>
<td class="tablea"><table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr class="tablea_fc">
<td align="left"><span class="smallfont"><b><a href="index.php{$SID_ARG_1ST}">$master_board_name</a> » {$lang->items['LANG_WIW_TITLE']}</b></span></td>
<td align="right"><span class="smallfont"><b>$usercbar</b></span></td>
</tr>
</table></td>
</tr>
</table><br />
<form method="get" action="wiw.php">
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
<tr>
<td class="tabletitle"><span class="smallfont"><b>{$lang->items['LANG_WIW_USERNAME']}</b></span></td>
<if($wbbuserdata['a_can_view_ipaddress']==1)>
<then>
<td class="tabletitle" nowrap="nowrap"><span class="smallfont"><b>{$lang->items['LANG_WIW_IPADDRESS']}</b></span></td>
<td class="tabletitle"><span class="smallfont"><b>{$lang->items['LANG_WIW_USERAGENT']}</b></span></td>
</then>
<else>
<td class="tabletitle" nowrap="nowrap"><span class="smallfont"><b>{$lang->items['LANG_WIW_IPADDRESS_LAND']}</b></span></td>
</else>
</if>
<td class="tabletitle" nowrap="nowrap"><span class="smallfont"><b>{$lang->items['LANG_WIW_LASTACTIVITY']}</b></span></td>
<td class="tabletitle"><span class="smallfont"><b>{$lang->items['LANG_WIW_REQUEST_URI']}</b></span></td>
</tr>
<if($useronline_bit!="")><then>
<tr>
<td class="tabletitle" colspan="<if($wbbuserdata['a_can_view_ipaddress']==1)><then>6</then><else>4</else></if>"><span class="smallfont"><b>$onlineuser User online</b></span></td>
</tr>
$useronline_bit
</then></if>
<if($guestonline_bit!="")><then>
<tr>
<td class="tabletitle" colspan="<if($wbbuserdata['a_can_view_ipaddress']==1)><then>6</then><else>4</else></if>"><span class="smallfont"><b>$onlineguest $lang_guest_title online</b></span></td>
</tr>
$guestonline_bit
</then></if>
<if($botonline_bit!="")><then>
<tr>
<td class="tabletitle" colspan="<if($wbbuserdata['a_can_view_ipaddress']==1)><then>6</then><else>4</else></if>"><span class="smallfont"><b>$onlinebots $lang_bot_title online</b></span></td>
</tr>
$botonline_bit
</then></if>
<tr>
<td class="tablea" align="center" colspan="<if($wbbuserdata['a_can_view_ipaddress']==1)><then>5</then><else>3</else></if>"><span class="normalfont">{$lang->items['LANG_WIW_SORTOPTIONS']}
<input src="{$style['imagefolder']}/go.gif" type="image" />
<input type="hidden" name="sid" value="$session[hash]" />
</span></td>
</tr>
</table>
</form>
$footer
</body>
</html>
|
|
wiw.PhP
php: |
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:
|
<?php
// ************************************************************************************//
// * WoltLab Burning Board 2
// ************************************************************************************//
// * Copyright (c) 2001-2004 WoltLab GmbH
// * Web http://www.woltlab.de/
// * License http://www.woltlab.de/products/burning_board/license_en.php
// * http://www.woltlab.de/products/burning_board/license.php
// ************************************************************************************//
// * WoltLab Burning Board 2 is NOT free software.
// * You may not redistribute this package or any of it's files.
// ************************************************************************************//
// * $Date: 2004-10-20 13:24:57 +0200 (Wed, 20 Oct 2004) $
// * $Author: Burntime $
// * $Rev: 1453 $
// ************************************************************************************//
$filename = 'wiw.php';
require('./global.php');
require('./includes/ip_land_function.inc.php');
if (!$wbbuserdata['can_view_wiw']) access_error();
require('./acp/lib/class_useronline.php');
require('./acp/lib/class_wiw.php');
$lang->load('WIW');
// Define
if (!isset($_GET['sortby'])) $_GET['sortby'] = '';
if (!isset($_GET['order'])) $_GET['order'] = '';
$sel_sortby['username'] = '';
$sel_sortby['ipaddress'] = '';
$sel_sortby['useragent'] = '';
$sel_sortby['lastactivity'] = '';
$sel_sortby['request_uri'] = '';
$sel_order['ASC'] = '';
$sel_order['DESC'] = '';
$useronline = '';
switch ($_GET['sortby']) {
case "username": break;
case "ipaddress": break;
case "useragent": break;
case "lastactivity": break;
case "request_uri": break;
default: $_GET['sortby'] = "lastactivity"; break;
}
switch ($_GET['order']) {
case "ASC": break;
case "DESC": break;
default: $_GET['order'] = "DESC"; break;
}
$sel_sortby[$_GET['sortby']] = " selected=\"selected\"";
$sel_order[$_GET['order']] = " selected=\"selected\"";
$wiw = &new WIW($wbbuserdata['a_can_view_ghosts'], $wbbuserdata['buddylist']);
$boardids = '';
$threadids = '';
$result_bots = $db->query("SELECT * FROM bb".$n."_wiwbots");
while ($row_bots = $db->fetch_array($result_bots)) {
$onlinebots_mark[] = $row_bots['botmark'];
$onlinebots_name[] = $row_bots['botname'];
$onlinebots_link[] = $row_bots['botlink'];
}
$result = $db->query("SELECT s.*, u.username, u.invisible, u.useronlinegroupid,g.useronlinemarking, 0 AS script 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)."'".(($wiw_showonlyusers == 1) ? (" AND s.userid<>0") : ("")).(($wbbuserdata['ignorelist']) ? (" AND s.userid NOT IN (".str_replace(" ", ",", $wbbuserdata['ignorelist']).")") : (""))." ORDER BY ".$_GET['sortby']." ".$_GET['order']."");
while ($row = $db->fetch_array($result)) $wiw->insert($row);
$wiw->cache();
$guestcount = 1;
$bot_yn=0;
$guest_yn=0;
while ($row = $wiw->get()) {
// Bot-Erkennung Anfang
if (!$row['userid']) {
for($i=0;$i<count($onlinebots_mark);$i++) {
if (strchr($row['useragent'], $onlinebots_mark[$i])) {
$botcount++;
$time = formatdate($wbbuserdata['timeformat'], $row['lastactivity']);
if($onlinebots_link[$i]=='') {
$username = $onlinebots_name[$i];
} else {
$username = "<a href=\"$onlinebots_link[$i]\" target=\"_blank\">$onlinebots_name[$i]</a>";
}
if ($wbbuserdata['a_can_view_ipaddress'] == 1) {
$ipadress = htmlconverter($row['ipaddress']);
$browser = $row['useragent'];
if (wbb_strlen($browser) > 150) $browser = wbb_substr($browser, 0, 150)."...";
$browser = htmlconverter($browser);
}
$ip_land1 = htmlconverter($row['ipaddress']);
$ip_land = where_are_you_from(TRUE, FALSE, $ip_land1);
$location = $row['location'];
$onlinebots++;
eval("\$botonline_bit .= \"".$tpl->get("wiw_userbit")."\";");
$bot_yn = 1;
}
}
}
// Gast-Erkennung Anfang
if($bot_yn==0) {
if(!$row['userid']) {
$username = $lang->get("LANG_WIW_GUEST", array('$guestcount' => $guestcount));
$guestcount++;
$time = formatdate($wbbuserdata['timeformat'], $row['lastactivity']);
if ($wbbuserdata['a_can_view_ipaddress'] == 1) {
$ipadress = htmlconverter($row['ipaddress']);
$browser = $row['useragent'];
if (wbb_strlen($browser) > 150) $browser = wbb_substr($browser, 0, 150)."...";
$browser = htmlconverter($browser);
}
$location = $row['location'];
$onlineguest++;
eval("\$guestonline_bit .= \"".$tpl->get("wiw_userbit")."\";");
$guest_yn=1;
}
}
// User-Erkennung Anfang
if($bot_yn==0 && $guest_yn==0) {
$username = $wiw->parse($row['userid'], htmlconverter($row['username']), $row['useronlinemarking'], $row['invisible']);
$time = formatdate($wbbuserdata['timeformat'], $row['lastactivity']);
if ($wbbuserdata['a_can_view_ipaddress'] == 1) {
$ipadress = htmlconverter($row['ipaddress']);
$browser = $row['useragent'];
if (wbb_strlen($browser) > 50) $browser = wbb_substr($browser, 0, 50)."...";
$browser = htmlconverter($browser);
}
$location = $row['location'];
$onlineuser++;
eval("\$useronline_bit .= \"".$tpl->get("wiw_userbit")."\";");
}
$bot_yn=0;
$guest_yn=0;
}
eval("\$wiw_sortby = \"".$tpl->get("wiw_sortby")."\";");
eval("\$wiw_order = \"".$tpl->get("wiw_order")."\";");
$lang->items['LANG_WIW_SORTOPTIONS'] = $lang->get("LANG_WIW_SORTOPTIONS", array('$wiw_sortby' => $wiw_sortby, '$wiw_order' => $wiw_order));
if($onlineguest==1) $lang_guest_title = $lang->items['LANG_WIW_GUEST_ONE'];
if($onlineguest>1) $lang_guest_title = $lang->items['LANG_WIW_GUEST_MORE'];
if($onlinebots==1) $lang_bot_title = $lang->items['LANG_WIW_BOT_ONE'];
if($onlinebots>1) $lang_bot_title = $lang->items['LANG_WIW_BOT_MORE'];
eval("\$tpl->output(\"".$tpl->get("wiw")."\");");
?>
|
|
|
|
24.04.2006 23:25 |
|
|
|
Ist soweit alles richtig.
Aber du hast mein wiw-plus eingebaut.
Dort musst du vor jedem $location die beiden codezeilen mit $ip_land1 und $ip_land einfügen.
Also bei den Bots (da hast du es im Moment), bei den Gästen und bei den Usern.
Greetz
Günni
__________________
|
|
24.04.2006 23:31 |
|
|
|
Jaaaaa, rechtherzlichen dank. Freu. Nun fruchtet es, aber mal ne frage, wo stand das den?
|
|
24.04.2006 23:44 |
|
|
|
wo stand was ?
__________________
|
|
24.04.2006 23:52 |
|
|
|
Das man das bei allen drei einfügen muss, naja, ist ja nu auch egal. Danke nochmal
|
|
25.04.2006 17:07 |
|
|
|
|
|
|