From d0ba0fe7d87171e79f0cf38b073b9d454e868b68 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Fri, 6 Feb 2015 16:53:29 -0800 Subject: contacts can be shared among customers / "duplicate contact emails", ng_selfservice login, RT#27943 --- ng_selfservice/process_select_cust.php | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 ng_selfservice/process_select_cust.php (limited to 'ng_selfservice/process_select_cust.php') diff --git a/ng_selfservice/process_select_cust.php b/ng_selfservice/process_select_cust.php new file mode 100644 index 000000000..fe3612157 --- /dev/null +++ b/ng_selfservice/process_select_cust.php @@ -0,0 +1,32 @@ +switch_cust( array( + 'session_id' => $_COOKIE['session_id'], + 'custnum' => $_POST['custnum'], +) ); + +#error_log("[switch_cust] received response from freeside: $response"); + +$error = $response['error']; + +if ( $error ) { + + //this isn't well handled... but the only possible error is a session timeout? + + header('Location:index.php?username='. urlencode($username). + '&domain='. urlencode($domain). + '&email='. urlencode($email). + '&error='. urlencode($error) + ); + die(); + +} + +// sucessful customer selection + +header("Location:main.php"); + +?> -- cgit v1.2.1