-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.php
More file actions
63 lines (57 loc) · 1.41 KB
/
config.php
File metadata and controls
63 lines (57 loc) · 1.41 KB
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
<?php
$_domains = array(
'www' => 'twitapps.com',
'static' => 'static.twitapps.com',
);
$_service = array(
'list' => array(
'replies',
'follows',
),
);
$_db = array(
'username' => 'twitapps_user',
'password' => 'password_one',
'database' => 'twitapps',
'host' => 'localhost',
);
$_twitter = array(
'twitapps' => array(
'username' => 'twitapps',
'password' => 'password_one',
'source' => 'twitapps',
),
'replies' => array(
'username' => 'ta_replies',
'password' => 'password_two',
'source' => 'twitapps',
),
'follows' => array(
'username' => 'ta_follows',
'password' => 'password_three',
'source' => 'twitapps',
),
);
$_oauth = array(
'consumer_key' => '', // Get this from Twitter
'consumer_secret' => '', // Get this from Twitter
'url_request_token' => 'http://twitter.com/oauth/request_token',
'url_access_token' => 'http://twitter.com/oauth/access_token',
'url_authorize' => 'http://twitter.com/oauth/authorize',
);
$_smtp = array(
'email' => 'email@example.com',
'pass' => 'my_smtp_password',
'host' => 'ssl://smtp.gmail.com',
'port' => 465,
'auth' => true,
);
function __($type, $k1 = 'twitapps', $k2 = false)
{
if ($k2 !== false and isset($GLOBALS['_'.$type][$k1][$k2]))
return $GLOBALS['_'.$type][$k1][$k2];
elseif ($k2 === false and isset($GLOBALS['_'.$type][$k1]))
return $GLOBALS['_'.$type][$k1];
else
return null;
}