From: Lo?c C. <lo...@us...> - 2001-05-10 11:47:24
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat In directory usw-pr-cvs1:/tmp/cvs-serv26624/chat Modified Files: loader.php3 handle_input.php3 Log Message: Rewritten the automatic reconnection system Index: loader.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/loader.php3,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -r1.18 -r1.19 *** loader.php3 2001/05/06 16:47:51 1.18 --- loader.php3 2001/05/10 11:47:22 1.19 *************** *** 304,313 **** <script type="text/javascript" language="javascript"> <!-- ! // Updates the time for last checked user and the last loaded message, and the ! // current id ! window.parent.jsIsInitLoad = 0; ! window.parent.jsLastLoadedMsgTime = <?php echo($lastMsgLoad); ?>; ! window.parent.jsLastCheckedUserTime = <?php echo($lastUsrCheck); ?>; ! window.parent.jsDbSessionSID = '<?php echo(dbSessionSID('GET')); ?>'; <?php --- 304,309 ---- <script type="text/javascript" language="javascript"> <!-- ! // Updates the the session id ! window.parent.jsDbSessionSID = '<?php echo(dbSessionSID('GET')); ?>'; <?php *************** *** 320,325 **** . '?' . dbSessionSID(); ?> ! // Do refresh the 'users' frame window.parent.frames['users'].window.location.replace('<?php echo($usersUrl); ?>'); <?php } --- 316,323 ---- . '?' . dbSessionSID(); ?> ! // Do refresh the 'users' frame and update the timestamp associated to the last ! // checked user window.parent.frames['users'].window.location.replace('<?php echo($usersUrl); ?>'); + window.parent.jsLastCheckedUserTime = <?php echo($lastUsrCheck); ?>; <?php } *************** *** 402,415 **** ?> } // --> </script> </head> ! <body onunload="if (typeof(window.parent.frames['exit']) != 'undefined' && typeof(window.parent.jsLeaveChat) != 'undefined' && !window.parent.jsLeaveChat) window.parent.pmcConnecting(window.parent.jsConnect + 1)"> <script type="text/javascript" language="javascript1.1"> <!-- if (typeof(window.parent.frames['exit']) != 'undefined' && typeof(window.parent.pmcConnectDone) != 'undefined') window.parent.pmcConnectDone(); // --> </script> --- 400,419 ---- ?> } + + // Update the timestamp associated to the last loaded message + window.parent.jsIsInitLoad = 0; + window.parent.jsLastLoadedMsgTime = <?php echo($lastMsgLoad); ?>; // --> </script> </head> ! <body onunload="if (typeof(window.parent.frames['exit']) != 'undefined' && typeof(window.parent.jsLeaveChat) != 'undefined' && !window.parent.jsLeaveChat && window.parent.jsConnect < 1) window.parent.pmcConnecting(1)"> <script type="text/javascript" language="javascript1.1"> <!-- if (typeof(window.parent.frames['exit']) != 'undefined' && typeof(window.parent.pmcConnectDone) != 'undefined') + { window.parent.pmcConnectDone(); + } // --> </script> Index: handle_input.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/handle_input.php3,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -r1.23 -r1.24 *** handle_input.php3 2001/05/07 21:15:00 1.23 --- handle_input.php3 2001/05/10 11:47:22 1.24 *************** *** 245,249 **** ?> if (window.parent.jsConnect == 0) ! window.parent.pmcDoRefreshLoader(); <?php } --- 245,249 ---- ?> if (window.parent.jsConnect == 0) ! window.parent.pmcConnecting(1); <?php } |