403Webshell
Server IP : 68.178.202.69  /  Your IP : 216.73.216.122
Web Server : Apache
System : Linux 69.202.178.68.host.secureserver.net 3.10.0-1160.139.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Nov 3 13:30:41 UTC 2025 x86_64
User : ikioworld ( 1005)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/ikioworld/public_html/application/controllers/project/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/ikioworld/public_html/application/controllers/project/Project.php
<?php
defined('BASEPATH') or exit('No direct script access allowed');

class Project extends CI_Controller
{


public function index()
    {
        $this->load->helper(array('form', 'url', 'common'));
        $this->load->library(array('session','pagination')); 

        $this->load->model('projectmodel', '', true);

        $this->load->model('homemodel', '', true);

        $sql=$this->db->query("SELECT * from page where page_name='Completed Projects/Case Study'");
        $result = $sql->result();
        
        $title = $result[0]->page_title;
        $meta_title = $result[0]->meta_title;
        $meta_d =$result[0]->meta_description;
        $image = $result[0]->page_image;
        
        
        $data['title'] = $title ." || IKIO LED LIGHTING";
        $data['meta_title'] = $meta_title ."  || IKIO LED LIGHTING";
        $data['meta_description'] = $meta_d ."  || IKIO LED LIGHTING";
        $data['image'] = $image;

        $data['category'] = $this->homemodel->getCategory();
        $data['subcategorys'] =$this->homemodel->getSubCategory();
       
        $this->load->view('inc/header',$data);   
        $this->load->view('project/index', $data);
        $this->load->view('inc/footer',$data);
    }


function fetch_data()
 {
  sleep(1);
  $this->load->model('projectmodel','',TRUE);
  
  $this->load->helper(array('form', 'url','common'));
  $this->load->library(array('session', 'pagination','cart'));
  
    $limit = $this->input->post('limit');

  $config = array();
  $config["base_url"] = '#';
  $config['total_rows'] = $this->projectmodel->count_all();
  $config['per_page'] = $limit;
  $config['uri_segment'] = 3;
  $config['use_page_numbers'] = TRUE;
  $config['full_tag_open'] = '<ul class="pagination">';
  $config['full_tag_close'] = '</ul>';
  $config['first_tag_open'] = '<li>';
  $config['first_tag_close'] = '</li>';
  $config['last_tag_open'] = '<li>';
  $config['last_tag_close'] = '</li>';
  $config['next_link'] = '&gt;';
  $config['next_tag_open'] = '<li>';
  $config['next_tag_close'] = '</li>';
  $config['prev_link'] = '&lt;';
  $config['prev_tag_open'] = '<li>';
  $config['prev_tag_close'] = '</li>';
  $config['cur_tag_open'] = "<li class='active'><a href='#'>";
  $config['cur_tag_close'] = '</a></li>';
  $config['num_tag_open'] = '<li>';
  $config['num_tag_close'] = '</li>';
  $config['num_links'] = 3;
  $this->pagination->initialize($config);
  $page = $this->uri->segment(3);
  $start = ($page - 1) * $config['per_page'];
  $output = array(
   'pagination_link'  => $this->pagination->create_links(),
   'product_list'   => $this->projectmodel->fetch_data($config["per_page"], $start)
  );
  echo json_encode($output);
  
  
 }

   public function projectdetail($id)
   {
       $this->load->helper(array('form', 'url', 'common'));
       $this->load->library(array('session', 'pagination','mathcaptcha','cart'));
       $this->load->model('projectmodel', '', true);
       $this->load->model('homemodel', '', true);
       $data['category'] = $this->homemodel->getCategory();
        $data['subcategorys'] =$this->homemodel->getSubCategory();

    $slug = $this->uri->segment(2);

 
    $sql = $this->db->query("SELECT id,slug,meta_title,meta_description,featured_image from project where slug='$slug'");
     
    $result = $sql->result();
       
    $id = $result[0]->id;
    $slug =$result[0]->slug;
    $meta =$result[0]->meta_title;
    $meta_description =$result[0]->meta_description;
    $image =$result[0]->featured_image;
   
   
    $data['title'] = $meta ." || IKIO";
    $data['meta_title'] = $meta . " || IKIO";
    $data['meta_description'] =$meta_description ." || IKIO";
    $data['project_image'] =$image;
    
     
   
       if (!empty($this->input->post())) {
           
           $answ = $_POST['answer'];

           if($answ!="") {
               $insert_id = $this->projectmodel->addEnquiry($this->input->post()); 
           //  echo "<script>swal('Good job!', 'You clicked the button!', 'success');</script>";
           }
           else{
               $this->session->set_flashdata('err_msg', 'Captcha answer is incorrect');
           }
       }

      
      
       $this->mathcaptcha->init();
           
       $data['math_captcha_question'] = $this->mathcaptcha->get_question();
       $data['number1'] = $_SESSION['mathcaptcha_number1'];
       $data['number2'] =$_SESSION['mathcaptcha_number2'];
       $data['answer'] = $_SESSION['mathcaptcha_answer'];
       
       

       $data['record']=$this->projectmodel->get_details($slug);

       $data['prods']=$this->projectmodel->get_Prods($slug);
     
       $this->load->view('inc/header',$data);
       $this->load->view('project/project-details', $data);
       $this->load->view('inc/footer',$data);
   }


}

Youez - 2016 - github.com/yon3zu
LinuXploit