Hackfut Security File Manager
Current Path:
/home/u126195517/domains/foodstamping.in/public_html
home
/
u126195517
/
domains
/
foodstamping.in
/
public_html
/
📁
..
📄
.vanta_notified
(8 B)
📄
1log.php
(51.35 KB)
📄
about.php
(10.64 KB)
📁
admin
📁
assets
📄
blue1.php
(93.4 KB)
📄
cart-action.php
(2.99 KB)
📄
check-pincode.php
(1.28 KB)
📄
checkout.html
(25.66 KB)
📁
config
📄
contact.php
(7.99 KB)
📄
footer.php
(5.85 KB)
📄
forgot-password.php
(6.49 KB)
📄
header-menu.php
(5.13 KB)
📄
index.php
(32.32 KB)
📄
login.html
(16.37 KB)
📄
login.php
(18.64 KB)
📄
logout.php
(478 B)
📁
models
📄
payment.html
(33.43 KB)
📄
product-single.html
(23.7 KB)
📄
product-single.php
(29.79 KB)
📄
products.php
(26.16 KB)
📄
profile.php
(15.54 KB)
📄
robots.txt
(2.62 KB)
📁
shop
📄
slider.php
(1.57 KB)
📁
uploads
📄
v3.php
(20.86 KB)
Editing: index.php
<?php error_reporting(0); session_start(); require_once 'config/database.php'; $database = new Database(); $db = $database->getConnection(); // Get featured products $featured_query = "SELECT p.*, c.name as category_name FROM products p LEFT JOIN categories c ON p.category_id = c.id WHERE p.status = 1 AND p.featured = 1 ORDER BY RAND() LIMIT 4"; $featured_stmt = $db->prepare($featured_query); $featured_stmt->execute(); $featured_products = $featured_stmt->fetchAll(PDO::FETCH_ASSOC); // Get best products (top viewed or top selling) $best_query = "SELECT p.*, c.name as category_name FROM products p LEFT JOIN categories c ON p.category_id = c.id WHERE p.status = 1 ORDER BY p.views DESC, p.average_rating DESC LIMIT 6"; $best_stmt = $db->prepare($best_query); $best_stmt->execute(); $best_products = $best_stmt->fetchAll(PDO::FETCH_ASSOC); // Get new arrivals $new_query = "SELECT p.*, c.name as category_name FROM products p LEFT JOIN categories c ON p.category_id = c.id WHERE p.status = 1 ORDER BY p.created_at DESC LIMIT 4"; $new_stmt = $db->prepare($new_query); $new_stmt->execute(); $new_products = $new_stmt->fetchAll(PDO::FETCH_ASSOC); // Get categories with product count $cat_query = "SELECT c.*, COUNT(p.id) as product_count FROM categories c LEFT JOIN products p ON c.id = p.category_id AND p.status = 1 WHERE c.status = 1 GROUP BY c.id ORDER BY product_count DESC LIMIT 6"; $cat_stmt = $db->prepare($cat_query); $cat_stmt->execute(); $categories = $cat_stmt->fetchAll(PDO::FETCH_ASSOC); // Get testimonials/reviews $review_query = "SELECT r.*, p.name as product_name FROM product_reviews r LEFT JOIN products p ON r.product_id = p.id WHERE r.status = 1 AND r.rating >= 4 ORDER BY r.rating DESC, r.created_at DESC LIMIT 6"; $review_stmt = $db->prepare($review_query); $review_stmt->execute(); $reviews = $review_stmt->fetchAll(PDO::FETCH_ASSOC); // Get statistics for banner $stats_query = "SELECT (SELECT COUNT(*) FROM products WHERE status = 1) as total_products, (SELECT COUNT(*) FROM categories WHERE status = 1) as total_categories, (SELECT COUNT(*) FROM product_reviews WHERE status = 1) as total_reviews, (SELECT COUNT(*) FROM orders WHERE status = 'delivered') as happy_customers"; $stats_stmt = $db->prepare($stats_query); $stats_stmt->execute(); $stats = $stats_stmt->fetch(PDO::FETCH_ASSOC); ?> <!doctype html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>Electric Heat Stamp, Common Seal, Paper Embosser, Wax Seal & Ice Stamp | FoodStamping.in</title> <meta name="description" content="Buy Electric Heat Stamp, Common Seal, Paper Embosser, Wax Seal and Ice Stamp online. Premium stamping tools with fast delivery across India."> <meta name="keywords" content="Electric Heat Stamp, Common Seal, Paper Embosser, Wax Seal, Ice Stamp, Heat Branding Stamp, Seal Maker, Embosser Maker, Stamping Tools"> <link rel="canonical" href="https://foodstamping.in/"> <!-- Open Graph --> <meta property="og:title" content="Electric Heat Stamp, Common Seal, Paper Embosser, Wax Seal & Ice Stamp"> <meta property="og:description" content="Shop premium stamping products like Electric Heat Stamp, Common Seal, Wax Seal, Paper Embosser & Ice Stamp. Fast delivery across India."> <meta property="og:image" content="https://foodstamping.in/assets/images/og-main.jpg"> <meta property="og:url" content="https://foodstamping.in/"> <meta property="og:type" content="website"> <!-- Twitter --> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:title" content="Electric Heat Stamp, Common Seal, Wax Seal & Embosser"> <meta name="twitter:description" content="High-quality stamping tools including Electric Heat Stamp, Common Seal, Paper Embosser, Wax Seal & Ice Stamp."> <meta name="twitter:image" content="https://foodstamping.in/assets/images/twitter-card.jpg"> <!--favicon--> <link rel="icon" href="assets/images/favicon-32x32.png" type="image/png"> <!-- google fonts --> <link href="//fonts.googleapis.com/css2?family=Kumbh+Sans:wght@300;400;700&display=swap" rel="stylesheet"> <!-- Template CSS --> <link rel="stylesheet" href="assets/css/style-liberty.css"> <style> .product-badge { position: absolute; top: 10px; right: 10px; z-index: 1; } .discount-badge { background: #ff4444; color: white; padding: 5px 10px; border-radius: 5px; font-size: 12px; font-weight: bold; } .new-badge { background: #4CAF50; color: white; padding: 5px 10px; border-radius: 5px; font-size: 12px; font-weight: bold; } .category-card { background: #f8f9fa; border-radius: 10px; padding: 20px; text-align: center; transition: all 0.3s ease; cursor: pointer; } .category-card:hover { transform: translateY(-5px); box-shadow: 0 5px 20px rgba(0,0,0,0.1); } .stats-counter { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 50px 0; margin-top: 50px; } .counter-item { text-align: center; } .counter-number { font-size: 3rem; font-weight: bold; } .product-rating { color: #ffc107; font-size: 14px; } .price-info { margin-top: 10px; } .original-price { text-decoration: line-through; color: #999; font-size: 14px; } .sale-price { color: #ff4444; font-weight: bold; font-size: 18px; } </style> <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [ { "@type": "ListItem", "position": 1, "name": "Home", "item": "https://foodstamping.in/" } ] } </script> <script> { "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [ { "@type": "ListItem", "position": 1, "name": "Home", "item": "https://foodstamping.in/" } ] } </script> </head> <body> <!--/Header--> <?php include_once('header-menu.php'); ?> <!--//Header--> <section class="w3mid-gap"></section> <!--/main-slider --> <section class="w3l-main-slider banner-slider" id="home"> <div class="owl-one owl-carousel owl-theme"> <div class="item"> <div class="slider-info banner-view bg-vedio-1"> <div class="banner-info"> <div class="container"> <div class="banner-info-bg"> <h5>Quality Stamps & Seals Since 1975</h5> <p class="mt-md-4 mt-3">Get the best electric heat stamps, wax seals, and embossers for your business needs.</p> <a class="btn btn-style btn-white mt-sm-5 mt-4 me-2" href="products.php">Shop Now</a> <a class="btn btn-style btn-outline-light mt-sm-5 mt-4" href="about.php">Learn More</a> </div> </div> </div> </div> </div> <div class="item"> <div class="slider-info banner-view banner-top1 bg-vedio-2"> <div class="banner-info"> <div class="container"> <div class="banner-info-bg"> <h5>Special Offer: Flat 50% OFF on All Stamps</h5> <p class="mt-md-4 mt-3">Limited time offer on our premium collection of stamps and sealing products.</p> <a class="btn btn-style btn-white mt-sm-5 mt-4 me-2" href="products.php">Shop Now</a> </div> </div> </div> </div> </div> </div> </section> <!-- //main-slider --> <!-- /Free-Ship--> <section class="w3free-ship text-center py-md-5 py-4"> <div class="container"> <h2>Welcome to A-1 Common Seal Food Stamping Business! <i class="fas fa-shipping-fast ms-lg-3"></i> </h2> <p class="mt-3">Free Shipping on Orders Above Rs. 1000 | Same Day Delivery in Mumbai</p> </div> </section> <!--//Free-Ship--> <!--/Categories Section--> <?php if(count($categories) > 0): ?> <section class="categories-section py-5"> <div class="container py-md-4"> <h3 class="title-w3l text-center mb-5">Shop by Categories</h3> <div class="row"> <?php foreach($categories as $category): ?> <div class="col-lg-2 col-md-4 col-6 mb-4"> <a href="products.php?category=<?php echo $category['id']; ?>" class="text-decoration-none"> <div class="category-card"> <i class="fas fa-stamp fa-3x mb-3 text-primary"></i> <h5><?php echo htmlspecialchars($category['name']); ?></h5> <p class="text-muted"><?php echo $category['product_count']; ?> Products</p> </div> </a> </div> <?php endforeach; ?> </div> </div> </section> <?php endif; ?> <!--/bottom-3-grids--> <div class="w3l-3-grids py-5" id="grids-3"> <div class="container py-md-4"> <div class="row"> <?php // Get top 2 featured products for banners $banner_products = array_slice($featured_products, 0, 2); foreach($banner_products as $index => $product): $discount = 0; if($product['original_price'] > $product['price']) { $discount = round((($product['original_price'] - $product['price']) / $product['original_price']) * 100); } ?> <div class="col-md-6 mt-md-0 <?php echo $index > 0 ? 'mt-4' : ''; ?>"> <div class="grids3-info position-relative"> <a href="product-single.php?id=<?php echo $product['id']; ?>" class="d-block zoom"> <img src="<?php echo $product['image_primary']; ?>" alt="<?php echo htmlspecialchars($product['name']); ?>" class="img-fluid news-image"> </a> <?php if($discount > 0): ?> <div class="product-badge"> <span class="discount-badge"><?php echo $discount; ?>% OFF</span> </div> <?php endif; ?> <div class="w3-grids3-info"> <h4 class="gdnhy-1"> <a href="product-single.php?id=<?php echo $product['id']; ?>"> <?php echo htmlspecialchars($product['name']); ?> </a> <a class="w3item-link btn btn-style mt-4" href="product-single.php?id=<?php echo $product['id']; ?>"> Shop Now <i class="fas fa-arrow-right ms-2"></i> </a> </h4> </div> </div> </div> <?php endforeach; ?> </div> </div> </div> <!--//bottom-3-grids--> <!-- Best Products Section --> <?php if(count($best_products) > 0): ?> <section class="w3l-witemshny-main py-5"> <div class="container py-md-4"> <h3 class="title-w3l mt-5 pt-lg-4">Our Best Products</h3> <div class="witemshny-grids row mt-lg-3"> <?php foreach($best_products as $product): $discount = 0; if($product['original_price'] > $product['price']) { $discount = round((($product['original_price'] - $product['price']) / $product['original_price']) * 100); } ?> <div class="col-xl-2 col-md-4 col-6 product-incfhny mt-4"> <div class="weitemshny-grid position-relative"> <a href="product-single.php?id=<?php echo $product['id']; ?>" class="d-block zoom"> <img src="<?php echo $product['image_primary']; ?>" alt="<?php echo htmlspecialchars($product['name']); ?>" class="img-fluid news-image"> </a> <?php if($discount > 0): ?> <div class="product-badge"> <span class="discount-badge"><?php echo $discount; ?>% OFF</span> </div> <?php endif; ?> </div> <h4 class="gdnhy-1 mt-4"> <a href="product-single.php?id=<?php echo $product['id']; ?>"> <?php echo htmlspecialchars($product['name']); ?> </a> </h4> <div class="price-info"> <?php if($product['original_price'] > $product['price']): ?> <span class="original-price">Rs.<?php echo number_format($product['original_price'], 0); ?></span> <?php endif; ?> <span class="sale-price">Rs.<?php echo number_format($product['price'], 0); ?></span> </div> <?php if($product['average_rating'] > 0): ?> <div class="product-rating"> <?php for($i = 1; $i <= 5; $i++): ?> <?php if($i <= floor($product['average_rating'])): ?> <i class="fa fa-star"></i> <?php else: ?> <i class="fa fa-star-o"></i> <?php endif; ?> <?php endfor; ?> <small>(<?php echo $product['total_reviews']; ?>)</small> </div> <?php endif; ?> </div> <?php endforeach; ?> </div> </div> </section> <?php endif; ?> <!-- Video Section --> <section class="w3l-index5 py-5" id="video"> <div class="new-block py-5"> <div class="container"> <div class="video-info"> <div class="title-content text-center"> <h3 class="title-w3l two mb-5">Electric Heat Stamp<br> Hot Stamp</h3> <p>Watch our products in action</p> </div> </div> <div class="history-info py-lg-5 align-self pt-0"> <div class="position-relative mt-lg-3 py-5 pt-lg-0"> <a href="#small-dialog" class="popup-with-zoom-anim play-view text-center position-absolute"> <span class="video-play-icon"> <span class="fa fa-play"></span> </span> </a> <div id="small-dialog" class="zoom-anim-dialog mfp-hide"> <iframe src="https://www.youtube.com/embed/dhQGlibAI0k?si=8Tg5BSaW0sTkG356" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe> </div> </div> </div> </div> </div> </section> <!-- Shop With Us Section --> <?php if(count($new_products) > 0): ?> <section class="w3l-ecommerce-main"> <div class="ecom-contenthny py-5"> <div class="container py-lg-5"> <h3 class="title-w3l">Shop With Us</h3> <p>Handpicked Favourites just for you</p> <div class="ecom-products-grids row mt-lg-4 mt-3"> <?php foreach($new_products as $product): $discount = 0; if($product['original_price'] > $product['price']) { $discount = round((($product['original_price'] - $product['price']) / $product['original_price']) * 100); } // Check if product is new (added within last 30 days) $date_added = strtotime($product['created_at']); $is_new = (time() - $date_added) < (30 * 24 * 60 * 60); ?> <div class="col-lg-3 col-6 product-incfhny mt-4"> <div class="product-grid2 shopv"> <div class="product-image2"> <a href="product-single.php?id=<?php echo $product['id']; ?>"> <img class="pic-1 img-fluid radius-image" src="<?php echo $product['image_primary']; ?>" alt="<?php echo htmlspecialchars($product['name']); ?>"> <img class="pic-2 img-fluid radius-image" src="<?php echo $product['image_secondary'] ?: $product['image_primary']; ?>" alt="<?php echo htmlspecialchars($product['name']); ?>"> </a> <?php if($is_new): ?> <div class="product-badge"> <span class="new-badge">NEW</span> </div> <?php elseif($discount > 0): ?> <div class="product-badge"> <span class="discount-badge"><?php echo $discount; ?>% OFF</span> </div> <?php endif; ?> <ul class="social"> <li> <a href="product-single.php?id=<?php echo $product['id']; ?>" data-tip="Quick View"> <span class="fa fa-eye"></span> </a> </li> <li> <a href="#" onclick="addToCart(<?php echo $product['id']; ?>)" data-tip="Add to Cart"> <span class="fa fa-shopping-bag"></span> </a> </li> </ul> <div class="shopv single-item"> <form action="cart-action.php" method="post"> <input type="hidden" name="action" value="add"> <input type="hidden" name="product_id" value="<?php echo $product['id']; ?>"> <input type="hidden" name="quantity" value="1"> <button type="submit" class="shopv-cart pshopv-cart add-to-cart" <?php echo $product['stock_quantity'] == 0 ? 'disabled' : ''; ?>> <?php echo $product['stock_quantity'] == 0 ? 'Out of Stock' : 'Add to Cart'; ?> </button> </form> </div> </div> <div class="product-content"> <h3 class="title"> <a href="product-single.php?id=<?php echo $product['id']; ?>"> <?php echo htmlspecialchars($product['name']); ?> </a> </h3> <span class="price"> <?php if($product['original_price'] > $product['price']): ?> <del>Rs.<?php echo number_format($product['original_price'], 0); ?></del> <?php endif; ?> Rs.<?php echo number_format($product['price'], 0); ?> </span> </div> </div> </div> <?php endforeach; ?> </div> <div class="text-center mt-5"> <a href="products.php" class="btn btn-style btn-primary"> View All Products <i class="fas fa-arrow-right ms-2"></i> </a> </div> </div> </div> </section> <?php endif; ?> <!-- Statistics Counter --> <section class="stats-counter"> <div class="container"> <div class="row"> <div class="col-md-3 col-6 counter-item"> <div class="counter-number" data-target="<?php echo $stats['total_products']; ?>">0</div> <p>Products</p> </div> <div class="col-md-3 col-6 counter-item"> <div class="counter-number" data-target="<?php echo $stats['happy_customers'] * 10; ?>">0</div> <p>Happy Customers</p> </div> <div class="col-md-3 col-6 counter-item"> <div class="counter-number" data-target="48">0</div> <p>Years of Service</p> </div> <div class="col-md-3 col-6 counter-item"> <div class="counter-number" data-target="<?php echo $stats['total_reviews']; ?>">0</div> <p>Reviews</p> </div> </div> </div> </section> <!-- Testimonials Section --> <?php if(count($reviews) > 0): ?> <section class="w3l-clients w3l-test" id="testimonials"> <div class="container py-lg-5 py-md-4 pt-5 pb-5"> <div class="row"> <div class="col-lg-4 testimonials-con-left-info py-sm-5 pt-0 py-3"> <div class="title-content text-left p-xl-3"> <h6 class="title-subw3hny">Reviews</h6> <h3 class="title-w3l two">What Clients Say?</h3> <p class="test-p mt-3">Best service, best quality trusted people</p> <div class="mt-4"> <a href="products.php" class="btn btn-style btn-primary">Shop Now</a> </div> </div> </div> <div class="col-lg-8 testimonials-con-right mt-lg-0 mt-3 p-xl-3 pb-4"> <div id="owl-demo2" class="owl-carousel owl-theme testimonials-2 py-sm-5 pt-0 py-3"> <?php foreach($reviews as $review): ?> <div class="item"> <div class="testimonial-content"> <div class="testimonial"> <div class="product-rating mb-3"> <?php for($i = 1; $i <= 5; $i++): ?> <?php if($i <= $review['rating']): ?> <i class="fa fa-star"></i> <?php else: ?> <i class="fa fa-star-o"></i> <?php endif; ?> <?php endfor; ?> </div> <p> <i class="fas fa-quote-left me-2"></i> <?php echo htmlspecialchars($review['review_text']); ?> </p> </div> <div class="bottom-info mt-4"> <div class="people-info align-self"> <h3><?php echo htmlspecialchars($review['customer_name']); ?></h3> <p class="identity"> <?php if($review['product_name']): ?> <small>Purchased: <?php echo htmlspecialchars($review['product_name']); ?></small> <?php endif; ?> </p> </div> </div> </div> </div> <?php endforeach; ?> </div> </div> </div> </div> </section> <?php endif; ?> <!-- Newsletter Section --> <section class="w3l-newsletter py-5 bg-light"> <div class="container"> <div class="row align-items-center"> <div class="col-lg-6"> <h3>Subscribe to Our Newsletter</h3> <p>Get updates on new products and exclusive offers!</p> </div> <div class="col-lg-6"> <form action="newsletter-subscribe.php" method="POST" class="d-flex"> <input type="email" class="form-control" placeholder="Enter your email" name="email" required> <button type="submit" class="btn btn-primary ms-2">Subscribe</button> </form> </div> </div> </div> </section> <?php include_once('footer.php'); ?> <!-- Template JavaScript --> <script src="assets/js/jquery-3.3.1.min.js"></script> <script src="assets/js/theme-change.js"></script> <!-- Cart JS --> <script src="assets/js/minicart.js"></script> <script> shopv.render(); shopv.cart.on('shopv_checkout', function(evt) { var items, len, i; if (this.subtotal() > 0) { items = this.items(); for (i = 0, len = items.length; i < len; i++) {} } }); // Add to cart via AJAX function addToCart(productId) { $.ajax({ url: 'cart-action.php', method: 'POST', data: { action: 'add', product_id: productId, quantity: 1 }, success: function(response) { // Show success message alert('Product added to cart!'); location.reload(); } }); return false; } </script> <!-- Owl Carousel --> <script src="assets/js/owl.carousel.js"></script> <script> $(document).ready(function() { // Banner slider $('.owl-one').owlCarousel({ loop: true, margin: 0, nav: false, responsiveClass: true, autoplay: true, autoplayTimeout: 5000, autoplaySpeed: 1000, autoplayHoverPause: false, responsive: { 0: { items: 1 }, 480: { items: 1 }, 667: { items: 1 }, 1000: { items: 1 } } }); // Testimonials carousel $("#owl-demo2").owlCarousel({ loop: true, nav: false, margin: 50, responsiveClass: true, autoplay: true, autoplayTimeout: 4000, responsive: { 0: { items: 1, nav: false }, 736: { items: 1, nav: false }, 991: { items: 2, margin: 30, nav: false }, 1080: { items: 2, nav: false } } }); }); </script> <!-- Video Popup --> <script src="assets/js/jquery.magnific-popup.min.js"></script> <script> $(document).ready(function() { $('.popup-with-zoom-anim').magnificPopup({ type: 'inline', fixedContentPos: false, fixedBgPos: true, overflowY: 'auto', closeBtnInside: true, preloader: false, midClick: true, removalDelay: 300, mainClass: 'my-mfp-zoom-in' }); }); </script> <!-- Counter Animation --> <script> // Counter animation const counters = document.querySelectorAll('.counter-number'); const speed = 200; const animateCounter = () => { counters.forEach(counter => { const animate = () => { const value = +counter.getAttribute('data-target'); const data = +counter.innerText; const time = value / speed; if (data < value) { counter.innerText = Math.ceil(data + time); setTimeout(animate, 1); } else { counter.innerText = value; } } animate(); }); } // Trigger counter animation when section is in view const observerOptions = { threshold: 0.7 }; const observer = new IntersectionObserver((entries) => { entries.forEach(entry => { if (entry.isIntersecting) { animateCounter(); observer.unobserve(entry.target); } }); }, observerOptions); const statsSection = document.querySelector('.stats-counter'); if(statsSection) { observer.observe(statsSection); } </script> <!-- Menu JS --> <script> $(window).on("scroll", function() { var scroll = $(window).scrollTop(); if (scroll >= 80) { $("#site-header").addClass("nav-fixed"); } else { $("#site-header").removeClass("nav-fixed"); } }); $(".navbar-toggler").on("click", function() { $("header").toggleClass("active"); }); $(document).on("ready", function() { if ($(window).width() > 991) { $("header").removeClass("active"); } $(window).on("resize", function() { if ($(window).width() > 991) { $("header").removeClass("active"); } }); }); </script> <!-- Disable body scroll when navbar is active --> <script> $(function() { $('.navbar-toggler').click(function() { $('body').toggleClass('noscroll'); }) }); </script> <script src="assets/js/bootstrap.min.js"></script> </body> </html>
Upload File
Create Folder