Hacks4wbb by HFW™ (https://hacks4wbb.de/index.php)
- WBB Bereich (https://hacks4wbb.de/board.php?boardid=20)
--- wbb 2 PHP_4/5 (https://hacks4wbb.de/board.php?boardid=393)
------ WBB 2.3 Forum (https://hacks4wbb.de/board.php?boardid=246)
---------- Hilfe & Suche & Archiv wbb2.3 (https://hacks4wbb.de/board.php?boardid=400)
----------- WBB 2.3 Hilfe (https://hacks4wbb.de/board.php?boardid=249)
------------ Bots in der Wiw (https://hacks4wbb.de/thread.php?threadid=23866)


Geschrieben von snoopy2002 am 25.11.2005 um 15:54:

 

Wow, auf das die WIW immer größer wird *grins

Das geht auch ein wenig einfacher.

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:
$wiw->cache();

$guestcount 1;
$botcount 0;
$botnames $bots $botip $botbrowser $botwho = array();
$botsearch = array("msnbot",  "googlebot",  "firefly",     "slurp",     "fireball",     "scooter",     "suchnase",     "abacho");
$botname =   array("MSN-Bot""Google-Bot""FireFly-Bot""Slurp-Bot""Fireball-Bot""Scooter-Bot""Suchnase-Bot""Abacho-Bot");
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']);
    
    $show 1;
    if ($wbbuserdata['a_can_view_ipaddress'] == 1) {
        $ipadress htmlconverter($row['ipaddress']);
        $browser $row['useragent'];
        if (wbb_strlen($browser) > 50$browser wbb_substr($browser050)."...";
        $browser htmlconverter($browser);
        $row['useragent'] = htmlconverter($row['useragent']);
        foreach ($botsearch as $key => $val) {
            if (strpos(strtolower($browser), $val) !== false) {
                $botip[$botcount] = $ipadress;
                $botbrowser[$botcount] = $browser;
                $botnames[$botcount] = $botname[$key];
                $guestcount--;
                $show 0;
                break;
            }
        }
    }
    
    $location $row['location'];
    if ($show) eval("\$useronline .= \"".$tpl->get("wiw_userbit")."\";");
     else {
         $botwho[$botcount] = $location;
         $botcount++;
    }
}

if ($botcount) {
    foreach ($botip as $key => $val) {
        $browser $botbrowser[$key];
        $ipadress $botip[$key];
        $location $botwho[$key];
        $username $botnames[$key];
        eval("\$useronline .= \"".$tpl->get("wiw_userbit")."\";");
    }
}

Es gibt bei mir 2 Array's
botsearch & botname bei neuen Bots müssen nur diese erweitert werden - der Rest bleibt gleich.
Ich würd ja irre werden, wenn ich ca. 600 Zeilen in meine WIW anfügen müsste.



Geschrieben von RoNNoS am 29.11.2005 um 22:10:

 

hat jemand dafür den Code?

Zitat:
genieBot (http://64.5.245.11/faq/faq.html)



Geschrieben von Lau am 01.12.2005 um 21:09:

 

Hi,

Ich hab auch mal Den Google-Bot eingrfügt
aber in wiw.php ist nix
was kann das sein?



Geschrieben von RoNNoS am 06.01.2006 um 11:39:

 

mal ne Frage-Der Gigabot wird nun endlich erkannt aber wenn man auf den rauf klickt wenn er mal da ist will der link so öffen www.meinboard.de/www.gigablast.com Wie bekomme ich es hin das der mein board vorher weg lässt.weil so geht der link ja nicht. ?-(



Geschrieben von alfie am 06.01.2006 um 12:13:

 

Du musst in der Sprachvariablen den Link vollständig eingeben, also mit http://www.


alfie



Geschrieben von RoNNoS am 06.01.2006 um 13:36:

 

Ok, danke. Funktioniert. Darauf hatte ich nicht geachtet. :)

Noch ne Frage. Hat jemand evtl. den Code für den GenieBot?



Geschrieben von RoNNoS am 21.02.2006 um 12:59:

 

Könnte mir nicht mal jemand erklären wie man neue Bots hinzufügt?Zb den hier ichiro/2.0 (http://help.goo.ne.jp/door/crawler.html)

Verstehe das nicht.



Geschrieben von laluna am 16.04.2006 um 15:49:

 

Zitat:


In die wiw.php einfügen:
code:
1:
2:
3:
4:
5:
6:
7:
8:
               /// TheSuBot  (www.thesubot.de)
        if (strchr($row['useragent'], "TheSuBot")) {
        $username = $lang->get("LANG_WIW_BOT_THESUBOT");
                $botonlinecount++;
                $botcount++;
                $boton=true;
                }
                else




Hallo,

ich weiß nicht genau an welcher Stelle in der wiw.php ich die codes der Bots einfügen muß. :-)
Ich habe meine wiw mal angehangen. Kann mir Jemand helfen?



Geschrieben von laluna am 02.06.2006 um 17:15:

 

Hallo!

an welcher Stelle in der wiw muß ich die Bots einfügen???????



Geschrieben von sourceforge am 12.08.2006 um 18:16:

 

füge vor:
code:
1:
2:
3:
4:
5:
6:
	if (!$row['userid']) {
		$username = $lang->get("LANG_WIW_GUEST", array('$guestcount' => $guestcount));
		$guestcount++;
	}

folgendes ein:
[code]/// * Bot - Erkennung und Sprachvariablen Aufruf * ///

/// W3C_Validator (validator.w3.org)
if (strchr($row['useragent'], "W3C_Validator")) {
eval ("\$username = \"".$lang->get4eval("LANG_WIW_BOT_VALIDATOR")."\";");
}
else

/// Slurp-Bot (Diverse Suchmachinen)
if (strchr($row['useragent'], "slurp")) {
eval ("\$username = \"".$lang->get4eval("LANG_WIW_BOT_SLURP")."\";");
}
else

/// MSN-Bot (www.msnsearch.com)
if (strchr($row['useragent'], "msnbot")) {
eval ("\$username = \"".$lang->get4eval("LANG_WIW_BOT_MSN")."\";");
}
else

/// Google-Bot (www.google.de)
if (strchr($row['useragent'], "googlebot")) {
eval ("\$username = \"".$lang->get4eval("LANG_WIW_BOT_GOOGLE")."\";");
}
else

/// Google-Bot/2.1 (www.google.de)
if (strchr($row['useragent'], "Googlebot/2.1")){
eval ("\$username = \"".$lang->get4eval("LANG_WIW_BOT_GOOGLE1.2")."\";");
}
else

/// Mediapartners-Google/2.1 (www.google.de)
if (strchr($row['useragent'], "Mediapartners-Google/2.1")){
eval ("\$username = \"".$lang->get4eval("LANG_WIW_BOT_GOOGLEMEDIA")."\";");
}
else

/// FireFly-Bot (www.fireball.de)
if (strchr($row['useragent'], "firefly")) {
eval ("\$username = \"".$lang->get4eval("LANG_WIW_BOT_FIREFLY")."\";");
}
else

/// Ask Jeeves/Teoma (www.de.ask.com)
if (strchr($row['useragent'], "Ask Jeeves/Teoma")) {
eval ("\$username = \"".$lang->get4eval("LANG_WIW_BOT_ASK")."\";");
}
else

/// Fireball-Bot (www.fireball.de)
if (strchr($row['useragent'], "fireball")) {
eval ("\$username = \"".$lang->get4eval("LANG_WIW_BOT_FIREBALL")."\";");
}
else

/// Scooter-Bot (www.altavista.de)
if (strchr($row['useragent'], "scooter")) {
eval ("\$username = \"".$lang->get4eval("LANG_WIW_BOT_SCOOTER")."\";");
}
else

/// Suchnase-Bot (www.suchnase.de)
if (strchr($row['useragent'], "suchnase")) {
eval ("\$username = \"".$lang->get4eval("LANG_WIW_BOT_SUCHNASE")."\";");
}
else

/// Abacho-Bot (www.abacho.com)
if (strchr($row['useragent'], "abacho")) {
eval ("\$username = \"".$lang->get4eval("LANG_WIW_BOT_ABACHO")."\";");
}
else

/// Fast-Bot (www.fast-search.net)
if (strchr($row['useragent'], "fast")) {
eval ("\$username = \"".$lang->get4eval("LANG_WIW_BOT_FASTSEARCH")."\";");
}
else

/// IA_Archiver-Bot (www.alexa.com)
if (strchr($row['useragent'], "ia_archiver")) {
eval ("\$username = \"".$lang->get4eval("LANG_WIW_BOT_SCOOTER")."\";");
}
else

/// Search-Bot (www.search.ch)
if (strchr($row['useragent'], "search.ch")) {
eval ("\$username = \"".$lang->get4eval("LANG_WIW_BOT_SEARCH")."\";");
}
else

/// SlySearch-Bot (www.slysearch.com)
if (strchr($row['useragent'], "slysearch")) {
eval ("\$username = \"".$lang->get4eval("LANG_WIW_BOT_SLYSEARCH")."\";");
}
else

/// TheSuBot (www.thesubot.de)
if (strchr($row['useragent'], "TheSuBot")) {
$username = $lang->get("LANG_WIW_BOT_THESUBOT");
$botonlinecount++;
$botcount++;
$boton=true;
}
else
/// * ENDE - Bot - Erkennung und Sprachvariablen Aufruf * ///

sollte dann funzen ^^
in der datei wiw.php in deinem hauptordner



Geschrieben von Pommes2 am 02.10.2006 um 22:10:

 

Diesen Thread schließe ich mal.
Ist durch unseren Hack nicht mehr relevant


Forensoftware: Burning Board 2.3.6, entwickelt von WoltLab GmbH