[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: registration main.php,1.7.2.2,1.7.2.3
From: |
Lars Kneschke <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: registration main.php,1.7.2.2,1.7.2.3 |
Date: |
Tue, 11 Mar 2003 09:55:32 -0500 |
Update of /cvsroot/phpgroupware/registration
In directory subversions:/tmp/cvs-serv5924
Modified Files:
Tag: Version-0_9_14-branch
main.php
Log Message:
added print_debug from functions.inc to it working again
Index: main.php
===================================================================
RCS file: /cvsroot/phpgroupware/registration/main.php,v
retrieving revision 1.7.2.2
retrieving revision 1.7.2.3
diff -C2 -r1.7.2.2 -r1.7.2.3
*** main.php 15 Sep 2002 23:49:47 -0000 1.7.2.2
--- main.php 11 Mar 2003 14:55:30 -0000 1.7.2.3
***************
*** 49,53 ****
);
include('../header.inc.php');
!
function CreateObject($classname, $constructor_param = '')
{
--- 49,53 ----
);
include('../header.inc.php');
!
function CreateObject($classname, $constructor_param = '')
{
***************
*** 71,74 ****
--- 71,97 ----
}
return $obj;
+ }
+
+ /*!
+ @function print_debug
+ @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 == '')
+ {
+ echo "debug: $text <br>\n";
+ }
+ else
+ {
+ echo "$text: $var<br>\n";
+ }
+ }
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: registration main.php,1.7.2.2,1.7.2.3,
Lars Kneschke <address@hidden> <=