Page 1 of 1
IP Whois Lookup (HESK 2.4)
Posted: Sat Aug 11, 2012 2:50 am
by D12Eminem989
This simple little code adds a whois lookup to the ip.
Open
/admin/admin_ticket.php, and find:
Code: Select all
<td><?php echo $ticket['ip']; ?></td>
Replace with:
Code: Select all
<td><a href="http://whois.domaintools.com/<?php echo $ticket['ip']; ?>" target="_blank"><?php echo $ticket['ip']; ?></a></td>
Enjoy!
Re: IP Whois Lookup
Posted: Sat Aug 11, 2012 8:22 am
by Klemen
Nice one, thanks!
Re: IP Whois Lookup (HESK 2.4)
Posted: Sat Aug 11, 2012 2:48 pm
by yaqwer
Quite a good idea, but the whois provider gets back the referer. So be careful.
Re: IP Whois Lookup (HESK 2.4)
Posted: Sun Dec 23, 2012 9:45 pm
by t2s
Try this
Code: Select all
<td><?php $lok=simplexml_load_file('http://smart-ip.net/geoip-xml/'.$ticket['ip']); echo $ticket['ip'],' - ',$lok->city,' - ',$lok->region.' - '.$lok->countryCode; ?></td>
its show info like:
83.28.9.228 - Harasiuki - Podkarpackie - PL
You can get other more info from xml, its contains:
Code: Select all
<geoip>
<source>smart-ip.net</source>
<host>83.28.9.228</host>
<lang>en</lang>
<countryName>Poland</countryName>
<countryCode>PL</countryCode>
<city>Harasiuki</city>
<region>Podkarpackie</region>
<latitude>50.4734</latitude>
<longitude>22.4840</longitude>
<timezone>Europe/Warsaw</timezone>
</geoip>