Changeset 738 for trunk/Modules/Chat/Chat.php
- Timestamp:
- Apr 14, 2015, 10:20:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Chat/Chat.php
r586 r738 10 10 $this->ParentClass = 'PagePortal'; 11 11 } 12 12 13 13 function dechexr($Num) 14 14 { … … 20 20 { 21 21 global $MonthNames; 22 22 23 23 if(!$this->System->User->CheckPermission('Chat', 'Display')) return('Nemáte oprávnění'); 24 24 25 if(array_key_exists('date', $_GET)) $Date = $_GET['date']; 25 if(array_key_exists('date', $_GET)) $Date = $_GET['date']; 26 26 else $Date = date('Y-m-d'); 27 27 $DateParts = explode('-', $Date); … … 56 56 if(($Year == $StartDateParts[0]) and ($Month == $StartDateParts[1])) $StartDay = ($StartDateParts[2]+0); else $StartDay = 1; 57 57 if(($Year == $EndDateParts[0]) and ($Month == $EndDateParts[1])) $EndDay = ($EndDateParts[2]+0); else $EndDay = date('t',mktime(0,0,0,$Month,0,$Year)); 58 for($Day = $StartDay; $Day <= $EndDay; $Day++) 59 { 58 for($Day = $StartDay; $Day <= $EndDay; $Day++) 59 { 60 60 $Text = '<a href="?date='.$Year.'-'.$Month.'-'.$Day.'">'.$Day.'</a> '; 61 61 if(($DateParts[0] == $Year) and ($DateParts[1] == $Month) and ($DateParts[2] == $Day)) $Text = '<strong>'.$Text.'</strong>'; … … 76 76 { 77 77 $Text = $Row['Text'];; 78 // StrTr($Row['text'], "\x8A\x8D\x8E\x9A\x9D\x9E", "\xA9\xAB\xAE\xB9\xBB\xBE"); 78 // StrTr($Row['text'], "\x8A\x8D\x8E\x9A\x9D\x9E", "\xA9\xAB\xAE\xB9\xBB\xBE"); 79 79 $Output .= '['.date('d.m.Y H:i:s',$Row['UNIX_TIMESTAMP(Time)']).'] <span style="color: #'.$this->dechexr($Row['Color']).'"><strong><'.$Row['Nick'].'></strong> '.(htmlspecialchars($Text)).'</span><br>'; 80 80 } … … 97 97 $this->Dependencies = array(); 98 98 } 99 99 100 100 function DoStart() 101 101 { 102 102 $this->System->Pages['chat'] = 'PageChatHistory'; 103 } 103 } 104 104 }
Note:
See TracChangeset
for help on using the changeset viewer.