Subversion Repositories php_users

Rev

Rev 16 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16 Rev 21
Line 51... Line 51...
51
               )
51
               )
52
            )
52
            )
53
      );
53
      );
54
         
54
         
55
   /* we haven't made the connection already, so instead we pass the 
55
   /* we haven't made the connection already, so instead we pass the 
56
    * parameters needed in the third parameter here and let the 
56
    * parameters needed in the first parameter here and let the 
57
    * usersDataSource class make its own connection
57
    * usersDataSource class make its own connection
58
    * 
58
    * 
59
    * we also want to pass the customFields in so it will do the merge
59
    * we also want to pass the customFields in so it will do the merge
60
    * immediately.
60
    * immediately.
61
    */
61
    */
62
   $connection = new usersDataSource( 
62
   $connection = new usersDataSourceMySQLi( 
63
         null,
63
         array( 'username' => 'test', 'password' => 'test', 'database' => 'test' ),
64
         $customFields, 
64
         $customFields
65
         array( 'username' => 'test', 'password' => 'test', 'database' => 'test' ) 
-
 
66
      );
65
      );
67
   // Pass the same custom fields to the Users class
66
   // Pass the same custom fields to the Users class
68
   if ( ! isset( $_SESSION['user'] ) ) { 
67
   if ( ! isset( $_SESSION['user'] ) ) { 
69
      $_SESSION['user'] = new Users( $customFields );
68
      $_SESSION['user'] = new Users( $customFields );
70
   }
69
   }