|
From: Lo?c C. <lo...@us...> - 2001-11-26 20:23:17
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs
In directory usw-pr-cvs1:/tmp/cvs-serv12363/chat/lib/index_libs
Modified Files:
main_index.lib.php3
Log Message:
* added m_id in the pmc_messages table to fix messages loss in the message frame
* fix a bad display with ie6
Index: main_index.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/main_index.lib.php3,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -r1.40 -r1.41
*** main_index.lib.php3 2001/09/17 08:29:03 1.40
--- main_index.lib.php3 2001/11/26 20:23:13 1.41
***************
*** 116,120 ****
* library
*/
! pmcHttpHeaders(L_CHARSET, true);
--- 116,120 ----
* library
*/
! pmcHttpHeaders(L_CHARSET, TRUE);
***************
*** 334,341 ****
$pmcPassword = '';
}
! $isRegUser = false;
$wasInRoom = '';
$previousId = '';
! $isCreateRoom = false;
--- 334,341 ----
$pmcPassword = '';
}
! $isRegUser = FALSE;
$wasInRoom = '';
$previousId = '';
! $isCreateRoom = FALSE;
***************
*** 353,357 ****
$targetRoom = $createRoomName;
$roomType = $createRoomType;
! $isCreateRoom = true;
}
// Room is among other public ones
--- 353,357 ----
$targetRoom = $createRoomName;
$roomType = $createRoomType;
! $isCreateRoom = TRUE;
}
// Room is among other public ones
***************
*** 532,536 ****
$isRegUser = ($dbSessionVars['status'] > 0);
$status = pmcRightLevel();
! $isRegUser = false;
}
else
--- 532,536 ----
$isRegUser = ($dbSessionVars['status'] > 0);
$status = pmcRightLevel();
! $isRegUser = FALSE;
}
else
***************
*** 599,603 ****
* @access public
*/
! function pmcStartpageHeaders($putTitle = true, $useIcon = true)
{
echo("\n");
--- 599,603 ----
* @access public
*/
! function pmcStartpageHeaders($putTitle = TRUE, $useIcon = TRUE)
{
echo("\n");
***************
*** 842,846 ****
// Horizontal alignement for cells topic
! $cellAlign = (L_CHARSET == 'windows-1256') ? 'left' : 'right';
echo("\n");
--- 842,847 ----
// Horizontal alignement for cells topic
! $cellAlign = (L_CHARSET == 'windows-1256') ? 'left' : 'right';
! $cellAlignInv = (L_CHARSET == 'windows-1256') ? 'right' : 'left';
echo("\n");
***************
*** 852,856 ****
<tr class="chatCell">
<td align="<?php echo($cellAlign); ?>" valign="top" class="chatCell" nowrap="nowrap"><?php echo(L_SET_2); ?> :</td>
! <td valign="top" class="chatCell">
<input id="testSize" type="text" name="pmcNick" size="11" maxlength="20" value="<?php echo(htmlspecialchars($layoutNick)); ?>" class="chatBox" />
</td>
--- 853,857 ----
<tr class="chatCell">
<td align="<?php echo($cellAlign); ?>" valign="top" class="chatCell" nowrap="nowrap"><?php echo(L_SET_2); ?> :</td>
! <td align="<?php echo($cellAlignInv); ?>" valign="top" class="chatCell">
<input id="testSize" type="text" name="pmcNick" size="11" maxlength="20" value="<?php echo(htmlspecialchars($layoutNick)); ?>" class="chatBox" />
</td>
***************
*** 858,862 ****
<tr class="chatCell">
<td align="<?php echo($cellAlign); ?>" valign="top" class="chatCell" nowrap="nowrap"><?php echo(L_REG_1); ?> :</td>
! <td valign="top" class="chatCell" nowrap="nowrap">
<input type="password" name="pmcPassword" size="11" maxlength="20" class="chatBox" />
<?php
--- 859,863 ----
<tr class="chatCell">
<td align="<?php echo($cellAlign); ?>" valign="top" class="chatCell" nowrap="nowrap"><?php echo(L_REG_1); ?> :</td>
! <td align="<?php echo($cellAlignInv); ?>" valign="top" class="chatCell" nowrap="nowrap">
<input type="password" name="pmcPassword" size="11" maxlength="20" class="chatBox" />
<?php
***************
*** 943,947 ****
<?php
// Displays default rooms in the drop down list
! $defaultRoomFound = false;
$defaultRoomsString = '';
$prevRoom = $layoutRoom;
--- 944,948 ----
<?php
// Displays default rooms in the drop down list
! $defaultRoomFound = FALSE;
$defaultRoomsString = '';
$prevRoom = $layoutRoom;
***************
*** 962,966 ****
{
echo(' selected="selected"');
! $defaultRoomFound = true;
}
echo('>' . htmlspecialchars($tmpRoom) . '</option>');
--- 963,967 ----
{
echo(' selected="selected"');
! $defaultRoomFound = TRUE;
}
echo('>' . htmlspecialchars($tmpRoom) . '</option>');
***************
*** 988,992 ****
echo("\n");
! $dbLink->query("SELECT DISTINCT msg.room FROM " . C_MSG_TBL . " msg, " . C_ROOM_TBL . " rm WHERE (msg.room = rm.room_name AND rm.room_type = 1) AND msg.username NOT LIKE 'SYS %' ORDER BY room");
while (list($room) = $dbLink->nextRecord())
{
--- 989,993 ----
echo("\n");
! $dbLink->query("SELECT DISTINCT msg.room FROM " . C_MSG_TBL . " msg, " . C_ROOM_TBL . " rm WHERE msg.m_time > 0 AND msg.username NOT LIKE 'SYS %' AND (msg.room = rm.room_name AND rm.room_type = 1) ORDER BY room");
while (list($room) = $dbLink->nextRecord())
{
***************
*** 999,1003 ****
{
echo(' selected="selected"');
! $defaultRoomFound = true;
}
echo('>' . htmlspecialchars($room) . '</option>');
--- 1000,1004 ----
{
echo(' selected="selected"');
! $defaultRoomFound = TRUE;
}
echo('>' . htmlspecialchars($room) . '</option>');
|