-
Notifications
You must be signed in to change notification settings - Fork 0
/
appWideConfig.php
101 lines (82 loc) · 3.58 KB
/
appWideConfig.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
<?php
require_once "$_SERVER[DOCUMENT_ROOT]/includes/session.php";
$gblData = array();
if(!isset($noObStart))
ob_start();
$gblData['noAPC'] = false;
$gblData['prodServer'] = true;
$gblData['beyondServerDocRoot'] = '/';
define("FULL_IMG_VER", "?v=2");
define("THUMB_IMG_VER", "?v=9");
define("LIST_IMG_VER", "?v=1");
define("SMALL_IMG_VER", "?v=10");
define("ICON_IMG_VER","?v=5");
define("ADS_IMG_VER", "?v=1");
if($_SERVER['SERVER_NAME']=='cms.proptiger.com')
{
$myDocRoot = dirname(__FILE__);
define("IMG_SERVER",'http://dyjz00pttbyut.cloudfront.net/');
define("JS_SERVER",'http://dyjz00pttbyut.cloudfront.net/');
define("CSS_SERVER",'http://dyjz00pttbyut.cloudfront.net/');
error_reporting(E_ALL ^ E_NOTICE);
ini_set('display_errors','0');
ini_set('log_errors','0');
define("BEANSTALK_SERVER", '208.109.190.204');
define("BEANSTALK_PORT", '11300');
// Curl call URL
define("SERVER_URL", "http://www.proptiger.com");
define("SEND_EMAIL", TRUE);
define("RESALE_EMAIL", "[email protected]");
define("RESALE_GROUP_EMAIL", "[email protected]");
define("IMAGE_SERVICE_URL","http://www.proptiger.com/data/v1/entity/image");
define("USER_API_URL","http://www.proptiger.com/app/v1/register");
define("AUDIO_SERVICE_URL","http://www.proptiger.com/data/v1/entity/audio");
define("TYPEAHEAD_API_URL", "http://www.proptiger.com/app/v1/typeahead");
}
else{
$myDocRoot = dirname(__FILE__);
$myDocRoot = str_replace('\\', '/', $myDocRoot);
$gblData['beyondServerDocRoot'] = str_replace($_SERVER['DOCUMENT_ROOT'], '', $myDocRoot);
if(empty($gblData['beyondServerDocRoot'])){
$gblData['beyondServerDocRoot'] = '/';
}else if($gblData['beyondServerDocRoot'] == '/'){
// do nothing
}else{
if(!strstr($gblData['beyondServerDocRoot'],"/"))
$gblData['beyondServerDocRoot'] = "/".$gblData['beyondServerDocRoot'];
$gblData['beyondServerDocRoot'] .= '/';
}
// e.g. $gblData['beyondServerDocRoot'] = /proptiger/
// notice that is prefixed, as well as suffixed with forward slash.
$gblData['prodServer'] = false;
$t = $_SERVER['SERVER_NAME'];
define("IMG_SERVER",'http://www.proptiger.com/');
define("JS_SERVER","http://$t" . $gblData['beyondServerDocRoot']);
define("CSS_SERVER","http://$t" . $gblData['beyondServerDocRoot']);
error_reporting(E_ALL);
ini_set('display_errors','0');
ini_set('log_errors','1');
define("BEANSTALK_SERVER", 'localhost');
define("BEANSTALK_PORT", '11300');
// CRM Database
define("DB_CRM_HOST", "208.109.190.204");
define("DB_CRM_USER", "root");
define("DB_CRM_PASS", "PropTiger1");
define("DB_CRM_NAME", "ptigercrm");
// Curl call URL
define("SERVER_URL", "http://www.proptiger.com");
define("SEND_EMAIL", TRUE);
define("RESALE_EMAIL", "[email protected]");
define("RESALE_GROUP_EMAIL", "[email protected]");
define("CLOUDAGENT_RELEASE_USER_URL", "http://cloudagent.in/CAServices/ReleaseOfflineAgent.php?");
define("CLOUDAGENT_CALL_URL", "http://cloudagent.in/CAServices/PhoneManualDial.php?");
define("CLOUDAGENT_USER", "proptiger");
define("CLOUDAGENT_KEY", "KK6553cb21f45e304ffb6c8c92a279fde5");
define("IMAGE_SERVICE_URL","http://qa.proptiger-ws.com:8080/data/v1/entity/image");
define("AUDIO_SERVICE_URL","http://qa.proptiger-ws.com:8080/data/v1/entity/audio");
define("SERVER_PATH_SOLR_RESTART", "/home/sysadmin/nightlytest.proptiger.com"); //for staging
//define("SERVER_PATH_SOLR_RESTART", "/home/sysadmin/production/"); //for server
define("USER_API_URL","http://coupon.proptiger-ws.com:8080/app/v1/register");
define("TYPEAHEAD_API_URL", "http://proptiger.com:8080/app/v1/typeahead");
}
?>