· 9 years ago · Dec 18, 2016, 04:52 PM
1<?php
2if (!defined('BASEPATH'))
3 exit('No direct script access allowed');
4$config['tables']['users'] = 'users';
5$config['tables']['groups'] = 'groups';
6$config['tables']['users_groups'] = 'users_groups';
7$config['tables']['login_attempts'] = 'login_attempts';
8$config['join']['users'] = 'user_id';
9$config['join']['groups'] = 'group_id';
10$config['hash_method'] = 'bcrypt';
11$config['default_rounds'] = 8;
12$config['random_rounds'] = FALSE;
13$config['min_rounds'] = 5;
14$config['max_rounds'] = 9;
15$config['salt_prefix'] = version_compare(PHP_VERSION, '5.3.7', '<') ? '$2a$' : '$2y$';
16$config['site_title'] = "mytitle";
17$config['admin_email'] = "****@gmail.com";
18$config['default_group'] = 'members';
19$config['admin_group'] = 'admin';
20$config['identity'] = 'email';
21$config['min_password_length'] = 8;
22$config['max_password_length'] = 20;
23$config['email_activation'] = FALSE;
24$config['manual_activation'] = FALSE;
25$config['remember_users'] = TRUE;
26$config['user_expire'] = 86500;
27$config['user_extend_on_login'] = FALSE;
28$config['track_login_attempts'] = TRUE;
29$config['track_login_ip_address'] = TRUE;
30$config['maximum_login_attempts'] = 94;
31$config['lockout_time'] = 600;
32$config['forgot_password_expiration'] = 6000;
33$config['remember_cookie_name'] = 'my_remember_code';
34$config['identity_cookie_name'] = 'identity';
35$config['use_ci_email'] = TRUE;
36$config['email_config'] = array(
37 'mailtype' => 'html'
38);
39$config['email_templates'] = 'auth/email/';
40$config['email_activate'] = 'activate.tpl.php';
41$config['email_forgot_password'] = 'forgot_password.tpl.php';
42$config['email_forgot_password_complete'] = 'new_password.tpl.php';
43$config['salt_length'] = 22;
44$config['store_salt'] = FALSE;
45$config['delimiters_source'] = 'config';
46$config['message_start_delimiter'] = '<p>';
47$config['message_end_delimiter'] = '</p>';
48$config['error_start_delimiter'] = '<p>';
49$config['error_end_delimiter'] = '</p>';
50$config['hybridauth_enabled'] = TRUE;
51$config['hybridauth']['base_url'] = '/hauth/endpoint';
52$config['hybridauth']['providers'] = array(
53 "OpenID" => array(
54 "enabled" => true
55 ),
56 "Yahoo" => array(
57 "enabled" => true,
58 "keys" => array(
59 "id" => "",
60 "secret" => ""
61 )
62 ),
63 "AOL" => array(
64 "enabled" => true
65 ),
66 "Google" => array(
67 "enabled" => true,
68 "keys" => array(
69 "id" => "",
70 "secret" => ""
71 )
72 ),
73 "Facebook" => array(
74 "enabled" => true,
75 "keys" => array(
76 "id" => "",
77 "secret" => ""
78 )
79 ),
80 "Twitter" => array(
81 "enabled" => true,
82 "keys" => array(
83 "key" => "",
84 "secret" => ""
85 )
86 ),
87 "Live" => array(
88 "enabled" => true,
89 "keys" => array(
90 "id" => "",
91 "secret" => ""
92 )
93 ),
94 "MySpace" => array(
95 "enabled" => true,
96 "keys" => array(
97 "key" => "",
98 "secret" => ""
99 )
100 ),
101 "LinkedIn" => array(
102 "enabled" => true,
103 "keys" => array(
104 "key" => "",
105 "secret" => ""
106 )
107 ),
108 "Foursquare" => array(
109 "enabled" => true,
110 "keys" => array(
111 "id" => "",
112 "secret" => ""
113 )
114 )
115);
116$config['hybridauth']['debug_mode'] = (ENVIRONMENT == 'development');
117$config['hybridauth']['debug_file'] = APPPATH . 'logs/hybridauth.log';