phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] api/accounts class.accounts_sql.php, 1.1.1.1.2.7, 1.


From: Joseph Engo <address@hidden>
Subject: [Phpgroupware-cvs] api/accounts class.accounts_sql.php, 1.1.1.1.2.7, 1.1.1.1.2.8
Date: Sat, 15 Nov 2003 04:09:09 +0000

Update of /cvsroot/phpgroupware/api/accounts
In directory subversions:/tmp/cvs-serv12408/api/accounts

Modified Files:
      Tag: proposal-branch
        class.accounts_sql.php 
Log Message:
- Added login / logout history
  Creating the XSLT for this was even more of a bitch then the normal history 
ones :P
- For some ODD reason, using ##REQUIRED## in the "doc array" will make PHP run 
out of memory ... need to talk to Seek3r about WTF this could be


Index: class.accounts_sql.php
===================================================================
RCS file: /cvsroot/phpgroupware/api/accounts/class.accounts_sql.php,v
retrieving revision 1.1.1.1.2.7
retrieving revision 1.1.1.1.2.8
diff -C2 -d -r1.1.1.1.2.7 -r1.1.1.1.2.8
*** class.accounts_sql.php      10 Nov 2003 00:36:04 -0000      1.1.1.1.2.7
--- class.accounts_sql.php      15 Nov 2003 04:09:07 -0000      1.1.1.1.2.8
***************
*** 293,305 ****
                }
  
!               function cross_reference($account)
                {
!                       switch (gettype($account))
                        {
                                case 'string':
!                                       return $this->name2id($account);
                                        break;
                                case 'integer':
!                                       return $this->id2name($account);
                                        break;
                                case 'array':
--- 293,309 ----
                }
  
!               function cross_reference()
                {
!                       $args = new safe_args();
!                       $args->set('account','##REQUIRED##','any');
!                       $args = $args->get(func_get_args(),__LINE__,__FILE__);
! 
!                       switch (gettype($args['account']))
                        {
                                case 'string':
!                                       return $this->name2id($args['account']);
                                        break;
                                case 'integer':
!                                       return $this->id2name($args['account']);
                                        break;
                                case 'array':
***************
*** 307,316 ****
                                        if (sanitize($account[0],'string'))
                                        {
!                                               return $this->name2id($account);
                                        }
  
                                        if (sanitize($account[0],'number'))
                                        {
!                                               return $this->id2name($account);
                                        }
  
--- 311,320 ----
                                        if (sanitize($account[0],'string'))
                                        {
!                                               return 
$this->name2id($args['account']);
                                        }
  
                                        if (sanitize($account[0],'number'))
                                        {
!                                               return 
$this->id2name($args['account']);
                                        }
  





reply via email to

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