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/includes/Page.php

    r561 r563  
    33function ShowTopBar()
    44{
    5   global $Config, $System, $User, $System;
     5  global $Config, $System, $User;
    66 
    77  $Output = '<div class="Menu">';
     
    125125}
    126126
    127 function ShowOnlineUserList()
    128 {
    129   global $System, $Moderators, $User;
    130  
    131   $Output = 'Online překladatelé:<br />';
    132   $DbResult = $System->Database->query('SELECT `Name`, `GM`, `User`.`ID` AS `ID` FROM `User` '.
    133     'LEFT JOIN `UserTrace` ON `UserTrace`.`User` = `User`.`Id` '.
    134     'WHERE (`LastLogin` >= NOW() - 300) AND ((`LastLogout` < `LastLogin`) OR (ISNULL(`LastLogout`)))');
    135   while($DbUser = $DbResult->fetch_assoc())
    136   {
    137     $Name = '<a href="'.$System->Link('/user.php?user='.$DbUser['ID']).'">'.$DbUser['Name'].'</a>';
    138     $Output .= '<strong>'.$Name.'</strong><br />';
    139   }
    140   return($Output);
    141 }
    142 
    143127function ShowHeader()
    144128{
    145   global $User, $RSSChannels, $System; 
     129  global $User, $System; 
    146130 
    147131  $Output = '<?xml version="1.0" encoding="'.$System->Config['Web']['Charset'].'"?>
     
    168152  $Output .= '<table class="page"><tr><td class="menu">';
    169153  $Output .= ShowMainMenu();
    170   $Output .= ShowOnlineUserList();
     154  $Output .= $System->ModuleManager->Modules['User']->ShowOnlineList();
    171155  $Output .= '<br />';
    172156  $Output .= ShowSearchBox();
Note: See TracChangeset for help on using the changeset viewer.