Changeset 563 for trunk/includes
- Timestamp:
- Aug 14, 2013, 12:08:56 AM (12 years ago)
- Location:
- trunk/includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/includes/Page.php ¶
r561 r563 3 3 function ShowTopBar() 4 4 { 5 global $Config, $System, $User , $System;5 global $Config, $System, $User; 6 6 7 7 $Output = '<div class="Menu">'; … … 125 125 } 126 126 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 143 127 function ShowHeader() 144 128 { 145 global $User, $ RSSChannels, $System;129 global $User, $System; 146 130 147 131 $Output = '<?xml version="1.0" encoding="'.$System->Config['Web']['Charset'].'"?> … … 168 152 $Output .= '<table class="page"><tr><td class="menu">'; 169 153 $Output .= ShowMainMenu(); 170 $Output .= ShowOnlineUserList();154 $Output .= $System->ModuleManager->Modules['User']->ShowOnlineList(); 171 155 $Output .= '<br />'; 172 156 $Output .= ShowSearchBox(); -
TabularUnified trunk/includes/Version.php ¶
r562 r563 1 1 <?php 2 2 3 $Revision = 56 2; // Subversion revision3 $Revision = 563; // Subversion revision 4 4 $DatabaseRevision = 543; // Database structure revision 5 5 $ReleaseTime = '2013-08-13'; -
TabularUnified trunk/includes/global.php ¶
r562 r563 356 356 } 357 357 358 function HumanDateTime($SQLDateTime) 359 { 360 $DateTimeParts = explode(' ', $SQLDateTime); 361 if($DateTimeParts[0] != '0000-00-00') 362 { 363 $DateParts = explode('-', $DateTimeParts[0]); 364 $Output = ($DateParts[2] * 1).'.'.($DateParts[1] * 1).'.'.($DateParts[0] * 1); 365 } else $Output = ' '; 366 if(count($DateTimeParts) > 1) 367 if($DateTimeParts[1] != '00:00:00') 368 { 369 $TimeParts = explode(':', $DateTimeParts[1]); 370 $Output .= ' '.($TimeParts[0] * 1).':'.($TimeParts[1] * 1).':'.($TimeParts[2] * 1); 371 }; 372 return($Output); 373 } 374 358 375 function FollowingTran($TextID, $Table, $GroupId, $Prev = false) 359 376 {
Note:
See TracChangeset
for help on using the changeset viewer.