1
0
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:
e107steved
2012-01-02 22:06:22 +00:00
parent 7998e4f247
commit 8962c13f50
33 changed files with 87 additions and 53 deletions

View File

@@ -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