From e9d432bf14befb7ccf1bd72ec435df000c02796b Mon Sep 17 00:00:00 2001 From: Brady Miller Date: Sun, 23 Oct 2016 19:46:30 -0700 Subject: [PATCH] change registration service to communicate via ssl --- interface/globals.php | 3 --- interface/product_registration/product_registration_service.php | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/interface/globals.php b/interface/globals.php index 70f66cf39..37ec9b0fc 100644 --- a/interface/globals.php +++ b/interface/globals.php @@ -493,7 +493,4 @@ if ($fake_register_globals) { extract($_GET,EXTR_SKIP); extract($_POST,EXTR_SKIP); } - -// Remote OpenEMR server for registration service (https://github.com/openemr/product_registration) -$GLOBALS['remote_openemr_server'] = 'http://product-registration-dev2.us-east-1.elasticbeanstalk.com/api/registration'; ?> diff --git a/interface/product_registration/product_registration_service.php b/interface/product_registration/product_registration_service.php index 8b26c90a6..9d630ec6d 100644 --- a/interface/product_registration/product_registration_service.php +++ b/interface/product_registration/product_registration_service.php @@ -53,7 +53,7 @@ class ProductRegistrationService { } private function optInStrategy($email) { - $curl = curl_init($GLOBALS['remote_openemr_server']); + $curl = curl_init('https://reg.open-emr.org/api/registration'); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query(array('email' => $email))); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); -- 2.11.4.GIT