" . (time() - 300) . ""); while( $onlinelist = mysql_fetch_array($r_onlinelist) ) { if( $onlinelist['username'] ) { if( !in_array($onlinelist['userid'], $a_doubleuser) ) { $a_doubleuser[] = $onlinelist['userid']; $onlinelistcount++; if( $onlinelist['userinvisible'] && !$P->has_permission( P_CANSEEINVIS ) ) { $guests++; } else { $registered[] = ''. parse_code($onlinelist['username']).''.($onlinelist['userinvisible'] ? ' (Unsichtbar)' : ''); } } } else { $onlinelistcount++; $guests++; } } if( $onlinelistcount == 1 ) $useronline .= 'Es ist zur Zeit ein Benutzer onlinelist:
'; else $useronline .= 'Es sind zur Zeit '.$onlinelistcount.' Benutzer onlinelist:
'; $useronline .= @implode(', ', $registered); if( $guests > 0 ) { if( $guests > 1 ) { if( count($registered) > 0 ) $useronline .= " sowie $guests Gäste"; else $useronline .= "$guests Gäste"; } else { if( count($registered) > 0 ) $useronline .= " sowie ein Gast"; else $useronline .= "Ein Gast"; } } $r_online = thwb_query("SELECT DISTINCT online.onlineip, online.userid, online.onlinetime, online.userdoes, user.username, user.userinvisible, user.userdoes, user.userdoesfid FROM ".$pref."online AS online LEFT JOIN ".$pref."user AS user ON online.userid=user.userid WHERE online.onlinetime > " . (time() - 300) . ""); $a_doubleuser = array(); while( $online = mysql_fetch_array($r_online) ) { if($online['username']) { if( !in_array($online['userid'], $a_doubleuser) ) { $a_doubleuser[] = $online['userid']; if( !$online['userinvisible'] || ($online['userinvisible'] && $P->has_permission( P_CANSEEINVIS ) ) ) { $online['username_hacked'] = str_replace($searcharray, $replacearray, $online['username']); $online['username_hacked'] = preg_replace('/[^\w\d_-]+/', '-', $online['username_hacked']); $wduser = ''.parse_code($online['username']).''.($online['userinvisible'] ? ' (Unsichtbar)' : ''); if( $g_user['userisadmin'] ) { $wduser .= $style[smallfont].' [Admin: IP = '.$online['onlineip'].']'.$style[smallfontend]; } $P->set_boardid($online['userdoesfid']); if ($online['userdoesfid'] != NULL && !$P->has_permission( P_VIEW ) /*has_access($board['boardid'], &$a_groupboard)*/ ) { $wdoing = 'Liest/Bearbeitet einen privaten Thread'; } else $wdoing = $online['userdoes']; $lastrefresh = form_date($online['onlinetime']); eval($Twdrow->GetTemplate("WDROW")); } } } } $r_onlinehack = thwb_query("SELECT DISTINCT online.onlineip, online.userid, online.userdoes, online.onlinetime FROM ".$pref."online AS online WHERE onlinetime > " . (time() - 300) . ""); $a_doublehack = array(); while( $onlinehack = mysql_fetch_array($r_onlinehack) ) { if ($onlinehack['userdoes']!="") if( $onlinehack['onlineip'] ) { if( !in_array($onlinehack['onlineip'], $a_doublehack) ) { $a_doublehack[] = $onlinehack['onlineip']; $wduser = 'Gast'; //if ( $onlinehack['onlineid']; $wdoing = $onlinehack['userdoes']; { if( $g_user['userisadmin'] ) { $wduser .= $style[smallfont].' [Admin: IP = '.$onlinehack['onlineip'].']'.$style[smallfontend]; } } } $lastrefresh = form_date($onlinehack['onlinetime']); eval($Twdrow->GetTemplate("WDROW")); } } $navpath .= 'Wer ist online?'; eval($Twd->GetTemplate("CONTENT")); eval($Tframe->GetTemplate()); ?>