[Phpslash-commit] CVS: phpslash-ft/class functions.inc,1.89,1.90
Brought to you by:
joestewart,
nhruby
|
From: Joe S. <joe...@us...> - 2002-02-06 20:07:27
|
Update of /cvsroot/phpslash/phpslash-ft/class
In directory usw-pr-cvs1:/tmp/cvs-serv8735/phpslash-ft/class
Modified Files:
functions.inc
Log Message:
removed deprecated variables
Index: functions.inc
===================================================================
RCS file: /cvsroot/phpslash/phpslash-ft/class/functions.inc,v
retrieving revision 1.89
retrieving revision 1.90
diff -C2 -d -r1.89 -r1.90
*** functions.inc 2002/02/03 02:49:40 1.89
--- functions.inc 2002/02/06 20:07:24 1.90
***************
*** 271,275 ****
// log it
$sl_q->query("INSERT INTO psl_infolog VALUES('$id','$fdate','$description','$data')");
! } elseif ($debug) {
echo "Infolog: Log requested but logging has disabled by config.";
}
--- 271,275 ----
// log it
$sl_q->query("INSERT INTO psl_infolog VALUES('$id','$fdate','$description','$data')");
! } elseif ($_PSL['debug']) {
echo "Infolog: Log requested but logging has disabled by config.";
}
***************
*** 278,282 ****
/***************************************************************************
function : debug
! Parameters : $name => The name of the variable or function you're debuging
$msg => The debug message
$type => Type of message
--- 278,282 ----
/***************************************************************************
function : debug
! Parameters : $name => The name of the variable or function you're debugging
$msg => The debug message
$type => Type of message
***************
*** 286,294 ****
function debug($name, $msg, $type='default') {
! global $debug, $debug_type;
! if ($debug) {
// the $debug_type is set in config.php3
if ($type == 'default') {
! $type = $debug_type;
}
--- 286,295 ----
function debug($name, $msg, $type='default') {
! global $_PSL;
!
! if ($_PSL['debug']) {
// the $debug_type is set in config.php3
if ($type == 'default') {
! $type = $_PSL['debug_type'];
}
***************
*** 315,321 ****
function debug_array($name, $ary) {
! global $debug;
! if ($debug && is_array($ary) && (sizeof($ary) > 0) ) {
echo "<small><b>Debug: $name:</b><br>\n";
while( list( $key, $val) = @each( $ary )) {
--- 316,322 ----
function debug_array($name, $ary) {
! global $_PSL;
! if ($_PSL['debug'] && is_array($ary) && (sizeof($ary) > 0) ) {
echo "<small><b>Debug: $name:</b><br>\n";
while( list( $key, $val) = @each( $ary )) {
|