-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathusers_config.php
114 lines (102 loc) · 4.75 KB
/
users_config.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
<?php
/**
* 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= '...some.random.characters.go.here...test';
/**
* Database connectivity
*/
UserConfig::$mysql_host = 'localhost';
UserConfig::$mysql_db = 'startup_test';
UserConfig::$mysql_user = 'startup';
UserConfig::$mysql_password = 'startup';
//UserConfig::$mysql_port = '...port...';
/**
* User IDs of admins for this instance (to be able to access dashboard at /users/admin/)
*/
UserConfig::$admins = array(); // usually first user has ID of 1
/**
* Set these to point at your header and footer or leave them commented out to use default ones
*/
#UserConfig::$header = dirname(__FILE__).'/header.php';
#UserConfig::$footer = dirname(__FILE__).'/footer.php';
/**
* 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: http://www.facebook.com/developers/createapp.php
* Click "Edit settings" -> "Web Site" 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
* And then uncomment two lines below and copy API Key and App Secret
*/
#UserConfig::loadModule('twitter');
#UserConfig::$modules[] = new TwitterAuthenticationModule('...api.key.goes.here...', '...api.secret.goes.here...');
/**
* Status.Net Authentication configuration
* Register your app with your Status.Net installation
* And then uncomment two lines below and copy API Key, App Secret
* as well as provider name and root URL for the site and API
*/
#UserConfig::loadModule('statusnet');
#new StatusNetAuthenticationModule('...api.key.goes.here...', '...api.secret.goes.here...', '...provider.name...', '...base.app.url...', '...base.api.url...');
# Identi.ca's simplified setup (get your keys here: http://identi.ca/settings/oauthapps)
#UserConfig::loadModule('statusnet');
#new StatusNetAuthenticationModule('...identi.ca.api.key.goes.here...', '...identi.ca.api.secret.goes.here...');
/**
* Google Friend Connect configuration
* Register your app here: http://www.google.com/friendconnect/admin/site/setup
* And then uncomment two lines below and copy the site ID from the URL
*/
#UserConfig::loadModule('google');
#new GoogleAuthenticationModule('...site.id.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...');