-
Notifications
You must be signed in to change notification settings - Fork 50
/
config.php
executable file
·68 lines (56 loc) · 1.7 KB
/
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
<?php
/**
* Uncomment the following line to display PHP errors
*/
ini_set("display_errors", "on");
/**
* The URL of Open. No '/' at the end
*/
define("O_URL", "http://open.sim");
/**
* Hostname (URL without protocol [http, https] and slashes)
*/
define("CLEAN_HOST", "open.sim");
/* -- Database Configuration STARTS -- */
define("DATABASE", serialize(array(
"host" => getenv('OPENSHIFT_MYSQL_DB_HOST'),
"port" => getenv('OPENSHIFT_MYSQL_DB_PORT'),
"name" => "open",
"user" => getenv('OPENSHIFT_MYSQL_DB_USERNAME'),
"pass" => getenv('OPENSHIFT_MYSQL_DB_PASSWORD')
)));
/**
* We serialize the DATABASE constant value becuase we can't make arrays as values
*/
/**
* Keys
*/
$cfg = array(
'keys' => array(
'email_verification' => getenv('OPEN_keys_email_verification'),
'master_key' => getenv('OPEN_keys_master_key')
),
'logsys' => array(
'cookie_key' => getenv('OPEN_logsys_cookie_key'),
'password_salt' => getenv('OPEN_logsys_password_salt')
),
'facebook' => array(
'app_id' => '670472332987070',
'app_secret' => getenv('OPEN_facebook_app_secret')
),
'google' => array(
'client_id' => '575210830217-2s0n7ik12s4d0pjju408efc37o5p0kgu.apps.googleusercontent.com',
'client_secret' => getenv('OPEN_google_client_secret')
),
'twitter' => array(
'api_key' => 'IrZGE5zMhO2W2wsyHjwNyQ',
'api_secret' => getenv('OPEN_twitter_api_secret')
),
'email_accounts' => array(
1 => array("[email protected]", getenv("OPEN_email_accounts_1")),
2 => array("[email protected]", getenv("OPEN_email_accounts_2")),
3 => array("[email protected]", getenv("OPEN_email_accounts_3"))
)
);
/* -- Database Configuration ENDS -- */
?>