Passt zwar jetzt nur zum Teil zum Thema aber seit mir nicht böse bitte.
Was ich mir auch noch gut vorstellen könnte ist das man im
Adminbereich auf der Mainseite auch noch eine Zeile machen könnte wo man dann
wie im Forum dann sieht wer alles so gerade Online ist und dazu das noch mit
den Bots und das man noch sagen könnte zum Beispiel wenn der die Farbe Blau hat
dann weiss man der ist auf der Normalen Webseite und wenn er die Farbe Rot hat
befindet er sich gerade im Adminbereich und bewegt sich da fort.
Ich weiss das ist jetzt ein extrem langer Satz aber mir ist das in diesem Moment gerade nicht anders einfgefallen.
LG Zonk
Was ich mir auch noch gut vorstellen könnte ist das man im
Adminbereich auf der Mainseite auch noch eine Zeile machen könnte wo man dann
wie im Forum dann sieht wer alles so gerade Online ist und dazu das noch mit
den Bots und das man noch sagen könnte zum Beispiel wenn der die Farbe Blau hat
dann weiss man der ist auf der Normalen Webseite und wenn er die Farbe Rot hat
befindet er sich gerade im Adminbereich und bewegt sich da fort.
Ich weiss das ist jetzt ein extrem langer Satz aber mir ist das in diesem Moment gerade nicht anders einfgefallen.
LG Zonk
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Zonk« (31. Dezember 2007, 16:39)
so fertig..
PHPKit 1.6.03 | 1.6.1 Aktive Robots im Status (Navigation/Forum)
Hat jemand noch den "alten" Code? Wo die Bots nur im Forum Fuß angezeigt werden.
Ich würde ganz gerne den neuen einbauen, weiß aber nicht mehr was ich alles beim "alten" geändert habe.





