"Garrison, Mark" wrote:
>
> I'm writing a module in which I'd like to provide different services based
> upon whether the user is running his browser on the server (locally) or on a
> client (remotely). Can I detect this within webmin?
The easiest way would be to check the $ENV{'REMOTE_ADDR'} environment variable
and compare it with the the IP address of your server, which you can probably
get with &to_ipaddress(&get_system_hostname()) . Also, compare it with
127.0.0.1 to check for a localhost connection ..
- Jamie
|