Skip to content

Commit cefae02

Browse files
authored
feat(web): Display all SteamID format (#12)
1 parent 4f48136 commit cefae02

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

web/pages/playerinfo_general.php

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<table class="data-table">
4848
<tr class="data-table-head">
4949
<td style="vertical-align:top;">Player Profile<br /><br /></td>
50-
<td style="text-align:center; vertical-align:middle;" rowspan="7" id="player_avatar">
50+
<td style="text-align:center; vertical-align:middle;" rowspan="9" id="player_avatar">
5151
<?php
5252
$db->query
5353
("
@@ -125,6 +125,30 @@
125125
?>
126126
</td>
127127
</tr>
128+
<tr class="bg1">
129+
<td>
130+
<?php
131+
if (!preg_match('/^BOT/i', $uqid)) {
132+
$steam3_id = '[U:' . (substr($uqid, 0, 1) + substr($uqid, 2) * 2) . ']';
133+
echo "Steam3: <a href=\"http://steamcommunity.com/profiles/$coid\" target=\"_blank\">$steam3_id</a>";
134+
} else {
135+
echo "Steam3: (BOT)";
136+
}
137+
?>
138+
</td>
139+
</tr>
140+
<tr class="bg2">
141+
<td>
142+
<?php
143+
if (!preg_match('/^BOT/i', $uqid)) {
144+
echo "Steam64: <a href=\"http://steamcommunity.com/profiles/$coid\" target=\"_blank\">$coid</a>";
145+
} else {
146+
echo "Steam64: (BOT)";
147+
}
148+
?>
149+
</td>
150+
</tr>
151+
</tr>
128152
<tr class="bg1">
129153
<td>Status: <strong><?php echo $status; ?></strong></td>
130154
</tr>

0 commit comments

Comments
 (0)