Al-HUWAITI Shell
Al-huwaiti


Server : LiteSpeed
System : Linux in-mum-web1112.main-hosting.eu 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64
User : u451330669 ( 451330669)
PHP Version : 8.2.27
Disable Function : NONE
Directory :  /home/u451330669/domains/thedeepenterprise.com/public_html/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/u451330669/domains/thedeepenterprise.com/public_html/admin/functions.inc.php
<?php
function pr($arr){
	echo '<pre>';
	print_r($arr);
}

function prx($arr){
	echo '<pre>';
	print_r($arr);
	die();
}

function get_safe_value($con,$str){
	if($str!=''){
		$str=trim($str);
		return mysqli_real_escape_string($con,$str);
	}
}

function get_product($con,$limit='',$cat_id='',$product_id='',$search_str='',$sort_order='',$is_best_seller='',$is_best_news='',$is_bollywood='',$is_jyotis=''){
	$sql="select product.*,categories.categories from product,categories where product.status=1 ";
	if($cat_id!=''){
		$sql.=" and product.categories_id=$cat_id ";
	}
	if($product_id!=''){
		$sql.=" and product.id=$product_id ";
	}
	if($is_best_seller!=''){
		$sql.=" and product.best_seller=1";
	}
	if($is_best_news!=''){
		$sql.=" and product.best_news=1";
	}
	if($is_bollywood!=''){
		$sql.=" and product.bollywood=1";
	}
	if($is_jyotis!=''){
		$sql.=" and product.jyotis=1";
	}
	$sql.=" and product.categories_id=categories.id";
	if($search_str!=''){
		$sql.=" and (product.name like '%$search_str%' or product.description like '%$search_str%') ";
	}
	if($sort_order!=''){
		$sql.=$sort_order;
	}else{
		$sql.=" order by product.id desc ";
	}
	if($limit!=''){
		$sql.=" limit $limit";
	}
	//echo $sql;
	$res=mysqli_query($con,$sql);
	$data=array();
	while($row=mysqli_fetch_assoc($res)){
		$data[]=$row;
	}
	return $data;
}

function get_video($con,$limit='',$video_id='',$search_str='',$sort_order=''){
	$sql="select * from video where video.status=1 ";
	
	if($video_id!=''){
		$sql.=" and video.id=$video_id ";
	}
	

	if($sort_order!=''){
		$sql.=$sort_order;
	}else{
		$sql.=" order by video.id desc ";
	}
	if($limit!=''){
		$sql.=" limit $limit";
	}
	//echo $sql;
	$res=mysqli_query($con,$sql);
	$data=array();
	while($row=mysqli_fetch_assoc($res)){
		$data[]=$row;
	}
	return $data;
}




function get_about($con,$limit='',$about_id='',$search_str='',$sort_order=''){
	$sql="select * from about where about.status=1 ";
	
	if($about_id!=''){
		$sql.=" and about.id=$about_id ";
	}
	

	if($sort_order!=''){
		$sql.=$sort_order;
	}else{
		$sql.=" order by about.id desc ";
	}
	if($limit!=''){
		$sql.=" limit $limit";
	}
	//echo $sql;
	$res=mysqli_query($con,$sql);
	$data=array();
	while($row=mysqli_fetch_assoc($res)){
		$data[]=$row;
	}
	return $data;
}

function get_application($con,$limit='',$application_id='',$search_str='',$sort_order=''){
	$sql="select * from application where application.status=1 ";
	
	if($colour_id!=''){
		$sql.=" and application.id=$application_id ";
	}
	

	if($sort_order!=''){
		$sql.=$sort_order;
	}else{
		$sql.=" order by application.id desc ";
	}
	if($limit!=''){
		$sql.=" limit $limit";
	}
	//echo $sql;
	$res=mysqli_query($con,$sql);
	$data=array();
	while($row=mysqli_fetch_assoc($res)){
		$data[]=$row;
	}
	return $data;
}

function wishlist_add($con,$uid,$pid){
	$added_on=date('Y-m-d h:i:s');
	mysqli_query($con,"insert into wishlist(user_id,product_id,added_on) values('$uid','$pid','$added_on')");
}
?>

Al-HUWAITI Shell