Changeset 768 for trunk/services


Ignore:
Timestamp:
Jun 9, 2022 7:24:04 PM (2 years ago)
Author:
anonymous
Message:

Minor improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/services/templates/admin_list.ihtml

    r497 r768  
    6868                }
    6969            ?></td>
    70             <td class="sc-nowrap"><?php echo gethostbyaddr($list[$i]['last_login_ip']); ?></td>
     70            <td class="sc-nowrap"><?php echo ipInRange($list[$i]['last_login_ip'], ['10.0.0.0/8', '172.16.0.0/12', '192.168.0.0/16']) ? "(Private IP)" : sprintf('<a href="https://ip.me/ip/%1$s">%1$s</a>', $list[$i]['last_login_ip']); ?></td>
    7171            <td class="sc-nowrap"><?php echo Validator::validateStrDate($list[$i]['added_datetime']) ? date($app->getParam('date_format'), strtotime($list[$i]['added_datetime'])) : ''; ?></td>
    7272            <td class="sc-nowrap"><?php echo oTxt($list[$i]['added_admin_username'], true); ?></td>
Note: See TracChangeset for help on using the changeset viewer.