View source for Action: GetIP
#||
||
Current version:
Credits:
|{{toc numerate=1}} ||
||#
##~{{getip}}##
**/action/getip.php**
%%(php)
<?php
// determine IP
$tpl->ip = $ip = $this->get_user_ip();
// resolve IP and determine host
$tpl->host = gethostbyaddr($ip);
%%
**/action/template/getip.tpl**
%%(hl html)
[ === main === ]
[ ' ip ' ]<br>
[ ' host ' ]<br>
%%