if ("test.findwhere.com:9021".equals(request.getRemoteHost())) {
// TEST
else if (Country.equals("XS"))db_CONFIGTYPE = "sxlof";
} else if ("staging.findwhere.com".equals(request.getRemoteHost())){
// STAGING
else if (Country.equals("XS"))db_CONFIGTYPE = "sxlof";
} else {
// LIVE
else if (Country.equals("XS"))db_CONFIGTYPE = "sxwf";
}
if (Country.equals("US"))db_CONFIGTYPE = "sulof";
else if (Country.equals("DE"))db_CONFIGTYPE = "edlof";
else if (Country.equals("CA"))db_CONFIGTYPE = "sulof";
else if (Country.equals("AU"))db_CONFIGTYPE = "ualof";
/***********************************************
And here's the switch!!
***********************************************/
if ("test.findwhere.com:9021".equals(request.getRemoteHost())) {
// TEST
else if (Country.equals("XS"))db_CONFIGTYPE = "sxlof";
} else if ("staging.findwhere.com".equals(request.getRemoteHost())){
// STAGING
else if (Country.equals("XS"))db_CONFIGTYPE = "sxlof";
} else {
// LIVE
else if (Country.equals("XS"))db_CONFIGTYPE = "sxwf";
}
/*** Done switching ***/
else if (Country.equals("KZ"))db_CONFIGTYPE = "zklof";
else if (Country.equals("AC"))db_CONFIGTYPE = "calof";
DebugLog.write("Country2 = "+Country+FileNwline);
if ("test.findwhere.com:9021".equals(request.getRemoteHost())&&(Country.equals("XS"))) {
// TEST
db_CONFIGTYPE = "sxlof";
if (Country.equals("US")) {
db_CONFIGTYPE = "sulof";
} else if (Country.equals("DE")) {
db_CONFIGTYPE = "edlof";
} else if (Country.equals("CA")) {
db_CONFIGTYPE = "sulof";
} else if (Country.equals("AU")) {
db_CONFIGTYPE = "ualof";
} else if (Country.equals("XS")) {
/***********************************************
And here's the switch!!
***********************************************/
if ("test.findwhere.com:9021".equals(request.getRemoteHost())) {
// TEST
db_CONFIGTYPE = "sxlof";
} else if ("staging.findwhere.com".equals(request.getRemoteHost())) {
// STAGING
db_CONFIGTYPE = "sxlof";
} else {
// LIVE
db_CONFIGTYPE = "sxwf";
}
/*** Done switching ***/
}
else if (Country.equals("KZ")) {
db_CONFIGTYPE = "zklof";
} else if (Country.equals("AC")) {
db_CONFIGTYPE = "calof";
}
DebugLog.write("Country2 = " + Country + FileNwline);