Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib
In directory usw-pr-cvs1:/tmp/cvs-serv27522/chat/lib
Modified Files:
move_to_start.lib.php3 check_and_kick_user.lib.php3
Log Message:
Add some '{' and '}' to avoid confusions and fix a php3 bug
Index: move_to_start.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/move_to_start.lib.php3,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** move_to_start.lib.php3 2001/04/19 21:05:04 1.3
--- move_to_start.lib.php3 2001/04/30 19:43:27 1.4
***************
*** 45,49 ****
if (typeof(window.parent.jsLeaveChat) != 'undefined')
window.parent.jsLeaveChat = true;
! if (window.parent.frames['loader'] && !window.parent.frames['loader'].closed)
window.parent.frames['loader'].close();
--- 45,50 ----
if (typeof(window.parent.jsLeaveChat) != 'undefined')
window.parent.jsLeaveChat = true;
! if (typeof(window.parent.frames['loader']) != 'undefined'
! && window.parent.frames['loader'] && !window.parent.frames['loader'].closed)
window.parent.frames['loader'].close();
Index: check_and_kick_user.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/check_and_kick_user.lib.php3,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** check_and_kick_user.lib.php3 2001/04/22 20:21:06 1.13
--- check_and_kick_user.lib.php3 2001/04/30 19:43:27 1.14
***************
*** 65,81 ****
--- 65,89 ----
// Same nick in another room
if ($loggedInRoom != $slashedCurrentRoomName)
+ {
$dbSessionVars['kicked'] = 1;
+ }
// The admin just deleted the room
else if ($status == 'd')
+ {
$dbSessionVars['kicked'] = 2;
+ }
// Kicked by a moderator or the admin.
else if ($status == 'k')
+ {
$dbSessionVars['kicked'] = 3;
+ }
// Banished by a moderator or the admin.
else if ($status == 'b')
+ {
$dbSessionVars['kicked'] = 4;
+ }
// Do exit from the current room if required
***************
*** 96,100 ****
--- 104,110 ----
// ... the status if it has been modified
if ($dbSessionVars['status'] != $status)
+ {
$dbSessionVars['status'] = $status;
+ }
// ... the time to ensure the user won't be cleaned from the
// connected users table
|