forked from StartupAPI/users
-
Notifications
You must be signed in to change notification settings - Fork 0
/
users_config.localtest.php
232 lines (199 loc) · 7.77 KB
/
users_config.localtest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
<?php
/**
!!!! DO NOT USE THIS CONFIGURATION FILE !!!!
This file sets default config options used for testing of new packages
*/
/**
* You must fill it in with some random string
* this protects some of your user's data when sent over the network
* and must be different from other sites
*/
UserConfig::$SESSION_SECRET= 'cslcslmcsvhimocwiopmcgwmphoigcfhmiocfs;imocsfgijmo;scfg;';
/**
* Database connectivity
*/
UserConfig::$mysql_db = 'startupapi_test';
UserConfig::$mysql_user = 'startupapi';
UserConfig::$mysql_password = 'just a test';
#UserConfig::$mysql_host = 'localhost';
#UserConfig::$mysql_port = 3306;
#UserConfig::$mysql_socket = '/tmp/mysql.sock'; // in case you are using socket to connect
/**
* User IDs of admins for this instance (to be able to access dashboard at /users/admin/)
*/
UserConfig::$admins[] = 1; // usually first user has ID of 1
/*
* Name of your application to be used in UI and emails to users
*/
#UserConfig::$appName = '';
/*
* It is usually important to obtain Terms of Service and Privacy Policy consent
* from your users, but you should consult your lawyer before launching the app
* and to obtain a copy of such documents.
*
* Uncomment following lines will enable the Terms of Service and Privacy Policy verbiage on sign up forms.
*
* You can also override exact verbiage by registering your own UserConfig::$onRenderTOSLinks hook
*/
// Increment this number every time you update TOS and Privacy Policy
// to help you track which user concented to which version
#UserConfig::$currentTOSVersion = 1;
// Terms of Service URLs
#UserConfig::$termsOfServiceURL = UserConfig::$SITEROOTURL . '/terms_of_service.php';
#UserConfig::$termsOfServiceFullURL = UserConfig::$SITEROOTFULLURL . '/terms_of_service.php';
// Privacy Policy URLs
#UserConfig::$privacyPolicyURL = UserConfig::$SITEROOTURL . '/privacy_policy.php';
#UserConfig::$privacyPolicyFullURL = UserConfig::$SITEROOTFULLURL . '/privacy_policy.php';
/*
* Uncomment next line to require email address verification before users can access the site
*/
#UserConfig::$requireVerifiedEmail = true;
/**
* StartupAPI theme
*/
#UserConfig::$theme = 'awesome'; // uncomment to enable Bootstrap3-based theme
/*
* Uncomment next line to enable debug messages in error_log
*/
#UserConfig::$DEBUG = true;
/**
* Enables developer tools beyond simple debugging
* like Bootswatch theme switcher in 'awesome' theme, for example
*/
#UserConfig::$DEVMODE = TRUE;
/**
* Username and password registration configuration
* just have these lines or comment them out if you don't want regular form registration
*/
UserConfig::loadModule('usernamepass');
new UsernamePasswordAuthenticationModule();
/**
* Facebook Connect configuration
* Register your app here: https://developers.facebook.com/apps
* Click "Edit settings" -> "Website with Facebook Login" and enter your site's URL
* And then uncomment two lines below and copy API Key and App Secret
*/
#UserConfig::loadModule('facebook');
#new FacebookAuthenticationModule('...api.key.goes.here...', '...api.secret.goes.here...');
/**
* Twitter Authentication configuration
*
* Register your app here: https://dev.twitter.com/apps/new
*
* - check the box next to "Allow this application to be used to Sign in with Twitter"
* - enter the value for "Callback URL" to the root URL of your app
* (actual value will be sent at runtime - setting it just enables the callbacks)
*
* And then uncomment two lines below and copy API Key and App Secret
*/
#UserConfig::loadModule('twitter');
#new TwitterAuthenticationModule('...api.key.goes.here...', '...api.secret.goes.here...');
/**
* Google OAuth Authentication configuration
* Register your app here: https://www.google.com/accounts/ManageDomains
* Add URL for your site, verify it using one of the methods provided
* And then uncomment lines below and copy API Key and App Secret
* Optional 3rd parameter is an array of API scopes you need authorization for.
* See up-to-date list of scopes here: http://code.google.com/apis/gdata/faq.html#AuthScopes
* (Google Contacts API scope is required and is included by default)
*/
#UserConfig::loadModule('google_oauth');
#new GoogleOAuthAuthenticationModule(
# '...OAuth.key.goes.here...',
# '...OAuth.secret.goes.here...',
# array(
# 'https://www.google.com/analytics/feeds/', // Google Analytics Data API
# 'http://www.google.com/base/feeds/', // Google Base Data API
# 'https://sites.google.com/feeds/', // Google Sites Data API
# 'http://www.blogger.com/feeds/', // Blogger Data API
# 'http://www.google.com/books/feeds/', // Book Search Data API
# 'https://www.google.com/calendar/feeds/', // Calendar Data API
# 'https://docs.google.com/feeds/', // Documents List Data API
# 'http://finance.google.com/finance/feeds/', // Finance Data API
# 'https://mail.google.com/mail/feed/atom/', // Gmail Atom feed
# 'http://maps.google.com/maps/feeds/', // Maps Data API
# 'http://picasaweb.google.com/data/', // Picasa Web Albums Data API
# 'http://www.google.com/sidewiki/feeds/', // Sidewiki Data API
# 'https://spreadsheets.google.com/feeds/', // Spreadsheets Data API
# 'http://www.google.com/webmasters/tools/feeds/', // Webmaster Tools API
# 'http://gdata.youtube.com' // YouTube Data API
# )
#);
/**
* Meetup Authentication configuration
* Register your app here: http://www.meetup.com/meetup_api/oauth_consumers/
* Click red "Register OAuth Consumer" button on the right and enter your site's name and URL
* And then uncomment two lines below and copy API Key and App Secret
*/
#UserConfig::loadModule('meetup');
#new MeetupAuthenticationModule('...OAuth.key.goes.here...', '...OAuth.secret.goes.here...');
/**
* LinkedIn Authentication configuration
* Register your app here: https://www.linkedin.com/secure/developer
* And then uncomment two lines below and copy API Key and Secret Key
*/
#UserConfig::loadModule('linkedin');
#new LinkedInAuthenticationModule('...OAuth.key.goes.here...', '...OAuth.secret.goes.here...');
/**
* Etsy Authentication configuration
* Register your app here: https://www.etsy.com/developers/register
* And then uncomment two lines below and copy API Key and App Secret
*/
#UserConfig::loadModule('etsy');
#new EtsyAuthenticationModule('...OAuth.key.goes.here...', '...OAuth.secret.goes.here...');
/* ========================================================================
*
* Subscriptions (experimental)
*
* ===================================================================== */
/**
* Enables subscriptions which are off by default, assumes UserConfig::$useAccounts is set to true (default)
*/
#UserConfig::$useSubscriptions = true;
/**
* Loads manual payments emodule
*
* This can be used for consierge subscriptions or off-band subscriptions managed by an operator
*
* More modules to come (e.g. PayPal, Amazon & etc)
*/
#UserConfig::loadModule('manual');
#new ManualPaymentEngine();
/**
* Configure your subscription plans and payment schedules in addition to a default free subscription
*/
/*
UserConfig::$PLANS['basic'] = array(
'name' => 'Basic account',
'description' => 'Paid access with basic functionality',
'capabilities' => array(
'individual' => true
),
'base_price' => 3,
'base_period' => 'month',
'details_url' => UserConfig::$SITEROOTFULLURL . 'plans/basic.php',
'downgrade_to' => UserConfig::$default_plan_slug,
'grace_period' => 15,
'payment_schedules' => array(
'monthly' => array(
'name' => 'Monthly',
'description' => 'Small monthly fee',
'charge_amount' => 3,
'charge_period' => 31,
'is_default' => 1,
),
'6mo' => array(
'name' => '6 Months',
'description' => 'Pay every 6 months',
'charge_amount' => 15,
'charge_period' => 183
),
'yearly' => array(
'name' => 'Yearly',
'description' => 'Discounted annual fee',
'charge_amount' => 25,
'charge_period' => 365
)
)
);
*/