Fixing osCommerce Who’s Online
If in your panel you see all users coming from the same IP and you don’t have access to your webserver to change the configuration as we describe here, you can change the code of the application to make it see the correct address.
Just edit the following file:
includes/functions/whos_online.php
Change this code :
$wo_session_id = tep_session_id();
$wo_ip_address = getenv('REMOTE_ADDR');
$wo_last_page_url = getenv('REQUEST_URI');
To this:
$wo_session_id = tep_session_id();
$wo_ip_address = getenv('REMOTE_ADDR');
if(isset($_SERVER['HTTP_X_SUCURI_CLIENTIP']))
{ $wo_ip_address = $_SERVER['HTTP_X_SUCURI_CLIENTIP']; }
$wo_last_page_url = getenv('REQUEST_URI');
And that’s it!
0
0
Related Articles
- Signatures
- Protected Page
- Block User-agents
- Block HTTP Referers
- Block HTTP Cookies
- Country Blocking
- vBulletin Customizations
- Testing CloudProxy Before Changing the DNS
- SSL Displaying Incorrectly
- Fixing VirtueMart Issues
- Fixing Vaultpress Issues