sprint 3 partial delivery
Showing
application/controllers/Print.php
0 → 100644
| <?php | |||
| defined('BASEPATH') OR exit('No direct script access allowed'); | |||
| class Print extends CI_Controller { | |||
| function __construct() | |||
| { | |||
| parent::__construct(); | |||
| $this->load->model('Home_model'); | |||
| $this->load->model('Patient_model'); | |||
| } | |||
| /*PRINT CONTROLLER */ | |||
| public function index() | |||
| { | |||
| } | |||
| /*FUNCTION FOR SENTING CONFRIMATION CODE FOR ACCOUNT DELETION - PATIENT AND DOCTOR*/ | |||
| /*public function sentConfirmationcode($user) | |||
| { | |||
| $characters = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'; | |||
| $result = ''; | |||
| for ($i = 0; $i < 8; $i++) | |||
| $result .= $characters[mt_rand(0, 35)]; | |||
| $msg = "Hi Jithin,</br></br>Your Confirmation Code for Ipok Account Deactivation is ".$result.". | |||
| </br></br>Ipok Team"; | |||
| $this->send_mail($msg,'[email protected]','Account Deactivation'); | |||
| //print_r($msg); | |||
| } | |||
| public function send_mail($msg,$email,$sub){ | |||
| $settings = $this->db->get('settings')->row(); | |||
| //print_r($settings); | |||
| $configs = array( | |||
| 'protocol'=>'smtp', | |||
| 'smtp_host'=>$settings->smtp_host, | |||
| 'smtp_user'=>$settings->smtp_username, | |||
| 'smtp_pass'=>$settings->smtp_password, | |||
| 'smtp_port'=>'587', | |||
| 'smtp_timeout'=>20, | |||
| 'mailtype' => 'html', | |||
| 'charset' => 'iso-8859-1', | |||
| 'wordwrap' => TRUE | |||
| ); | |||
| $this->load->library('email', $configs); | |||
| $this->email->initialize($configs); | |||
| $this->email->set_newline("\r\n"); | |||
| $this->email | |||
| ->from($settings->admin_email, 'Ipok') | |||
| ->to($email) | |||
| ->subject($sub) | |||
| ->message($msg); | |||
| $this->email->send(); | |||
| } | |||
| */ | |||
| } | |||
303 KB
254 KB
4.62 KB
32.8 KB
No preview for this file type