Changeset 563 for trunk/Modules/User/User.php
- Timestamp:
- Aug 14, 2013, 12:08:56 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/User/User.php
r549 r563 34 34 ), 0); 35 35 } 36 37 function ShowOnlineList() 38 { 39 $Output = 'Online překladatelé:<br />'; 40 $DbResult = $this->System->Database->query('SELECT `Name`, `GM`, `User`.`ID` AS `ID` FROM `User` '. 41 'LEFT JOIN `UserTrace` ON `UserTrace`.`User` = `User`.`Id` '. 42 'WHERE (`LastLogin` >= NOW() - 300) AND ((`LastLogout` < `LastLogin`) OR (ISNULL(`LastLogout`)))'); 43 while($DbUser = $DbResult->fetch_assoc()) 44 { 45 $Name = '<a href="'.$this->System->Link('/user.php?user='.$DbUser['ID']).'">'.$DbUser['Name'].'</a>'; 46 $Output .= '<strong>'.$Name.'</strong><br />'; 47 } 48 return($Output); 49 } 36 50 } 37 51
Note:
See TracChangeset
for help on using the changeset viewer.