[Koha-devel] Theme and language settings.....

Ambrose Li a.c.li at ieee.org
Wed Sep 18 05:34:02 CEST 2002


On Wed, Sep 18, 2002 at 09:48:25AM +0200, Dorian Meid wrote:
> 
> You mean something like: $userip = %ENV{'REMOTE_ADDR'}; # ;-)

This should be written: $userip = $ENV{'REMOTE_ADDR'}; # :-)
                                  ^
If the user is coming from a proxy or firewall, this would be
the proxy/firewall's IP.

If the proxy is squid, there will be some more stuff inside
$ENV{"HTTP_X_FORWARDED_FOR"}.

-- 
Ambrose Li  <a.c.li at ieee.org>
http://trends.ca/~acli/  http://www.cccgt.org/

DRM is theft - We are the stakeholders




More information about the Koha-devel mailing list