WackoWiki: Action: GetIP

https://wackowiki.org/doc     Version: 18.05.2022 05:17
Current version:
Credits:
{{getip}}

/action/getip.php

<?php
    
// determine IP
    
$tpl->ip $ip $this->get_user_ip();
    
    
// resolve IP and determine host
    
$tpl->host gethostbyaddr($ip);


/action/template/getip.tpl
[ === main === ]

[ ' ip ' ]<br>
[ ' host ' ]<br>