mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 11:50:30 +02:00
Update function calls where moved from e107_class.php to iphandler_class.php
This commit is contained in:
@@ -594,7 +594,7 @@ init_session();
|
||||
//DEPRECATED but necessary. BC Fix.
|
||||
function getip()
|
||||
{
|
||||
return e107::ipDecode(USERIP);
|
||||
return e107::getIPHandler()->ipDecode(USERIP);
|
||||
}
|
||||
|
||||
// for multi-language these definitions needs to come after the language loaded.
|
||||
@@ -832,7 +832,7 @@ if (($_SERVER['QUERY_STRING'] == 'logout')/* || (($pref['user_tracking'] == 'ses
|
||||
}
|
||||
}
|
||||
|
||||
$ip = $e107->getip();
|
||||
// $ip = e107::getIPHandler()->getIP(FALSE); Appears to not be used, so removed
|
||||
$udata = (USER === true ? USERID.'.'.USERNAME : '0');
|
||||
|
||||
// TODO - should be done inside online handler, more core areas need it (session handler for example)
|
||||
@@ -1493,7 +1493,7 @@ function init_session()
|
||||
// New user model
|
||||
$user = e107::getUser();
|
||||
|
||||
define('USERIP', $e107->getip());
|
||||
define('USERIP', e107::getIPHandler()->getIP(FALSE));
|
||||
define('POST_REFERER', md5($user->getToken()));
|
||||
|
||||
// Check for intruders - outside the model for now
|
||||
|
Reference in New Issue
Block a user