From: Lo?c C. <lo...@us...> - 2001-04-15 18:52:59
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat In directory usw-pr-cvs1:/tmp/cvs-serv12255/chat Modified Files: whois_popup.php3 Log Message: Hostname is now displayed after IP Index: whois_popup.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/whois_popup.php3,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** whois_popup.php3 2001/04/14 17:51:47 1.9 --- whois_popup.php3 2001/04/15 18:52:55 1.10 *************** *** 253,264 **** if ($power != 'weak') { if (substr($ip, 0, 1) == 'p') ! $ip = substr($ip, 1) . ' (proxy)'; ?> <tr> <td class="whois" nowrap="nowrap">IP: </td> ! <td class="whois" nowrap="nowrap"><?php echo($ip); ?></td> </tr> <?php } echo("\n"); --- 253,279 ---- if ($power != 'weak') { + $ipProxyStr = ''; if (substr($ip, 0, 1) == 'p') ! { ! $ip = substr($ip, 1); ! $ipProxyStr = ' (proxy)'; ! } ! $hostname = @gethostbyaddr($ip); ?> <tr> <td class="whois" nowrap="nowrap">IP: </td> ! <td class="whois" nowrap="nowrap"><?php echo($ip . $ipProxyStr); ?></td> </tr> <?php + if ($hostname) + { + echo("\n"); + ?> + <tr> + <td class="whois" nowrap="nowrap">Host: </td> + <td class="whois" nowrap="nowrap"><?php echo($hostname); ?></td> + </tr> + <?php + } } echo("\n"); |