1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 09:34:54 +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

@@ -205,8 +205,8 @@ class e_admin_log
// Calculations common to all logs
//---------------------------------------
$userid = (USER === TRUE) ? USERID : 0;
$userstring = (USER === true ? USERNAME : "LAN_ANONYMOUS");
$userIP = $e107->getip();
$userstring = (USER === true ? USERNAME : 'LAN_ANONYMOUS');
$userIP = e107::getIPHandler()->getIP(FALSE);
$importance = $tp->toDB($importance, true, false, 'no_html');
$eventcode = $tp->toDB($eventcode, true, false, 'no_html');
@@ -331,7 +331,7 @@ class e_admin_log
else $userid = (USER === TRUE) ? USERID : 0;
if ($u_name) $userstring = $u_name;
else $userstring = (USER === true ? USERNAME : "LAN_ANONYMOUS");
$userIP = $e107->getip();
$userIP = e107::getIPHandler()->getIP(FALSE);
$eventcode = 'USER_'.$event_type;
$title = 'LAN_AUDIT_LOG_0'.$event_type; // This creates a string which will be displayed as a constant