View Single Post
  #87  
Old 03-17-2010, 05:06 AM
  Yalokin's Avatar 
Yalokin Yalokin is offline
 

Advanced Member
  
Join Date: Sep 2009
Location: New York USA
Posts: 75
 

Default Re: IP Addresses in Users Online for all users

I also did not find exact code in postauth.php but edit my with lines of code that are missing and added if statement.

And it work.
I do not see any errors so I assume it implement it right.

Thank you again.

So part for my postauth.php now look like this (lines 78 to 97):
if (!empty($active_modules['Users_online'])) {

x_session_register("session_ip");


x_session_register("current_url_page");
x_session_register("current_date");
x_session_register("session_create_date");
$current_url_page = $php_url['url'].($php_url['query_string']?"?".$php_url['query_string']:"");
if (empty($session_create_date))
$session_create_date = time();
$current_date = time();
$session_ip = getenv('REMOTE_ADDR');

}

#
# Display
#
__________________
Reply With Quote