Files
MermsEmrWeb/providerwww/application/controllers/Register.php
T
Olusesan Ameye ccb6ccbe79 fix
2020-10-25 16:08:50 -04:00

43 lines
1.3 KiB
PHP

<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Register extends Web_Controller {
public function index() {
$data = array();
$this->renderExternalPage('register', $data);
}
private function RegisterAccount() {
$data = array();
// echo "xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ";
$data["practice_name"] = $this->input->post('practice_name');
$data["firstname"] = $this->input->post('firstname');
$data["lastname"] = $this->input->post('lastname');
$data["email"] = $this->input->post('email');
$data["password"] = $this->input->post('password');
$data["username"] = $this->input->post('username');
$this->renderExternalPage('register', $data);
}
public function resetpass() {
$data = array();
$this->renderExternalPage('resetpass', $data);
}
public function startacc() {
// echo "xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ";
$data = array();
if ($this->input->post()) {
$this->RegisterAccount();
} else {
$this->index();
}
}
}