Subversion Repositories php_users

Rev

Rev 4 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4 Rev 16
Line 48... Line 48...
48
   $connection = new usersDataSource( 
48
   $connection = new usersDataSource( 
49
         null,
49
         null,
50
         $customFields, 
50
         $customFields, 
51
         array( 'username' => 'test', 'password' => 'test', 'database' => 'test' ) 
51
         array( 'username' => 'test', 'password' => 'test', 'database' => 'test' ) 
52
      );
52
      );
-
 
53
   $initValues = array( 
-
 
54
      'users' => array( 
-
 
55
         'login' => 'admin', 
-
 
56
         'pass' => password_hash( 'admin', PASSWORD_DEFAULT ),
-
 
57
         'admin' => 1, 
-
 
58
      )
-
 
59
      );
-
 
60
   $connection->buildTable( );
53
   $connection->buildTable( 'admin', 'admin', true );
61
   $connection->initTables( $initValues );
54
?>
62
?>
55
<html>
63
<html>
56
	<head>
64
	<head>
57
		<meta charset="utf-8">
65
		<meta charset="utf-8">
58
		<title>Build Table</title>
66
		<title>Build Table</title>