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/www/application/controllers/news/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

class News extends CI_Controller
{


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

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

        $sql=$this->db->query("SELECT * from page where page_name='Industry News'");
        $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();

       
        $data['news'] = $this->newsmodel->getNews();
        $data['featured'] =$this->newsmodel->getFeaturedNews();
        $data['links'] =$this->newsmodel->getLinkdln();

        $this->load->view('inc/header',$data);   
        $this->load->view('news/index', $data);
        $this->load->view('inc/footer',$data);
    }

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

  $config = array();
  $config["base_url"] = '#';
  $config['total_rows'] = $this->newsmodel->count_all();
  $config['per_page'] = 10;
  $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->newsmodel->fetch_data($config["per_page"], $start)
  );
  echo json_encode($output);
  
  
 }
 
public function news_details($id)
{
    $this->load->helper(array('form', 'url', 'common'));
    $this->load->library(array('session','pagination')); 
   $this->load->model('newsmodel', '', true);
  $this->load->model('homemodel', '', true);
    
    $slug = $this->uri->segment(2);
 
   $sql = $this->db->query("SELECT id,slug,meta_title,meta_description,featured_image from news 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['news_image'] =$image;
   
    
    $data['record']=$this->newsmodel->get_details($slug);
    $data['related'] =$this->newsmodel->get_Related($id);
    
      $data['category'] = $this->homemodel->getCategory();
       $data['subcategorys'] =$this->homemodel->getSubCategory();

    $this->load->view('inc/header',$data);   
    $this->load->view('news/news-detail',$data);
    $this->load->view('inc/footer',$data);

}


}

Youez - 2016 - github.com/yon3zu
LinuXploit