403Webshell
Server IP : 103.48.194.25  /  Your IP : 216.73.217.33
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 : 8.2.20
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/galaxynail.com/site/helpers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/galaxynail.com/site/helpers//app_helper.php
<?php
function get_home_banner($num=5)
{
	$ci = get_instance();
	$ci->db->where('bl_active',1);
	$query = $ci->db->get('productbanner',$num,0);
	return $query->result();
}
function get_tietkiem($price_old,$price)
{
	if($price_old){
		$cost = $price_old - $price;
		return pricevn($cost);
	}else
		return $price;
}
function get_checkout($price=0,$pricekm=0)
{
	if(empty($price)) return 0;
	$cost = $price - $pricekm;
	$percent = ($cost * 100)/$price;
	return round($percent);
}
function op_category()
{
	$ci = get_instance();
	$list = $ci->db->query('select * from category where parent_id=0 order by nb_order asc')->result() ;
	$str = '<option value="0"> Tất cả </option>' ;
	foreach ($list as $rs) :
		$str .= '<option value="'.$rs->catid.'">'.$rs->cat_name.'</option>' ;
	endforeach ;
	return $str ;
}
function get_hot_product($num=5)
{
	$ci = get_instance();
	$ci->db->where('bl_active',1);
	$ci->db->where('is_hot',1);
	$ci->db->order_by('nb_view',"asc");
	$query = $ci->db->get('product',$num,0);
	return $query->result();
}
function get_hot_news()
{
	$ci =& get_instance();
	$ci->db->where('bl_active',1);
	//$ci->db->where('is_hot',0);
	$ci->db->order_by('nb_order','desc');
    $query = $ci->db->get('news',15,0);
	return $query->result();
}
function get_pro_status($status=1)
{
	switch($status){
		case 1 :
			return 'Còn hàng'; break;
		default:
			return 'Hết hàng'; break;	
	}
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit