Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib
In directory usw-pr-cvs1:/tmp/cvs-serv11557/chat/lib
Modified Files:
check_and_kick_user.lib.php3 clean.lib.php3
format_messages.lib.php3 get_user_infos.lib.php3
mailer.lib.php3 swearing.lib.php3
Log Message:
PEAR codding standards (capitalized constants)
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.17
retrieving revision 1.18
diff -C2 -r1.17 -r1.18
*** check_and_kick_user.lib.php3 2001/06/13 18:08:44 1.17
--- check_and_kick_user.lib.php3 2001/12/10 22:53:40 1.18
***************
*** 44,48 ****
* @global string the slashed name of the current room
*/
! function pmcCheckAndKickUser($doUpdate = false)
{
global $latin1;
--- 44,48 ----
* @global string the slashed name of the current room
*/
! function pmcCheckAndKickUser($doUpdate = FALSE)
{
global $latin1;
Index: clean.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/clean.lib.php3,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** clean.lib.php3 2001/06/10 14:57:47 1.5
--- clean.lib.php3 2001/12/10 22:53:40 1.6
***************
*** 63,67 ****
else
{
! $isUsrCleaned = false;
}
--- 63,67 ----
else
{
! $isUsrCleaned = FALSE;
}
Index: format_messages.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/format_messages.lib.php3,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** format_messages.lib.php3 2001/12/04 20:01:04 1.12
--- format_messages.lib.php3 2001/12/10 22:53:40 1.13
***************
*** 95,99 ****
{
include('./lib/swearing.lib.' . C_EXTENSION);
! $theMessage = checkWords($theMessage, false);
}
--- 95,99 ----
{
include('./lib/swearing.lib.' . C_EXTENSION);
! $theMessage = checkWords($theMessage, FALSE);
}
Index: get_user_infos.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/get_user_infos.lib.php3,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** get_user_infos.lib.php3 2001/12/04 20:01:04 1.6
--- get_user_infos.lib.php3 2001/12/10 22:53:40 1.7
***************
*** 137,141 ****
// Initialize a variable and clean the banished users table
! $isBanished = false;
$dbLink->query("DELETE FROM " . C_BAN_TBL . " WHERE ban_until < " . time());
--- 137,141 ----
// Initialize a variable and clean the banished users table
! $isBanished = FALSE;
$dbLink->query("DELETE FROM " . C_BAN_TBL . " WHERE ban_until < " . time());
Index: mailer.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/mailer.lib.php3,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** mailer.lib.php3 2001/04/19 21:05:04 1.5
--- mailer.lib.php3 2001/12/10 22:53:40 1.6
***************
*** 62,66 ****
* @const _LIB_PHPMYMAILER_LOADED
*/
! define('_LIB_PHPMYMAILER_LOADED', true);
--- 62,66 ----
* @const _LIB_PHPMYMAILER_LOADED
*/
! define('_LIB_PHPMYMAILER_LOADED', 1);
***************
*** 71,75 ****
* @const PHPMYMAILER_SHOW_ERROR_MESSAGES
*/
! define('PHPMYMAILER_SHOW_ERROR_MESSAGES', false);
// -------------------------------------------
--- 71,75 ----
* @const PHPMYMAILER_SHOW_ERROR_MESSAGES
*/
! define('PHPMYMAILER_SHOW_ERROR_MESSAGES', 0);
// -------------------------------------------
***************
*** 136,140 ****
* @var boolean $pmmIsSent
*/
! var $pmmIsSent = false;
/**
--- 136,140 ----
* @var boolean $pmmIsSent
*/
! var $pmmIsSent = FALSE;
/**
***************
*** 409,417 ****
*/
function pmmSendEmail( &$sendTo,
! $mailCharset = '', $mailSubject = '', $mailBody = '', $isHtml = false,
$mailPriority = 3)
{
// Initialize the $isSent variables
! $this->pmmIsSent = false;
// Ensure function parameters are valid
--- 409,417 ----
*/
function pmmSendEmail( &$sendTo,
! $mailCharset = '', $mailSubject = '', $mailBody = '', $isHtml = FALSE,
$mailPriority = 3)
{
// Initialize the $isSent variables
! $this->pmmIsSent = FALSE;
// Ensure function parameters are valid
***************
*** 427,431 ****
$this->pmmSetErrorMsg(5);
if (!empty($this->pmmErrorMessage))
! return false;
// Transform to quoted printable format if this is required and
--- 427,431 ----
$this->pmmSetErrorMsg(5);
if (!empty($this->pmmErrorMessage))
! return FALSE;
// Transform to quoted printable format if this is required and
Index: swearing.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/swearing.lib.php3,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** swearing.lib.php3 2001/06/01 20:44:40 1.9
--- swearing.lib.php3 2001/12/10 22:53:40 1.10
***************
*** 87,96 ****
* @access public
*/
! function checkWords($str = '', $testOnly = false)
{
global $swearings;
global $replaceBy;
! $found = false;
$swearingsCnt = count($swearings);
reset($swearings);
--- 87,96 ----
* @access public
*/
! function checkWords($str = '', $testOnly = FALSE)
{
global $swearings;
global $replaceBy;
! $found = FALSE;
$swearingsCnt = count($swearings);
reset($swearings);
|