Skip to content

Commit 61ca50f

Browse files
authored
feat: Hide players city for privacy (#10)
1 parent d55174d commit 61ca50f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

web/pages/playerinfo_general.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,10 @@
104104
if ($playerdata['country'])
105105
{
106106
echo 'Location: ';
107-
if ($playerdata['city']) {
108-
echo htmlspecialchars($playerdata['city'], ENT_COMPAT) . ', ';
109-
}
107+
// Disabled for privacy reason
108+
// if ($playerdata['city']) {
109+
// echo htmlspecialchars($playerdata['city'], ENT_COMPAT) . ', ';
110+
//}
110111
echo '<a href="'.$g_options['scripturl'].'?mode=countryclansinfo&amp;flag='.$playerdata['flag']."&amp;game=$game\">" . $playerdata['country'] . '</a>';
111112
}
112113
else

0 commit comments

Comments
 (0)