Subversion Repositories php_users

Rev

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

Rev 19 Rev 21
Line 57... Line 57...
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 usersPermissionsDataSource( 
62
   $connection = new usersPermissionsDataSourceMySQLi( 
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 UsersPermissions( $customFields );
68
      $_SESSION['user'] = new UsersPermissions( $customFields );
70
   }
69
   }
Line 77... Line 76...
77
?>
76
?>
78
<html>
77
<html>
79
	<head>
78
	<head>
80
		<meta charset="utf-8">
79
		<meta charset="utf-8">
81
		<title>Login</title>
80
		<title>Login</title>
82
     <link href='users.css' rel='stylesheet' type='text/css'>
81
     <!--<link href='users.css' rel='stylesheet' type='text/css'>-->
83
	</head>
82
	</head>
84
	<body>
83
	<body>
85
      <pre><?php //if ( isset( $_SESSION['user'] ) ) print_r( $_SESSION['user']->data() ); ?></pre>
84
      <pre><?php //if ( isset( $_SESSION['user'] ) ) print_r( $_SESSION['user']->data() ); ?></pre>
86
      
85
      
87
      <div class="login">
86
      <div class="login">