Changeset 564 for trunk/Modules/Log/Log.php
- Timestamp:
- Aug 11, 2013, 12:28:14 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Log/Log.php
r548 r564 54 54 $UserId = $this->System->User->User['Id']; 55 55 else $UserId = NULL; 56 if(array_key_exists('REMOTE_ADDR', $_SERVER)) $IPAddress = $_SERVER['REMOTE_ADDR']; 57 else $IPAddress = ''; 56 58 $this->Database->insert('Log', array('Time' => 'NOW()', 57 59 'User' => $UserId, 'Module' => $Module, 58 'Operation' => $Operation, 'Value' => $Value, 'IPAddress' => $ _SERVER['REMOTE_ADDR']));60 'Operation' => $Operation, 'Value' => $Value, 'IPAddress' => $IPAddress)); 59 61 } 60 62 }
Note:
See TracChangeset
for help on using the changeset viewer.