Backend Service

This commit is contained in:
2019-03-12 00:18:56 +00:00
parent 639d4bd908
commit 8f31474141
4 changed files with 164 additions and 492 deletions
@@ -11,17 +11,24 @@ class Patient extends Provider_Controller {
public function addnew() {
$data = array();
$data["account_message"] = "";
$data["firstname"] = $data["lastname"] = $data["email"] = $data["password"]= $data["street1"] = $data["street2"]= $data["city"] = $data["zipcode"]="";
$data["account_message"] = "";
$data["firstname"] = $data["lastname"] = $data["email"] = $data["password"]= $data["street1"] = $data["street2"]= $data["city"] = $data["zipcode"]="";
if ($_POST){
$data['password'] = trim($this->input->post('password'));
$data['practice_id'] = $_SESSION['practice_id'];
$data['practice_user_id'] = $_SESSION['practice_id'];
$data['username'] = "NON-USER-".rand(1000000,99999999);
$data['password'] = "NON-USER-".rand(1000000,99999999);
$data['country'] = "NG";
$data['firstname'] = trim($this->input->post('firstname'));
$data['lastname'] = trim($this->input->post('lastname'));
$data['email'] = trim($this->input->post('email'));
$data['password'] = trim($this->input->post('password'));
$data['street1'] = trim($this->input->post('street1'));
$data['street2'] = trim($this->input->post('street2'));
$data['city'] = trim($this->input->post('city'));
$data['state'] = trim($this->input->post('state'));
$data["loc"] = $_SERVER["REMOTE_ADDR"];
$data["action"] = MERMS_PROVIDERS_CREATEMEMBER;
$out = array();