mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-13 17:24:54 +02:00
First attempt (#331)
This commit is contained in:
@@ -669,11 +669,17 @@ else if (isset($_REQUEST['search'])) {
|
|||||||
<div class="col-12 col-sm-12 col-lg-6">
|
<div class="col-12 col-sm-12 col-lg-6">
|
||||||
<label for="lastip" class="control-label">Last IP:</label>
|
<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
|
<input type="text" class="form-control" id="lastip" name="lastip" autocomplete="off" maxlength="10" value="<?php
|
||||||
if (strlen($player->getLastIP()) > 11) {
|
$lastIPColumnInfo = $db->getColumnInfo('players', 'lastip');
|
||||||
echo inet_ntop($player->getLastIP());
|
if ($lastIPColumnInfo && is_array($lastIPColumnInfo)) {
|
||||||
|
if (str_contains($lastIPColumnInfo['type'], 'varbinary')) {
|
||||||
|
echo inet_ntop($player->getLastIP());
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
echo longToIp($player->getLastIP());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
echo longToIp($player->getLastIP());
|
echo 'Error';
|
||||||
}
|
}
|
||||||
?>" readonly/>
|
?>" readonly/>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user