Jeremy D commited on 2022-05-25 16:47:31
Showing 1 changed files, with 17 additions and 11 deletions.
... | ... |
@@ -37,28 +37,34 @@ function template_profile_tracksfs() |
37 | 37 |
echo ' |
38 | 38 |
<tr class="windowbg"> |
39 | 39 |
<td title="sfs_check_', $id_check, '"> |
40 |
- ', $txt['sfs_check_' . $id_check], ' |
|
40 |
+ ', $txt['sfs_check_' . $id_check]; |
|
41 |
+ |
|
42 |
+ // Show the IP we tested. |
|
43 |
+ if ($id_check === 'ip') |
|
44 |
+ echo ' <span class="smalltext">(', $check['value'], ')</span>'; |
|
45 |
+ |
|
46 |
+ echo ' |
|
41 | 47 |
</td> |
42 | 48 |
<td class="smalltext"> |
43 |
- ', (!empty($check->appears) ? $txt['yes'] : $txt['no']); |
|
49 |
+ ', (!empty($check['appears']) ? $txt['yes'] : $txt['no']); |
|
44 | 50 |
|
45 | 51 |
// Some checks will show the last seen, convert it and show it. |
46 |
- if (!empty($check->lastseen)) |
|
47 |
- echo '<br>' . $txt['sfs_last_seen'] . ': ' . timeformat(strtotime($check->lastseen)); |
|
52 |
+ if (!empty($check['lastseen'])) |
|
53 |
+ echo '<br>' . $txt['sfs_last_seen'] . ': ' . timeformat(strtotime($check['lastseen'])); |
|
48 | 54 |
|
49 |
- if (!empty($check->confidence)) |
|
50 |
- echo '<br>' . $txt['sfs_confidence'] . ': ' . $check->confidence; |
|
55 |
+ if (!empty($check['confidence'])) |
|
56 |
+ echo '<br>' . $txt['sfs_confidence'] . ': ' . $check['confidence']; |
|
51 | 57 |
|
52 |
- if (!empty($check->frequency)) |
|
53 |
- echo '<br>' . $txt['sfs_frequency'] . ': ' . $check->frequency; |
|
58 |
+ if (!empty($check['frequency'])) |
|
59 |
+ echo '<br>' . $txt['sfs_frequency'] . ': ' . $check['frequency']; |
|
54 | 60 |
|
55 | 61 |
// IP address may be normalized |
56 |
- if (!empty($check->torexit)) |
|
62 |
+ if (!empty($check['torexit'])) |
|
57 | 63 |
echo '<br>' . $txt['sfs_torexit']; |
58 | 64 |
|
59 | 65 |
// IP address may be normalized |
60 |
- if (!empty($check->normalized) && !empty($check->asn)) |
|
61 |
- echo '<br><a href="', $scripturl, '?action=profile;area=tracking;sa=ip;searchip=' . urlencode($check->normalized) . '">', $txt['trackIP'], '</a>'; |
|
66 |
+ if (!empty($check['asn'])) |
|
67 |
+ echo '<br><a href="', $scripturl, '?action=profile;area=tracking;sa=ip;searchip=' . urlencode(str_replace('::*', ':*', !empty($check['normalized']) ? $check['normalized'] . '*' : $check['value'])) . '">', $txt['trackIP'], ' ', (!empty($check['normalized']) ? $check['normalized'] . '*' : $check['value']), '</a>'; |
|
62 | 68 |
|
63 | 69 |
echo ' |
64 | 70 |
</td> |
65 | 71 |