Ignore:
Timestamp:
Aug 14, 2013, 12:08:56 AM (11 years ago)
Author:
chronos
Message:
  • Fixed: On user profile show last translated texts and exports for displayed user instead of logged user.
  • Modified: Show time of last user appearence on profile page.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/User/User.php

    r549 r563  
    3434    ), 0);
    3535        }
     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        }       
    3650}
    3751
Note: See TracChangeset for help on using the changeset viewer.