-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig-example.php
More file actions
88 lines (67 loc) · 2.09 KB
/
Copy pathconfig-example.php
File metadata and controls
88 lines (67 loc) · 2.09 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
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
/*
A configuration file would typically be named after the
intended audience, such as "config-public.php". See the
utils/Requester.php->detectAudience() method.
Fill in any of the *_USER, *_PWD, *_SECRET values as needed
below.
*/
$SN = $_SERVER['SERVER_NAME'];
$PATH = $_SERVER['PHP_SELF'];
//most scripts uses the Requester class to determine the SITE value
if (!defined('SITE')) {
if (substr($SN,-4)==".dev" OR $SN=='localhost') define("SITE", "dev");
else if ($SN=='stage.tatag.cc') define('SITE','stage');
else if ($SN=='tatag.cc') define('SITE', 'live');
else define('SITE', 'live');
}
define("TEST_EMAIL", "user21@email.org");
define('TEST_USER', 21);
define('TEST_PWD', '');
define('TALLY_USER','');
date_default_timezone_set('America/Los_Angeles');
// SITE or environment is detected in Requester class
//url of this app
if (SITE=='dev') define('HOME', 'http://tatag.dev/api');
else if (SITE=='stage') define('HOME', 'http://stage.tatag.cc/api');
else define('HOME', 'https://tatag.cc/api');
//twilio sid
define('SMS_SID', '');
//oauth, login service provider tokens
//if you only provide login by email, you can skip these
//and even disable the recaptcha as needed
define('G_RECAPTCHA','');
define('GAPI_CLIENT_ID', "");
define('FB_CLIENT_ID', "");
define('TWITTER_CONSUMER_KEY','');
define('TWITTER_CONSUMER_SECRET','');
//open-access users
define('OPEN_ACCESS_USER', 'consumer-2');
define('OPEN_ACCESS_PW', '');
if ((SITE=='dev' OR SITE=='stage') AND (!isset($_SERVER['PHP_AUTH_USER']) AND isset($_GET['auth']))) {
$_SERVER['PHP_AUTH_USER'] = $_GET['auth'];
$_SERVER['PHP_AUTH_PW'] = $_GET['pwd'];
unset($_GET['auth']);
unset($_GET['pwd']);
}
$dbs = array(
'tatagtest' => array(
"SERVER_NAME" => SITE=='dev' ? "localhost" : $SN,
"DB_NAME" => SITE=='live' ? "tatag" : "tatagtestdtd",
"USER" => "",
"PWD" => ""
),
'tatagsim' => array(
"SERVER_NAME" => SITE=='dev' ? "localhost" : $SN,
"DB_NAME" => "tatagsim",
"USER" => "",
"PWD" => ""
),
'tatagtestdtd' => array(
"SERVER_NAME" => "localhost",
"DB_NAME" => "tatagtestdtd",
"USER" => "",
"PWD" => ""
)
);
?>