Changeset 80 for trunk/www/Application/Model/User.php
- Timestamp:
- Oct 21, 2009, 10:24:50 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/Application/Model/User.php
r78 r80 124 124 else 125 125 { 126 $this->Database->update('User', 'Id='.$Row['Id'], array('LastLoginTime' => 'NOW()', 'LastIpAddress' => GetRemoteAddress()));126 $this->Database->update('User', 'Id='.$Row['Id'], array('LastLoginTime' => 'NOW()', 'LastIpAddress' => $this->System->GetRemoteAddress())); 127 127 $this->Database->update('UserOnline', 'SessionId="'.$SID.'"', array('User' => $Row['Id'])); 128 128 // načtení stavu stromu 129 129 $Result = $this->System->Translate('UserLoggedIn'); 130 $this->System->Modules['Log']->NewRecord('User', 'Login', 'Login='.$Login.',Host='.gethostbyaddr( GetRemoteAddress()));130 $this->System->Modules['Log']->NewRecord('User', 'Login', 'Login='.$Login.',Host='.gethostbyaddr($this->System->GetRemoteAddress())); 131 131 } 132 132 } else $Result = $this->System->Translate('UserNotRegistred');
Note:
See TracChangeset
for help on using the changeset viewer.