403Webshell
Server IP : 103.48.194.25  /  Your IP : 216.73.216.74
Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33
System : Linux VMHostDefault 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64
User : sieuthimay ( 1016)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/namduongmarket.com-bk/public_html/site/components/home/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/namduongmarket.com-bk/public_html/site/components/home/controllers/home.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Home extends MX_Controller 
{
	function __construct()
	{
		parent::__construct();
		$this->load->model('home_model','home');
		//$this->load->model('common_model','cm');
	}
	
	public function index()
	{
		$data['list_cat'] = $this->home->get_category_home();
		$data['list_news'] = $this->home->get_home_news();
		$data['list_products'] = $this->home->product_promo(); 
		
		/*$data['rs_banner'] = $this->home->get_bn_home_full();*/
		
		$cfg = get_cauhinh();	
		$data['metatitle'] 	= $cfg->site_title;
		$data['metadesc']	= $cfg->site_desc;
		$data['metakey'] 	= $cfg->site_keyword;
		$data['metaimg'] 	= '';	//$cfg->metatitle;
		$data['canonical'] 	= site;
		
		
		$data['page'] = 'index' ;
		$this->load->view('skin_home', $data);
	}
	
	function img_marquery()
	{
		$catid=(int)$this->uri->segment(3);
		$data['list_img']=$this->home->get_category($catid,4,0);
		$this->load->view("home/marquery",$data);
	}
	
	function maincat_bottom()
	{
		$str = '';
		$list_cate = $this->home->get_maincat(); 
		foreach ($list_cate as $rs) :
			$link = site.'danh-muc/'.$rs->cat_alias.'-'.$rs->catid.'.html';
			$str .= '<li class="menu-item"><a href="'.$link.'">'.$rs->cat_name.'</a></li>';
		endforeach ;
		echo $str ;
	}	
	
	/*function clearpopup()
	{
		$is_popup = isset($_SESSION['popup']) ? $_SESSION['popup'] : 1;
	}*/
}

?>

Youez - 2016 - github.com/yon3zu
LinuXploit