Update of /cvsroot/phpmychat/phpMyChat-0.15/chat
In directory usw-pr-cvs1:/tmp/cvs-serv16998/chat
Modified Files:
messages_low.php3
Log Message:
Optimized a little bit
Index: messages_low.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/messages_low.php3,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** messages_low.php3 2001/04/22 19:49:05 1.13
--- messages_low.php3 2001/04/23 18:20:53 1.14
***************
*** 156,159 ****
--- 156,160 ----
else
{
+ $today = date('j', time());
reset($grabedMessages);
for ($k = 0; $k < $grabedMessagesCnt; $k++)
***************
*** 172,176 ****
// Separator between messages sent before today and other ones
if (!isset($daySeparator)
! && date('j', $sentTime) != date('j', time()))
{
$daySeparatorMsg = ($dbSessionVars['msgOrder'] == 0) ? L_TODAY_UP : L_TODAY_DWN;
--- 173,177 ----
// Separator between messages sent before today and other ones
if (!isset($daySeparator)
! && date('j', $sentTime) != $today)
{
$daySeparatorMsg = ($dbSessionVars['msgOrder'] == 0) ? L_TODAY_UP : L_TODAY_DWN;
***************
*** 192,198 ****
$sender = '<a href="#" onclick="window.parent.pmcUserClick(\'' . $slashedSender . '\', true); return false" class="sender">' . $simpleSender . '</a>';
if ($addressee != '')
- {
$addressee = ']<bdo dir="' . $textDirection . '"></bdo>>[' . htmlspecialchars($addressee);
- }
$aMessage .= '<b>[' . $sender . $addressee . ']<bdo dir="' . $textDirection .'"></bdo></b> '
. '<font color="' . $msgColor . '">' . $message . '</font>';
--- 193,197 ----
***************
*** 209,215 ****
{
if ($addressee != '')
- {
$aMessage .= '<b>>[' . htmlspecialchars($addressee) . ']<bdo dir="' . $textDirection . '"></bdo></b> ';
- }
if (strpos($message, 'printf('))
{
--- 208,212 ----
|