Changeset 563 for trunk/Modules/User
- Timestamp:
- Aug 14, 2013, 12:08:56 AM (11 years ago)
- Location:
- trunk/Modules/User
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/User/Profile.php
r560 r563 30 30 { 31 31 $Output = ''; 32 $Filter = ' WHERE `Export`.`User` = '. $this->System->User->Id;32 $Filter = ' WHERE `Export`.`User` = '.($_GET['user'] * 1); 33 33 $DbResult = $this->System->Database->query('SELECT COUNT(*) FROM `Export` '.$Filter); 34 34 $DbRow = $DbResult->fetch_row(); … … 86 86 'WHERE (`T`.`Complete` = 1) AND '. 87 87 '(`T`.`Language` != '.$this->System->Config['OriginalLanguage'].') AND '. 88 '(`T`.`User` = '. $this->System->User->Id.') ORDER BY `T`.`ModifyTime` DESC LIMIT '.88 '(`T`.`User` = '.($_GET['user'] * 1).') ORDER BY `T`.`ModifyTime` DESC LIMIT '. 89 89 $Count.') AS `T`'; 90 90 } … … 130 130 'Výchozí jazyk: <strong>'.$UserLine['LanguageName'].'</strong><br />'. 131 131 'Výchozí verze klienta: <strong>'.$UserLine['Version'].'</strong><br />'. 132 'Poslední připojení: <strong>'. $UserLine['LastLogin'].'</strong><br />'.132 'Poslední připojení: <strong>'.HumanDateTime($UserLine['LastLogin']).'</strong><br />'. 133 133 'Počet přeložených: <a href="TranslationList.php?user='.$UserLine['ID'].'&state=2&group=0" title="Zobrazit Všechny jeho přeložené texty"><strong>'.$UserLine['TranslatedCount'].'</strong></a><br />'; 134 134 if($UserLine['TeamName'] != '') -
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.