- Timestamp:
- Aug 10, 2008, 10:47:08 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
www/sunrisechat/history.php
r32 r106 8 8 $DateParts = explode('-',$Date); 9 9 10 $DbResult = $Database->select(' sunrisechat_history','MAX(time), MIN(time)');10 $DbResult = $Database->select('ChatHistory','MAX(Time), MIN(Time)'); 11 11 $RowTotal = $DbResult->fetch_array(); 12 12 13 $StartDateTimeParts = explode(' ',$RowTotal['MIN( time)']);13 $StartDateTimeParts = explode(' ',$RowTotal['MIN(Time)']); 14 14 $StartDateParts = explode('-',$StartDateTimeParts[0]); 15 $EndDateTimeParts = explode(' ',$RowTotal['MAX( time)']);15 $EndDateTimeParts = explode(' ',$RowTotal['MAX(Time)']); 16 16 $EndDateParts = explode('-',$EndDateTimeParts[0]); 17 17 … … 65 65 echo('</div><div style="border-style: solid; border-bottom-color: gray; border-width: 0 0 1 0; margin-bottom: 3px; padding-bottom: 2px;"></div>'); 66 66 67 $DbResult = $Database->select(' sunrisechat_history','nick,color,text,UNIX_TIMESTAMP(time)',"roomtype=0 AND time>'".$Date." 00:00:00' AND time<'".$Date." 23:59:59' ORDER BY time DESC");67 $DbResult = $Database->select('ChatHistory','Nick,Color,Text,UNIX_TIMESTAMP(Time)',"RoomType=0 AND Time>'".$Date." 00:00:00' AND Time<'".$Date." 23:59:59' ORDER BY Time DESC"); 68 68 //echo('Vpis posledn�h 100 zpr�:<br>'); 69 69 echo('<div style="font-size: small;">'); 70 70 while($Row = $DbResult->fetch_array()) 71 71 { 72 $Text = $Row[' text'];;72 $Text = $Row['Text'];; 73 73 // StrTr($Row['text'], "\x8A\x8D\x8E\x9A\x9D\x9E", "\xA9\xAB\xAE\xB9\xBB\xBE"); 74 echo('['.date('d.m.Y H:i:s',$Row['UNIX_TIMESTAMP( time)']).'] <span style="color: #'.dechexr($Row['color']).'"><strong><'.$Row['nick'].'></strong> '.(htmlspecialchars($Text)).'</span><br>');74 echo('['.date('d.m.Y H:i:s',$Row['UNIX_TIMESTAMP(Time)']).'] <span style="color: #'.dechexr($Row['Color']).'"><strong><'.$Row['Nick'].'></strong> '.(htmlspecialchars($Text)).'</span><br>'); 75 75 flush(); 76 76 }
Note:
See TracChangeset
for help on using the changeset viewer.