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 42... Line 42...
42
                  )
42
                  )
43
               )
43
               )
44
            )
44
            )
45
      );
45
      );
46
         
46
         
47
 
47
   try {
48
   $connection = new usersDataSource( 
48
      $connection = new usersDataSourceMySQLi( 
-
 
49
            array( 'username' => 'test', 'password' => 'test', 'database' => 'test' ),
-
 
50
            $customFields, 
49
         null,
51
         );
50
         $customFields, 
52
   } catch ( Exception $e ) {
51
         array( 'username' => 'test', 'password' => 'test', 'database' => 'test' ) 
53
      print "<pre>$e</pre>";
52
      );
54
      die;
-
 
55
   }
53
   $initValues = array( 
56
   $initValues = array( 
54
      'users' => array( 
57
      'users' => array( 
55
         'login' => 'admin', 
58
         'login' => 'admin', 
56
         'pass' => password_hash( 'admin', PASSWORD_DEFAULT ),
59
         'pass' => password_hash( 'admin', PASSWORD_DEFAULT ),
57
         'admin' => 1, 
60
         'admin' => 1,