Changeset 289 for trunk/includes/global.php
- Timestamp:
- Dec 23, 2009, 9:03:16 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/global.php
r286 r289 246 246 247 247 //záznam o aktivitě 248 if(Licence(0)) $Database->SQLCommand('UPDATE user SET LastIP = "'.$_SERVER['REMOTE_ADDR'].'", LastLogin = NOW() WHERE ID = '.$_SESSION['UserID']); 248 if(Licence(0) and array_key_exists('REMOTE_ADDR', $_SERVER)) 249 $Database->SQLCommand('UPDATE user SET LastIP = "'.$_SERVER['REMOTE_ADDR'].'", LastLogin = NOW() WHERE ID = '.$_SESSION['UserID']); 249 250 250 251 echo('<table class="page"><tr><td class="menu">');
Note:
See TracChangeset
for help on using the changeset viewer.