Post-launch updates

This commit is contained in:
Ron Bronson 2017-10-11 16:29:00 -04:00
parent 0340a6c524
commit 598a4cbc0a
2 changed files with 6 additions and 3 deletions

View File

@ -6,7 +6,7 @@
* @license http://www.gnu.org/licenses/agpl.txt GNU/AGPL, see LICENSE.txt * @license http://www.gnu.org/licenses/agpl.txt GNU/AGPL, see LICENSE.txt
* @author Cliff Ingham <inghamn@bloomington.in.gov> * @author Cliff Ingham <inghamn@bloomington.in.gov>
*/ */
$serviceURL = new URL($_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']); $serviceURL = new URL('https://'.BASE_HOST.$_SERVER['REQUEST_URI']);
$serviceURL->purgeEmptyParameters(); $serviceURL->purgeEmptyParameters();
$serviceURL->format = 'xml'; $serviceURL->format = 'xml';
echo " echo "

View File

@ -28,8 +28,11 @@ Zend_Loader_Autoloader::getInstance();
* The URL to get to this site * The URL to get to this site
* Do NOT use a trailing slash * Do NOT use a trailing slash
*/ */
define('BASE_URL','http://localhost/application_name'); define('BASE_URI' , '/burials');
define('BASE_URI', '/application_name'); define('BASE_HOST', isset($_SERVER['HTTP_X_FORWARDED_HOST'])
? $_SERVER['HTTP_X_FORWARDED_HOST']
: 'tarantula.bloomington.in.gov');
define('BASE_URL' , "http://".BASE_HOST.BASE_URI);
/** /**
* Used when there's an error on the site. The Framework will * Used when there's an error on the site. The Framework will