Spät, aber es kommt
|
|
PHP-Quelltext |
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 |
<?php
if(!function_exists("forum_func_bots")) {
function forum_func_bots($func_bots_ip='',$func_bots_browser='') {
if(preg_match("/^66\.249\.[0-9]{1,3}\.[0-9]{1,3}$/i", $func_bots_ip)) { // Googlebot
if((preg_match("/^Mediapartners-Google\/[0-9](\.[0-9])*/i", $func_bots_browser) AND preg_match("/\(\+http:\/\/www\.googlebot\.com\/bot\.html\)$/i", $func_bots_browser)) OR (preg_match("/^Googlebot\/[0-9](\.[0-9])*/i", $func_bots_browser) AND preg_match("/\(\+http:\/\/www\.google\.com\/bot\.html\)$/i", $func_bots_browser)) OR (preg_match("/Googlebot\/[0-9](\.[0-9])*/i", $func_bots_browser) AND preg_match("/http:\/\/www\.google\.com\/bot\.html/i", $func_bots_browser))) {
$robot = "Googlebot"; // Googlebot
} elseif(preg_match("/^Mediapartners-Google\/[0-9](\.[0-9])*$/i", $func_bots_browser)) {
$robot = "Google AdSense"; // Google Adsense
} else {
$robot = "Google"; // Google
}
} elseif(preg_match("/Yahoo! Slurp/i", $func_bots_browser)) { // Yahoo! Slurp
$robot = "Yahoo! Slurp";
} elseif(preg_match("/^64\.71\.144\.[0-9]{1,3}$/i", $func_bots_ip)) { // JetBot
$robot = "JetBot";
} elseif(preg_match("/WebSpider/i", $func_bots_browser)) { // WebSpider
$robot = "WebSpider";
} elseif(preg_match("/^wwwster\/[0-9](\.[0-9])/i", $func_bots_browser)) { // wwwster
$robot = "wwwster";
} elseif(preg_match("/Turing Machine/i", $func_bots_browser)) { // Turing Machine
$robot = "Turing Machine";
} elseif(preg_match("/ZyBorg\/[0-9](\.[0-9])/i", $func_bots_browser)) { // Looksmart
$robot = "Looksmart";
} elseif(preg_match("/BecomeBot\/[0-9](\.[0-9]{1,2})/i", $func_bots_browser)) { // Become
$robot = "Become";
} elseif(preg_match("/TurnitinBot\/[0-9](\.[0-9]{1,2})/i", $func_bots_browser)) { // TurnitinBot
$robot = "TurnitinBot";
} elseif(preg_match("/ConveraCrawler\/[0-9](\.[0-9]{1,2})/i", $func_bots_browser)) { // ConveraCrawler
$robot = "ConveraCrawler";
} elseif(preg_match("/Gigabot\/[0-9](\.[0-9])/i", $func_bots_browser)) { // Gigabot
$robot = "Gigabot";
} elseif(preg_match("/msnbot\/[0-9](\.[0-9])/i", $func_bots_browser) OR preg_match("/msnbot-media\/[0-9](\.[0-9])/i", $func_bots_browser)) { // msnbot
$robot = "msnbot";
} elseif(preg_match("/arachmo/i", $func_bots_browser)) { // Arachmo
$robot = "Arachmo";
} elseif(preg_match("/Ask/i", $func_bots_browser)) { // Ask
$robot = "Ask";
} elseif(preg_match("/whatUseek_winona\/[0-9](\.[0-9])/i", $func_bots_browser)) { // whatUseek
$robot = "whatUseek";
} elseif(preg_match("/exabot\.com/i", $func_bots_browser) OR preg_match("/NG\/[0-9](\.[0-9])/i", $func_bots_browser)) { // exalead
$robot = "exalead";
} elseif(preg_match("/snap\.com/i", $func_bots_browser)) { // snap.com
$robot = "SNAP";
} elseif(preg_match("/MJ12bot/i", $func_bots_browser)) { // Majestic-12
$robot = "Majestic-12";
} elseif(preg_match("/e-SocietyRobot/i", $func_bots_browser)) { // e-SocietyRobot
$robot = "e-SocietyRobot";
} elseif(preg_match("/Accoona-AI-Agent/i", $func_bots_browser)) { // Accoona-AI-Agent
$robot = "Accoona-AI-Agent";
} elseif(preg_match("/webbot/i", $func_bots_browser)) { // WebBot
$robot = "WebBot";
} elseif(preg_match("/voyager\/[0-9](\.[0-9])/i", $func_bots_browser)) { // Kosmix
$robot = "Kosmix";
} elseif(preg_match("/envolk\/[0-9](\.[0-9])/i", $func_bots_browser)) { // Envolk
$robot = "Envolk";
} elseif(preg_match("/ichiro\/[0-9](\.[0-9])/i", $func_bots_browser)) { // ichiro
$robot = "ichiro";
} elseif(preg_match("/libwww-perl\/[0-9](\.[0-9]*)/i", $func_bots_browser)) { // Perl Script
$robot = "Perl Script";
} elseif(preg_match("/Microsoft URL Control/i", $func_bots_browser)) { // Microsoft URL Control
$robot = "Microsoft URL Control";
} else {
$robot = "";
}
return $robot;
}
}
$phpkit_status=phpkitstatus();
$usercounter[0]=$phpkit_status['user_counter'];
if (is_array($phpkit_status['online_user'])) {
unset($online_user);
$online_usercount=count($phpkit_status['online_user']);
foreach($phpkit_status['online_user'] as $userinfo) {
if ($online_user) $online_user.=', ';
else eval ("\$online_user = \"".getTemplate("forum/fuss_onlineuser")."\";");
eval ("\$online_user.= \"".getTemplate("member_showprofil_textlink","small")."\";");
}
}
else $online_usercount=$lang['no'];
//---> Gäste by Dooki inkl. Robots
$online_guest='';
if ($phpkit_status['online_guests']>0) {
if ($phpkit_status['online_guests']==1) {
$online_guest.=$phpkit_status['online_guests']." ".$lang['guest'].".";
} else {
$online_guest.=$phpkit_status['online_guests']." ".$lang['guests'].".";
}
$forum_bots=0;
$forumstat_bot = array();
$forumstat_robot = array();
if(is_array($phpkit_status['guests_hash'])){
foreach($phpkit_status['guests_hash'] as $forumstats_guestinfo) {
if(forum_func_bots($forumstats_guestinfo['session_ip'],$forumstats_guestinfo['session_browser']) != "") {
$forum_bots++;
$forumstat_bot[] = forum_func_bots($forumstats_guestinfo['session_ip'],$forumstats_guestinfo['session_browser']);
}
}
if(is_array($forumstat_bot)) {
sort($forumstat_bot);
foreach($forumstat_bot as $forumstat_robots) {
$forumstat_robot[$forumstat_robots] = intval($forumstat_robot[$forumstat_robots])+1;
}
foreach($forumstat_robot as $robot_key => $robot_value) {
if(isset($online_guest_bots)) $online_guest_bots .= ", ".$robot_key."(".$robot_value.")";
else $online_guest_bots .= $robot_key."(".$robot_value.")";
}
}
}
} else {
$online_guest.=$lang['no']." ".$lang['guests'].".";
}
$online_guest_bots = '<b>Aktive Robots:</b> '.$online_guest_bots;
//---> Gäste by Dooki inkl. Robots
if (is_array($phpkit_status['bd_user'])) {
unset($bd_user);
foreach($phpkit_status['bd_user'] as $status) {
unset($age);
$age=getAge($status['user_bd_day'],$status['user_bd_month'],$status['user_bd_year']);
if ($bd_user) $bd_user.=', ';
eval ("\$bd_user.= \"".getTemplate("forum/fuss_bduser")."\";");
}
eval ("\$fuss_adds_inner= \"".getTemplate("forum/fuss_adds_bduser")."\";");
}
$mv_time=formattime($config['site_mv_time']);
$mv_count=$config['site_mv_count'];
$userinfo=$phpkit_status['newest_user'];
eval ("\$new_user= \"".getTemplate("member_showprofil_textlink","small")."\";");
if ($path=="forum/search.php") $jump_search='selected';
elseif ($path=="forum/main.php") $jump_main='selected';
unset($forum_jump);
if (is_array($cat_hash=$FORUM->gettree())) {
foreach ($cat_hash as $catinfo) {
$forum_jump.='<option value="'.$catinfo['forumcat_id'].'"';
if ($catid==$catinfo['forumcat_id']) $forum_jump.=' selected';
$forum_jump.='>';
if ($catinfo['level']>0) for ($i=0; $i<$catinfo['level']; $i++) $forum_jump.='--';
$forum_jump.=htmlentities($catinfo['forumcat_name']).'</option>';
}
}
if ($path=="forum/main.php") eval ("\$fuss_adds_outer= \"".getTemplate("forum/fuss_adds_main")."\";");
if ($path=="forum/showcat.php") {
if ($showcat_threads!="") eval ("\$fuss_adds_outer= \"".getTemplate("forum/fuss_adds_subcat")."\";");
elseif ($showcat_subcat!='' && $showcat_threads=='') eval ("\$fuss_adds_outer= \"".getTemplate("forum/fuss_adds_main")."\";");
}
if ($path=="forum/searchresult.php" && $rshow==1) eval ("\$fuss_adds_outer= \"".getTemplate("forum/fuss_adds_subcat")."\";");
if ($config['forum_standalone']==1) eval ("\$navigation_bottom= \"".getTemplate("forum/fuss")."\";");
else eval ("\$site_body.= \"".getTemplate("forum/fuss")."\";");
?>
|





ist gerade angekommen
Hallo,Benutzer & Gäste Online
Dooki und 5 Gäste.
Aktive Robots: Google(1), Googlebot(1)
so fertig.
PHPKit 1.6.03 | 1.6.1 Aktive Robots im Status (Navigation/Forum)
Das würde mich auch interessieren, nur habe ich phpKit 1.6.4. Bevor ich die Anleitung "Aktive Robots im Status (Navigation/Forum)" ausprobiere eine Frage:
Kann man diese Änderungen auch für das phpKit 1.6.4. nutzen ? Oder gibt es schon Addon dafür ?
Viele Grüsse Miller
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »miller64« (30. Januar 2011, 16:29)
Ähnliche Themen
-
Anregungen und Beschwerden »-
Fehler auf der Seite
(25. Dezember 2007, 14:14)
-
Web | Programmierung »-
Code Parse in Anleitungen !
(30. Dezember 2007, 02:45)
-
alte Versionen [1.6.03|1.6.1|1.6.4] »-
Sicherheit im Kit 1.6.1
(28. Dezember 2007, 23:37)
-
Bug- Securityfix Archiv »-
login/userinfo.php
(14. November 2007, 10:07)



Vielen Dank! 