Hi,
I've tested the following global called "ClientIP":
sub {
my $client = $ENV{REMOTE_HOST} || $ENV{REMOTE_ADDR};
return $client;
}
In my login.html template, I've used <%ClientIP%> to display the client info. Everything seems to work fine on my system. I don't know why your code didn't work (should have worked, too). I have the same db.cgi revision, but it could be that I have other modules or libraries than you.
Cheers,
Oliver
I've tested the following global called "ClientIP":
Code:
sub {
my $client = $ENV{REMOTE_HOST} || $ENV{REMOTE_ADDR};
return $client;
}
In my login.html template, I've used <%ClientIP%> to display the client info. Everything seems to work fine on my system. I don't know why your code didn't work (should have worked, too). I have the same db.cgi revision, but it could be that I have other modules or libraries than you.
Cheers,
Oliver