} catch(Exception $e) { $profile = 'ERROR'; } preg_match_all($pattern, $message, $matches); $steamid2 = $matches[0][1]; $statsinfo[3] = "right"; if ($steamid != $steamid2 && $steamid2 != "") { $matchprofile = SteamId::convertSteamIdToCommunityId($steamid2); $statsinfo[2] = $steamid2; $matchurl = "<a href=http://steamcommunity.com/profiles/$matchprofile target=_blank>$steamid2></a>" . getstatsurl($statsinfo); } $message = str_replace($steamid2, $matchurl, $message); $statsinfo[2] = $steamid; echo "<tr class=\"elements\"> <td width=\"200\" nowrap=\"nowrap\">$servername</td> <td width=\"200\" nowrap=\"nowrap\"><a href=\"http://steamcommunity.com/profiles/$profile\" title=\"$name\" target=_blank>$name" . getstatsurl($statsinfo) . "</a></td> <td width=\"120\" nowrap=\"nowrap\">$logtag</td> <td width=\"100%\">$message</td> <td width=\"120\" nowrap=\"nowrap\">$time</td> </tr>\n"; } echo '</table><div style="clear:both;"></div></div>'; mysql_close(); bottom( $startTime ); ?>
try { $profile = SteamId::convertSteamIdToCommunityId($steamid); } catch(Exception $e) { $profile = 'ERROR'; } // $steamid = $player->getsteamid(); echo "<td><a href=\"http://steamcommunity.com/profiles/$profile\" title=\"$name\" target=_blank>$steamid</a></td>"; $seconds=$player->getconnectTime(); $time=sec2hms($seconds); echo "<td>$time</td>"; echo "<td>{$player->getstate()}</td>"; echo "<td>{$player->getipaddress()}</td>"; $statsinfo[3] = "none"; $steamrep[0] = "steamrep"; $steamrep[1] = "http://www.steamrep.com/profiles"; $steamrep[2] = "$profile"; $steamrep[3] = "none"; $t1 = getstatsurl($statsinfo); $t2 = getstatsurl($steamrep); $tt = "$t1 $t2"; echo "<td>$tt</td>"; echo "</tr>"; } echo "</table>"; ?>