Merge pull request #2304 from luisfernandosl/BUG-14102

BUG 14102 "La tabla LOGIN_LOG almacena el ip errado." SOLVED
This commit is contained in:
julceslauhub
2014-03-27 11:15:51 -03:00
2 changed files with 2 additions and 2 deletions

View File

@@ -177,7 +177,7 @@ class G
* getIpAddress
* @return string $ip
*/
public function getIpAddress ()
public static function getIpAddress ()
{
if (getenv( 'HTTP_CLIENT_IP' )) {
$ip = getenv( 'HTTP_CLIENT_IP' );

View File

@@ -198,7 +198,7 @@ try {
$weblog=new LoginLog();
$aLog['LOG_UID'] = G::generateUniqueID();
$aLog['LOG_STATUS'] = 'ACTIVE';
$aLog['LOG_IP'] = $_SERVER['REMOTE_ADDR'];
$aLog['LOG_IP'] = G::getIpAddress();
$aLog['LOG_SID'] = session_id();
$aLog['LOG_INIT_DATE'] = date('Y-m-d H:i:s');
//$aLog['LOG_END_DATE'] = '0000-00-00 00:00:00';