[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: phpgwapi/inc functions.inc.php,1.121.2.5,1.121.2
From: |
Dan Kuykendall <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgwapi/inc functions.inc.php,1.121.2.5,1.121.2.6 |
Date: |
Thu, 14 Feb 2002 02:24:53 -0500 |
Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv18046/inc
Modified Files:
Tag: Version-0_9_14-branch
functions.inc.php
Log Message:
added some additional params to print_debug() so that my new one will drop
right in without a problem
Index: functions.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/functions.inc.php,v
retrieving revision 1.121.2.5
retrieving revision 1.121.2.6
diff -C2 -r1.121.2.5 -r1.121.2.6
*** functions.inc.php 12 Feb 2002 21:19:34 -0000 1.121.2.5
--- functions.inc.php 14 Feb 2002 07:24:51 -0000 1.121.2.6
***************
*** 45,61 ****
/*!
! @function print_debug
! @abstract print debug data only when debugging mode is turned on.
! @author jengo
! @discussion This function is used to debugging data.
! @syntax print_debug('message');
! @example print_debug('this is some debugging data');
*/
! function print_debug($text='')
{
//if (isset($GLOBALS['debugme']) && $GLOBALS['debugme'] == 'on')
! if (defined(DEBUG_APP) && DEBUG_APP == True)
{
! echo "debug: $text <br>\n";
}
}
--- 45,68 ----
/*!
! @function print_debug
! @abstract print debug data only when debugging mode is turned
on.
! @author jengo
! @discussion This function is used to debugging data.
! @syntax print_debug('message');
! @example print_debug('this is some debugging data');
*/
! function print_debug($text='',$var='',$part='notused',$level='notused')
{
//if (isset($GLOBALS['debugme']) && $GLOBALS['debugme'] == 'on')
! if (DEBUG_APP)
{
! if ($var == '')
! {
! echo "debug: $text <br>\n";
! }
! else
! {
! echo "$text: $var<br>\n";
! }
}
}
***************
*** 516,520 ****
magic_quotes_runtime(false);
! @print_debug('sane environment');
/****************************************************************************\
--- 523,527 ----
magic_quotes_runtime(false);
! @print_debug('sane environment','messageonly','app');
/****************************************************************************\
***************
*** 587,591 ****
unset ($domain); // we kill this to save memory
! @print_debug('domain: '.$GLOBALS['phpgw_info']['user']['domain']);
/****************************************************************************\
--- 594,598 ----
unset ($domain); // we kill this to save memory
! @print_debug('domain',$GLOBALS['phpgw_info']['user']['domain'],'app');
/****************************************************************************\
***************
*** 681,685 ****
$GLOBALS['phpgw']->applications = CreateObject('phpgwapi.applications');
// $GLOBALS['phpgw']->datetime = CreateObject('phpgwapi.datetime');
! print_debug('main class loaded');
if (!
isset($GLOBALS['phpgw_info']['flags']['included_classes']['error']) ||
! $GLOBALS['phpgw_info']['flags']['included_classes']['error'])
--- 688,692 ----
$GLOBALS['phpgw']->applications = CreateObject('phpgwapi.applications');
// $GLOBALS['phpgw']->datetime = CreateObject('phpgwapi.datetime');
! print_debug('main class loaded', 'messageonly','app');
if (!
isset($GLOBALS['phpgw_info']['flags']['included_classes']['error']) ||
! $GLOBALS['phpgw_info']['flags']['included_classes']['error'])
***************
*** 715,721 ****
{
$login_array = explode("@",$login);
! print_debug('LID : '.$login_array[0]);
$login_id =
$GLOBALS['phpgw']->accounts->name2id($login_array[0]);
! print_debug('User ID : '.$login_id);
$GLOBALS['phpgw']->accounts->accounts($login_id);
$GLOBALS['phpgw']->preferences->preferences($login_id);
--- 722,728 ----
{
$login_array = explode("@",$login);
! print_debug('LID',$login_array[0],'app');
$login_id =
$GLOBALS['phpgw']->accounts->name2id($login_array[0]);
! print_debug('User ID',$login_id,'app');
$GLOBALS['phpgw']->accounts->accounts($login_id);
$GLOBALS['phpgw']->preferences->preferences($login_id);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: phpgwapi/inc functions.inc.php,1.121.2.5,1.121.2.6,
Dan Kuykendall <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: email/inc class.bopreferences.inc.php,1.10.2.1,1.10.2.2 hook_notifywindow_simple.inc.php,1.5,1.5.2.1 hook_preferences.inc.php,1.9.2.1,1.9.2.2
- Next by Date:
[Phpgroupware-cvs] CVS: phpgwapi/inc functions.inc.php,1.126,1.127
- Previous by thread:
[Phpgroupware-cvs] CVS: email/inc class.bopreferences.inc.php,1.10.2.1,1.10.2.2 hook_notifywindow_simple.inc.php,1.5,1.5.2.1 hook_preferences.inc.php,1.9.2.1,1.9.2.2
- Next by thread:
[Phpgroupware-cvs] CVS: phpgwapi/inc functions.inc.php,1.126,1.127
- Index(es):