phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: phpgwapi/inc functions.inc.php,1.121.2.11,1.121.


From: Mark A Peters <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgwapi/inc functions.inc.php,1.121.2.11,1.121.2.12
Date: Sat, 21 Sep 2002 17:51:36 -0400

Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv32445/phpgwapi/inc

Modified Files:
      Tag: Version-0_9_14-branch
        functions.inc.php 
Log Message:
Brings this in-line with HEAD code to handle debug statements for API/APP.

Index: functions.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/functions.inc.php,v
retrieving revision 1.121.2.11
retrieving revision 1.121.2.12
diff -C2 -r1.121.2.11 -r1.121.2.12
*** functions.inc.php   20 Jul 2002 13:22:20 -0000      1.121.2.11
--- functions.inc.php   21 Sep 2002 21:51:34 -0000      1.121.2.12
***************
*** 48,59 ****
                @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 == '')
--- 48,58 ----
                @abstract print debug data only when debugging mode is turned 
on.
                @author jengo
!               @discussion This function is used for debugging data. 
                @syntax print_debug('message');
                @example print_debug('this is some debugging data');
        */
!       function print_debug($text='',$var='',$part='APP',$level='notused')
        {
!               if ((strtoupper($part) == 'APP' && DEBUG_APP == True) || 
(strtoupper($part) == 'API' && DEBUG_API == True))
                {
                        if ($var == '')
***************
*** 540,544 ****
  
        magic_quotes_runtime(false);
!       @print_debug('sane environment','messageonly','app');
  
        
/****************************************************************************\
--- 539,543 ----
  
        magic_quotes_runtime(false);
!       print_debug('sane environment','messageonly','api');
  
        
/****************************************************************************\
***************
*** 611,615 ****
        unset ($domain); // we kill this to save memory
  
!       @print_debug('domain',$GLOBALS['phpgw_info']['user']['domain'],'app');
  
         
/****************************************************************************\
--- 610,614 ----
        unset ($domain); // we kill this to save memory
  
!       print_debug('domain',$GLOBALS['phpgw_info']['user']['domain'],'api');
  
         
/****************************************************************************\
***************
*** 704,708 ****
        $GLOBALS['phpgw']->preferences  = CreateObject('phpgwapi.preferences');
        $GLOBALS['phpgw']->applications = CreateObject('phpgwapi.applications');
!       print_debug('main class loaded', 'messageonly','app');
        if (! 
isset($GLOBALS['phpgw_info']['flags']['included_classes']['error']) ||
                ! $GLOBALS['phpgw_info']['flags']['included_classes']['error'])
--- 703,707 ----
        $GLOBALS['phpgw']->preferences  = CreateObject('phpgwapi.preferences');
        $GLOBALS['phpgw']->applications = CreateObject('phpgwapi.applications');
!       print_debug('main class loaded', 'messageonly','api');
        if (! 
isset($GLOBALS['phpgw_info']['flags']['included_classes']['error']) ||
                ! $GLOBALS['phpgw_info']['flags']['included_classes']['error'])





reply via email to

[Prev in Thread] Current Thread [Next in Thread]