[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.8,1.121.2
From: |
Mark A Peters <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgwapi/inc functions.inc.php,1.121.2.8,1.121.2.9 php3_support_functions.inc.php,1.11.2.1,1.11.2.2 |
Date: |
Sat, 06 Apr 2002 10:13:22 -0500 |
Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv5516/phpgwapi/inc
Modified Files:
Tag: Version-0_9_14-branch
functions.inc.php php3_support_functions.inc.php
Log Message:
This now allows the _debug_array() to either print or not print the debug info.
Index: functions.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/functions.inc.php,v
retrieving revision 1.121.2.8
retrieving revision 1.121.2.9
diff -C2 -r1.121.2.8 -r1.121.2.9
*** functions.inc.php 26 Mar 2002 04:36:52 -0000 1.121.2.8
--- functions.inc.php 6 Apr 2002 15:13:19 -0000 1.121.2.9
***************
*** 491,497 ****
/* Just a wrapper to my new print_r() function I added to the php3
support file. Seek3r */
! function _debug_array($array)
{
! print_r($array);
}
--- 491,497 ----
/* Just a wrapper to my new print_r() function I added to the php3
support file. Seek3r */
! function _debug_array($array,$print=True)
{
! return print_r($array,$print);
}
Index: php3_support_functions.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/php3_support_functions.inc.php,v
retrieving revision 1.11.2.1
retrieving revision 1.11.2.2
diff -C2 -r1.11.2.1 -r1.11.2.2
*** php3_support_functions.inc.php 16 Jan 2002 06:47:40 -0000 1.11.2.1
--- php3_support_functions.inc.php 6 Apr 2002 15:13:19 -0000 1.11.2.2
***************
*** 282,301 ****
}
! function print_r($array)
{
if(gettype($array)=="array")
{
! echo '<ul>';
while (list($index, $subarray) = each($array) )
{
! echo '<li>'.$index.' <code>=></code>';
! print_r($subarray);
! echo '</li>';
}
! echo '</ul>';
}
else
{
! echo $array;
}
}
--- 282,310 ----
}
! function print_r($array,$print=True)
{
+ $str = '';
if(gettype($array)=="array")
{
! $str .= '<ul>';
while (list($index, $subarray) = each($array) )
{
! $str .= '<li>'.$index.' <code>=></code>';
! $str .= print_r($subarray,$print);
! $str .= '</li>';
}
! $str .= '</ul>';
}
else
{
! $str .= $array;
! }
! if($print)
! {
! echo $str;
! }
! else
! {
! return $str;
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: phpgwapi/inc functions.inc.php,1.121.2.8,1.121.2.9 php3_support_functions.inc.php,1.11.2.1,1.11.2.2,
Mark A Peters <address@hidden> <=