From: Lo?c C. <lo...@us...> - 2001-04-12 23:38:28
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib In directory usw-pr-cvs1:/tmp/cvs-serv12704/chat/lib Modified Files: commands.lib.php3 check_and_kick_user.lib.php3 Log Message: Some more commands and fixes for them Index: commands.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands.lib.php3,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** commands.lib.php3 2001/04/05 00:43:10 1.2 --- commands.lib.php3 2001/04/12 23:38:26 1.3 *************** *** 89,93 **** include('./lib/commands/clear.cmd.' . C_EXTENSION); } ! else if (C_SAVE != 0 && eregi('^\/save([[:space:]]([[:digit:]]*))?$', $message, $cmd) && ($cmd[2] == '' OR $cmd[2] > 0)) --- 89,93 ---- include('./lib/commands/clear.cmd.' . C_EXTENSION); } ! else if (C_SAVE && eregi('^\/save([[:space:]]([[:digit:]]*))?$', $message, $cmd) && ($cmd[2] == '' OR $cmd[2] > 0)) 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.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** check_and_kick_user.lib.php3 2001/04/11 23:06:14 1.7 --- check_and_kick_user.lib.php3 2001/04/12 23:38:26 1.8 *************** *** 81,85 **** { dbSessionSave(); ! $exitQueryUrl = '?' . dbSessionSID() . $GLOBALS['pmcQueryArgSeparator'] . 'exitMessage=1'; $jsExitUrl = $dbSessionVars['from'] . $exitQueryUrl; $htmlExitUrl = C_CHAT_URL . $exitQueryUrl; --- 81,85 ---- { dbSessionSave(); ! $exitQueryUrl = '?' . dbSessionSID('GET') . $GLOBALS['pmcQueryArgSeparator'] . 'exitMessage=1'; $jsExitUrl = $dbSessionVars['from'] . $exitQueryUrl; $htmlExitUrl = C_CHAT_URL . $exitQueryUrl; *************** *** 91,97 **** <html> <head> ! <title>Exit from input</title> <script type="text/javascript" language="javascript"> <!-- window.parent.window.location = '<?php echo($jsExitUrl); ?>'; // --> --- 91,104 ---- <html> <head> ! <title>Exit from input or messages frame</title> <script type="text/javascript" language="javascript"> <!-- + // Close the loader + if (typeof(window.parent.jsLeaveChat) != 'undefined') + window.parent.jsLeaveChat = true; + if (window.document.title != 'Loader hidden frame' + && (window.parent.frames['loader'] && !window.parent.frames['loader'].closed)) + window.parent.frames['loader'].close(); + window.parent.window.location = '<?php echo($jsExitUrl); ?>'; // --> *************** *** 99,103 **** </head> <body> ! <!-- For browser that do not support JavaScript --> <p> <a href="<?php echo($htmlExitUrl); ?>" target="_parent"><b><?php echo(C_CHAT_URL); ?></b></a> --- 106,110 ---- </head> <body> ! <!-- For browsers that do not support JavaScript --> <p> <a href="<?php echo($htmlExitUrl); ?>" target="_parent"><b><?php echo(C_CHAT_URL); ?></b></a> |