Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands
In directory usw-pr-cvs1:/tmp/cvs-serv20722/chat/lib/commands
Modified Files:
order.cmd.php3 clear.cmd.php3
Log Message:
Better handdling of commands
Index: order.cmd.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands/order.cmd.php3,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** order.cmd.php3 2001/04/19 21:05:04 1.3
--- order.cmd.php3 2001/04/21 09:43:59 1.4
***************
*** 28,40 ****
* Just modify some variables
*/
! if ($dbSessionVars['jsVersion'] != 'high')
! {
! $dbSessionVars['msgOrder'] = 1 - $dbSessionVars['msgOrder'];
! // cookie expires in one year
! setcookie('cookieMsgOrder', $dbSessionVars['msgOrder'], time() + 60*60*24*365);
! $isCommand = true;
! $enforceFirstLoad = 1;
! $doRefreshMessages = true;
! }
?>
--- 28,37 ----
* Just modify some variables
*/
! $dbSessionVars['msgOrder'] = 1 - $dbSessionVars['msgOrder'];
! // cookie expires in one year
! setcookie('cookieMsgOrder', $dbSessionVars['msgOrder'], time() + 60*60*24*365);
! $isCommand = true;
! $enforceFirstLoad = 1;
! $doRefreshMessages = true;
?>
Index: clear.cmd.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands/clear.cmd.php3,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** clear.cmd.php3 2001/04/19 21:05:04 1.3
--- clear.cmd.php3 2001/04/21 09:43:59 1.4
***************
*** 28,38 ****
* Just modify some variables
*/
! if ($dbSessionVars['jsVersion'] == 'high')
! {
! $dbSessionVars['msgNumber'] = 5;
! $isCommand = true;
! $enforceFirstLoad = 1;
! $doRefreshMessages = true;
! }
?>
--- 28,35 ----
* Just modify some variables
*/
! $dbSessionVars['msgNumber'] = 5;
! $isCommand = true;
! $enforceFirstLoad = 1;
! $doRefreshMessages = true;
?>
|