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, 1.1.1.1


From: Joseph Engo <address@hidden>
Subject: [Phpgroupware-cvs] api/accounts class.accounts_sql.php, 1.1.1.1, 1.1.1.1.2.1
Date: Sun, 26 Oct 2003 04:57:29 +0000

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

Modified Files:
      Tag: proposal-branch
        class.accounts_sql.php 
Log Message:
Created the admin view account and add account screens


Index: class.accounts_sql.php
===================================================================
RCS file: /cvsroot/phpgroupware/api/accounts/class.accounts_sql.php,v
retrieving revision 1.1.1.1
retrieving revision 1.1.1.1.2.1
diff -C2 -d -r1.1.1.1 -r1.1.1.1.2.1
*** class.accounts_sql.php      23 Oct 2003 07:25:02 -0000      1.1.1.1
--- class.accounts_sql.php      26 Oct 2003 04:57:27 -0000      1.1.1.1.2.1
***************
*** 51,55 ****
                                $this->account_id = 
$this->cross_reference($args['account']);
                        }
!                       $this->data = $this->read_repository($this->accont_id);
                }
  
--- 51,55 ----
                                $this->account_id = 
$this->cross_reference($args['account']);
                        }
!                       $this->data = $this->read_repository();
                }
  
***************
*** 73,77 ****
                function read_repository()
                {
!                       $this->db->query('SELECT * FROM phpgw_accounts WHERE 
account_id=' . intval($this->account_id),__LINE__,__FILE__);
                        $this->db->next_record();
  
--- 73,77 ----
                function read_repository()
                {
!                       $this->db->query('SELECT * FROM phpgw_accounts WHERE 
account_id=' . $this->account_id,__LINE__,__FILE__);
                        $this->db->next_record();
  
***************
*** 156,159 ****
--- 156,161 ----
                        $args->set('query', '##NOTSET##', 'any');
                        $args->set('offset', '##NOTSET##', 'any');
+                       $args = $args->get(func_get_args(),__LINE__,__FILE__);
+ 
                        if (! $args['sort'])
                        {
***************
*** 354,357 ****
--- 356,360 ----
                        $args->set('account_expires', '##NOTSET##', 'any');
                        $args = $args->get(func_get_args(),__LINE__,__FILE__);
+ 
                        if(is_object($GLOBALS['phpgw']->acl))
                        {
***************
*** 364,368 ****
                        
                        $this->db->query("SELECT * FROM phpgw_accounts WHERE 
account_lid='" . $args['account_lid']."'",__LINE__,__FILE__);
!                       if(!$this->db->num_rows())
                        {                       
                                $sql = 'insert into phpgw_accounts 
(account_lid, account_type, account_pwd, '
--- 367,371 ----
                        
                        $this->db->query("SELECT * FROM phpgw_accounts WHERE 
account_lid='" . $args['account_lid']."'",__LINE__,__FILE__);
!                       if(! $this->db->num_rows())
                        {                       
                                $sql = 'insert into phpgw_accounts 
(account_lid, account_type, account_pwd, '
***************
*** 375,378 ****
--- 378,382 ----
                                $this->db->query($sql,__LINE__,__FILE__);
                                $account_id = 
$this->db->get_last_insert_id('phpgw_accounts','account_id');
+ 
                                return $account_id;
                        }





reply via email to

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