Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

No customer IP in whosonline


multisign

Recommended Posts

A comment in the PHP manual:

 

The function 'getenv' does not work if your Server API is ASAPI (IIS).

 

So, try to don't use getenv('REMOTE_ADDR'), but $_SERVER["REMOTE_ADDR"].

http://us2.php.net/getenv

 

The line in includes/functions/whos_online.php sets the IP by getenv():

 

$wo_ip_address = getenv('REMOTE_ADDR');

 

Change that to

 

$wo_ip_address = $_SERVER["REMOTE_ADDR"];

 

It is also used in includes\functions\general.php.

Contributions

 

Discount Coupon Codes

Donations

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...