Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/commands In directory usw-pr-cvs1:/tmp/cvs-serv10854/chat/lib/commands Added Files: timestamp.cmd.php3 show.cmd.php3 refresh.cmd.php3 order.cmd.php3 notify.cmd.php3 clear.cmd.php3 Log Message: Some new running commands --- NEW FILE --- <?php // // +--------------------------------------------------------------------------+ // | phpMyChat version 0.15.0 | // +--------------------------------------------------------------------------+ // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ // | This library does the work associated to the 'timestamp' command. | // | | // | It is called by the 'commands.lib.php3' script. | // +--------------------------------------------------------------------------+ // | From the phpMyChat project: | // | http://www.phpheaven.net/projects/phpMyChat/ | // | | // | Authors: the phpHeaven-team <php...@ya...> | // +--------------------------------------------------------------------------+ // // $Id: timestamp.cmd.php3,v 1.1 2001/04/10 19:22:21 loic1 Exp $ // // The work for the 'timestamp' command. // /** * Just modify some variables */ $dbSessionVars['showTimestamp'] = 1 - $dbSessionVars['showTimestamp']; // cookie expires in one year setcookie('cookieShowTimestamp', $dbSessionVars['showTimestamp'], time() + 60*60*24*365); $isCommand = true; $enforceFirstLoad = 1; $doRefreshMessages = true; /** * Define a table that contains JavaScript instructions to be ran */ $jsToRun = array( '<script type="text/javascript" language="javascript">', '<!--', '// Show/hide the server time in the status bar' ); if ($dbSessionVars['showTimestamp'] == 1) { $currentDate = mktime(date('H') + C_TMZ_OFFSET, date('i'), date('s'), date('m'), date('d'), date('Y')); $jsToRun[] = 'window.parent.jsClockGap = window.parent.pmcCalcGap(\'' . date('F d, Y H:i:s', $currentDate) . '\');'; $jsToRun[] = 'window.parent.pmcClock();'; } else { $jsToRun[] = 'window.parent.pmcStopClock();'; } $jsToRun[] = '// -->'; $jsToRun[] = '</script>'; ?> --- NEW FILE --- <?php // // +--------------------------------------------------------------------------+ // | phpMyChat version 0.15.0 | // +--------------------------------------------------------------------------+ // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ // | This library does the work associated to the 'show' command. | // | | // | It is called by the 'commands.lib.php3' script. | // +--------------------------------------------------------------------------+ // | From the phpMyChat project: | // | http://www.phpheaven.net/projects/phpMyChat/ | // | | // | Authors: the phpHeaven-team <php...@ya...> | // +--------------------------------------------------------------------------+ // // $Id: show.cmd.php3,v 1.1 2001/04/10 19:22:21 loic1 Exp $ // // The work for the 'show' command. // /** * Just modify some variables */ $dbSessionVars['msgNumber'] = ($cmd[3] != '') ? max(abs($cmd[3]), 5) : 5; $isCommand = true; $enforceFirstLoad = 1; $doRefreshMessages = true; ?> --- NEW FILE --- <?php // // +--------------------------------------------------------------------------+ // | phpMyChat version 0.15.0 | // +--------------------------------------------------------------------------+ // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ // | This library does the work associated to the 'refresh' command. | // | | // | It is called by the 'commands.lib.php3' script. | // +--------------------------------------------------------------------------+ // | From the phpMyChat project: | // | http://www.phpheaven.net/projects/phpMyChat/ | // | | // | Authors: the phpHeaven-team <php...@ya...> | // +--------------------------------------------------------------------------+ // // $Id: refresh.cmd.php3,v 1.1 2001/04/10 19:22:21 loic1 Exp $ // // The work for the 'refresh' command. // /** * Just modify some variables */ if ($cmd[2] != '') { $dbSessionVars['refreshDelay'] = ($cmd[2] < 3) ? 0 : $cmd[2]; } else { $dbSessionVars['refreshDelay'] = ($dbSessionVars['refreshDelay'] == 0) ? C_MSG_REFRESH : 0; } $isCommand = true; $doRefreshMessages = true; ?> --- NEW FILE --- <?php // // +--------------------------------------------------------------------------+ // | phpMyChat version 0.15.0 | // +--------------------------------------------------------------------------+ // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ // | This library does the work associated to the 'order' command. | // | | // | It is called by the 'commands.lib.php3' script. | // +--------------------------------------------------------------------------+ // | From the phpMyChat project: | // | http://www.phpheaven.net/projects/phpMyChat/ | // | | // | Authors: the phpHeaven-team <php...@ya...> | // +--------------------------------------------------------------------------+ // // $Id: order.cmd.php3,v 1.1 2001/04/10 19:22:21 loic1 Exp $ // // The work for the 'order' command. // /** * 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; } ?> --- NEW FILE --- <?php // // +--------------------------------------------------------------------------+ // | phpMyChat version 0.15.0 | // +--------------------------------------------------------------------------+ // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ // | This library does the work associated to the 'notify' command. | // | | // | It is called by the 'commands.lib.php3' script. | // +--------------------------------------------------------------------------+ // | From the phpMyChat project: | // | http://www.phpheaven.net/projects/phpMyChat/ | // | | // | Authors: the phpHeaven-team <php...@ya...> | // +--------------------------------------------------------------------------+ // // $Id: notify.cmd.php3,v 1.1 2001/04/10 19:22:21 loic1 Exp $ // // The work for the 'notify' command. // /** * Just modify some variables */ $dbSessionVars['notify'] = 1 - $dbSessionVars['notify']; // cookie expires in one year setcookie('cookieNotify', $dbSessionVars['notify'], time() + 60*60*24*365); $isCommand = true; $enforceFirstLoad = 1; $doRefreshMessages = true; ?> --- NEW FILE --- <?php // // +--------------------------------------------------------------------------+ // | phpMyChat version 0.15.0 | // +--------------------------------------------------------------------------+ // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ // | This library does the work associated to the 'clear' command. | // | | // | It is called by the 'commands.lib.php3' script. | // +--------------------------------------------------------------------------+ // | From the phpMyChat project: | // | http://www.phpheaven.net/projects/phpMyChat/ | // | | // | Authors: the phpHeaven-team <php...@ya...> | // +--------------------------------------------------------------------------+ // // $Id: clear.cmd.php3,v 1.1 2001/04/10 19:22:21 loic1 Exp $ // // The work for the 'clear' command. // /** * Just modify some variables */ if ($dbSessionVars['jsVersion'] == 'high') { $dbSessionVars['msgNumber'] = 5; $isCommand = true; $enforceFirstLoad = 1; $doRefreshMessages = true; } ?> |