Ignore:
Timestamp:
Jan 5, 2014, 4:28:51 PM (11 years ago)
Author:
chronos
Message:
  • Modified: Logged user state remade to use memory table to avoid offten writes to storage. Memory table lose their content if mysql server is restarted. So UserTrace still keep user information but table is only updated on login or logout. Login timeout is managed by UserOnline table.
  • Added: Ability to login permanently. Session will not timeout after short time. List of online users will be not affected as it use own timeout check.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/global.php

    r703 r712  
    712712        return($Output);
    713713}
     714
     715function GetRemoteAddress()
     716{
     717  if(array_key_exists('HTTP_X_FORWARDED_FOR',$_SERVER)) $IP = $_SERVER['HTTP_X_FORWARDED_FOR'] ;
     718  else if(array_key_exists('REMOTE_ADDR', $_SERVER)) $IP = $_SERVER['REMOTE_ADDR'];
     719  else $IP = '0.0.0.0';
     720  return($IP);
     721}
Note: See TracChangeset for help on using the changeset viewer.