mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 09:49:22 +02:00
Fix ipv6 introduced in latest TFS
This commit is contained in:
parent
ad75499a91
commit
e552bcfe82
@ -697,7 +697,14 @@ else if ($id > 0 && isset($player) && $player->isLoaded())
|
||||
<label for="lastip" class="control-label">Last IP:</label>
|
||||
<input type="text" class="form-control" id="lastip" name="lastip"
|
||||
autocomplete="off"
|
||||
maxlength="10" value="<?php echo longToIp($player->getLastIP()); ?>"
|
||||
maxlength="10" value="<?php
|
||||
if (strlen($player->getLastIP()) > 11) {
|
||||
echo inet_ntop($player->getLastIP());
|
||||
}
|
||||
else {
|
||||
echo longToIp($player->getLastIP());
|
||||
}
|
||||
?>"
|
||||
readonly/>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user