forked from niemanlab/openfuego
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-sample.php
88 lines (77 loc) · 2.52 KB
/
config-sample.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
<?php
/**
* Hola.
* This is the primary configuration file for OpenFuego.
* You must edit the values below before getting started.
* You should not need to edit any other files.
*
* OpenFuego requires PHP >= 5.3.0 and MySQL 5.
* Only POSIX operating systems (not Windows) are supported.
* This program must be run from a command line.
*
* @author Andrew Phelps <[email protected]>
* @version 1.0
*/
namespace OpenFuego;
/* Your time zone. Harvard time is 'America/New_York'.
* http://php.net/manual/en/timezones.php
**/
date_default_timezone_set('America/New_York');
/** Time to curate.
* Specify the authorities at the center of the universe.
* Minimum 1, maximum 15. No @ symbol necessary.
**/
define(__NAMESPACE__ . '\AUTHORITIES', serialize(
array(
'someHandle1',
'someHandle2',
'someHandle3',
'someHandle4',
'someHandle5',
'someHandle6',
'someHandle7',
'someHandle8',
'someHandle9',
)
));
/** Your email address, for error reporting. Separate multiple addresses with commas. */
const WEBMASTER = '[email protected]';
/** For how many days should links remain in the database? Default: 1. Must be an integer. */
const EXPIRATION_DAYS = 1;
/** Your database credentials.
* Only MySQL is supported, hipsters. */
const
DB_NAME = 'xxxxx',
DB_USER = 'xxxxx',
DB_PASS = 'xxxxx',
DB_HOST = 'localhost', // default: localhost
DB_PORT = 3306; // default: 3306
/** Your Twitter credentials. If you don't have any yet, visit https://dev.twitter.com and sign in.
* Click "Create an app" and follow the instructions. Create an app with READ and WRITE access.
* Then generate new access tokens. Don't share the secrets with anyone.
**/
const
TWITTER_SCREEN_NAME = 'xxxx',
TWITTER_CONSUMER_KEY = 'xxxx',
TWITTER_CONSUMER_SECRET = 'xxxx',
TWITTER_OAUTH_TOKEN = 'xxxx-xxxx',
TWITTER_OAUTH_SECRET = 'xxxx';
/** Your Bitly credentials. Visit this page to grab them: http://bitly.com/a/your_api_key
* Optional, recommended. Leave blank to disable.
**/
const
BITLY_USERNAME = '',
BITLY_API_KEY = '';
/** Your Goo.gl API credentials. Visit this page for instructions:
* https://developers.google.com/url-shortener/v1/getting_started#APIKey
* Optional, recommended. Leave blank to disable.
**/
const GOOGL_API_KEY = '';
/** Your Embed.ly API credentials. Visit this page for a free account: http://embed.ly/embed/pricing
* Optional, but required to return metadata with URLs. Leave blank to disable.
**/
const EMBEDLY_API_KEY = '';
/**
* All done, no more editing! Now run fetch.php at the command line.
**/
?>