includes/sessions.php
changeset 485 7134d4bf7a23
parent 484 340c81fdd350
child 495 00f5cd31217a
equal deleted inserted replaced
484:340c81fdd350 485:7134d4bf7a23
  1270       // Special exception for 1.1.x upgrade - the 1.1.3 upgrade changes the size of the column and this is what validate_session
  1270       // Special exception for 1.1.x upgrade - the 1.1.3 upgrade changes the size of the column and this is what validate_session
  1271       // expects, but if the column size hasn't changed yet just check the first 10 digits of the IP.
  1271       // expects, but if the column size hasn't changed yet just check the first 10 digits of the IP.
  1272       $fail = true;
  1272       $fail = true;
  1273       if ( defined('IN_ENANO_UPGRADE') )
  1273       if ( defined('IN_ENANO_UPGRADE') )
  1274       {
  1274       {
  1275         if ( installer_enano_version() == '1.1.3' )
  1275         if ( installer_enano_version() == '1.1.3' && substr($ip, 0, 10) == substr($row['source_ip'], 0, 10) )
  1276           $fail = false;
  1276           $fail = false;
  1277       }
  1277       }
  1278       // Failed IP address check
  1278       // Failed IP address check
  1279       // echo '(debug) $session->validate_session: IP address mismatch<br />';
  1279       // echo '(debug) $session->validate_session: IP address mismatch<br />';
  1280       if ( $fail )
  1280       if ( $fail )