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/khonguyenlieu.vn/public_html/site/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/khonguyenlieu.vn/public_html/site/controllers/news.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class News extends CI_Controller 
{
	protected $_templates;
	
	function __construct() 
	{
		parent::__construct();
		$this->load->model('news_model','news');
	}
	
	public function index()
	{
		$data['title'] = 'Tin tức' ;
		$data['list'] = $this->news->get_newsest(6, 0) ;
		$data['list_cate'] = $this->news->get_newsest_cate(1, 6, 0) ;
		$data['category'] = $this->news->category_top() ;
		$data['list_xemnhieu'] = $this->news->tin_xem_nhieu(10,0) ;
		$data['list_pro'] = $this->news->list_product();
		
		$data['metatitle'] = "Hướng dẫn pha chế trà sữa trân châu";
		$data['metadesc'] = "Hướng dẫn pha chế các loại nước uống trà sữa, giới thiệu thương hiệu, các sản phẩm dùng trong trà sữa";
		$data['metakey'] = "kho nguyên liệu, nguyên liệu pha chế, pha chế trà sữa, trân châu";
		$data['metaimg'] = urlimg.'metaimg.jpg';
		$data['canonical'] = site."tin-tuc.html";
		
		$data['page'] = 'news/index';
		$this->load->view("html/skin_news",$data);	
	}

	function category($alias='',$start=0)
	{
		$catid = (int)get_id_from_alias($alias) ;
		
		$data['start'] = (int) $start ; 
		
		$config['base_url'] 	= site.'nhom-tin/'.$alias;  
		$data['num'] 			= $this->news->count_all_catid($catid);
		$config['total_rows'] 	= $data['num'];
		$config['per_page'] 	= 20;
		$config['uri_segment'] 	= 4;
		$config['num_links'] 	= 3 ;
		$this->pagination->initialize($config);   
		$data['pagination'] 	= $this->pagination->create_links();
		
		$data['rs'] = $this->news->get_category_detail($catid);
		$data['list']= $this->news->get_catid($catid, $config['per_page'], $data['start']);
		$data['list_xemnhieu'] = $this->news->tin_xem_nhieu(10,0) ;
		$data['list_pro'] = $this->news->list_product();
		
		$data['metatitle'] = $data['rs']->lb_category;
		$data['metadesc'] = $data['rs']->lb_category." những nguyên liệu sản phẩm dùng trong pha chế nước uống tuổi teen cho các cửa hàng, quán nước giải khát trà chanh".$start;
		$data['metakey'] = $data['rs']->lb_category." những nguyên liệu sản phẩm dùng trong pha chế nước uống tuổi teen các cửa hàng, quán nước giải khát trà chanh".$start;
		$data['canonical'] = site."nhom-tin/".alias($data['rs']->lb_category)."-".$data['rs']->category_id.".html";
		$data['metaimg'] = '';	//$data['rs']->lb_image? urlimg.'news/'.$data['rs']->lb_image : urlimg.'metaimg.jpg';
		
		$data['page'] = 'news/category';
		$this->load->view('html/skin_news', $data);
	}
	
	function detail($alias='')
	{
		$id = (int)get_id_from_alias($alias);
		
		$data['rs'] = $this->news->get_id($id); 
		if(empty($data['rs'])) redirect(site.'tin-tuc.html');
		
		$data['rs_cat'] = $this->news->get_category_detail($data['rs']->category_id); 
		$data['list_cat'] = $this->news->get_list_sub($data['rs']->category_id,10);
		$data['list_pro'] = $this->news->list_product();
		
		$data['metatitle'] = !empty($data['rs']->metatitle)? $data['rs']->metatitle : $data['rs']->lb_title ;
		$data['metadesc'] = !empty($data['rs']->metadesc)? $data['rs']->metatitle : str_limit(strip_tags($data['rs']->lb_content),250);
		$data['metakey'] = $data['rs']->metakey;
		$data['metaimg'] = $data['rs']->lb_image? urlimg.'news/'.$data['rs']->lb_image : urlimg.'metaimg.jpg';
		$data['canonical'] = site.'tin-chi-tiet/'.alias($data['rs']->lb_title).'-'.$data['rs']->news_id.'.html' ;
		
		$data['page'] = 'news/detail' ;
		$this->load->view('html/skin_news', $data);
	}
}

?>

Youez - 2016 - github.com/yon3zu
LinuXploit