Uname:Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 3.111.61.48  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.2.31
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/vhost/book.gyaniguru.org/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhost/book.gyaniguru.org/includes/header.php
<?php
require_once __DIR__ . '/db.php';
if (session_status() === PHP_SESSION_NONE) {
    session_start();
}
$is_logged_in = isset($_SESSION['user_id']);
$user_name = $_SESSION['user_name'] ?? '';


?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title><?php echo isset($page_title) ? $page_title . ' — ' : ''; ?>GyaniGuru by JMC | Vedic Knowledge Store</title>
  <link rel="icon" type="image/png" href="images/logo/logo.png">
  
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aos@2.3.4/dist/aos.css">
  <!-- Bengali Font Support -->
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&family=Hind+Siliguri:wght@300;400;500;600;700&display=swap" rel="stylesheet">
  <link rel="stylesheet" href="css/style.css">
  <style>
    body { font-family: 'Poppins', sans-serif; }
    .font-cinzel { font-family: 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.5px; }
    .bengali-text { font-family: 'Hind Siliguri', sans-serif; }
    h1, h2, h3, h4, h5, h6 { font-family: 'Inter', sans-serif; font-weight: 700; }
  </style>
  <script>
    function triggerAddToCart(bookId, title, author, price, image, category, qty = 1) {
        const bookData = {
            id: parseInt(bookId),
            title: title,
            author: author,
            price: parseFloat(price),
            image: image,
            category: category
        };
        
        if (window.Store) {
            // If Store exists, we assume it has an addToCart that might handle qty 
            // or we call it multiple times, but let's try to pass it if Store supports it.
            // If Store is our custom one, we should update it too, but let's assume it can take qty.
            Store.addToCart({...bookData, qty: parseInt(qty)});
        } else {
            let cart = JSON.parse(localStorage.getItem('gg_cart') || '[]');
            const existing = cart.find(i => i.id == bookData.id);
            if (existing) existing.qty += parseInt(qty);
            else cart.push({...bookData, qty: parseInt(qty)});
            localStorage.setItem('gg_cart', JSON.stringify(cart));
            
            // Simple notification
            alert(qty + ' x ' + title + ' added to cart');
            location.reload();
        }
    }
  </script>
</head>
<body>

  <!-- Sticky Header Wrapper -->
  <div class="header-sticky-wrapper">
  <!-- Top Bar -->
  <div class="top-bar">
    <div class="container">
      <div class="top-bar-inner">
        <div class="marquee-wrap">
          <div class="marquee-inner">
            <span>🔱 JAI YOGIRAJ! FREE Shipping on orders above ₹999 &nbsp;&nbsp;|&nbsp;&nbsp; 🕉️ Free Meditation Class Every Sunday. 8pm</span>
          </div>
        </div>
        <div class="top-bar-links">
          <a href="track-order.php" class="top-link"><i class="bi bi-truck"></i> Track</a>
          <a href="tel:+919903680146" class="top-link"><i class="bi bi-telephone-fill"></i> Call</a>
        </div>
      </div>
    </div>
  </div>

  <!-- Navbar -->
  <nav class="navbar navbar-expand-lg" id="mainNavbar">
    <div class="container">
      <a class="navbar-brand" href="index.php">
        <!-- <div class="brand-logo-icon">🔱</div> -->
        <div class="brand-name">
          <span class="main"><img class="logo" src="images/logo/logo.png" alt="logo">
          </span>
          <!-- <span class="sub">জ্ঞানী গুরু</span> -->
        </div>
      </a>
      <div class="nav-icons nav-icons-right">
        <a href="shop.php" class="nav-icon-btn" title="Search"><i class="bi bi-search"></i></a>
        <a href="cart.php" class="nav-icon-btn" title="Cart">
          <i class="bi bi-bag"></i><span class="badge-count cart-badge" style="display:none">0</span>
        </a>
        <?php if($is_logged_in): ?>
          <a href="account.php" class="nav-icon-btn" title="Account"><i class="bi bi-person-check-fill text-gold"></i></a>
        <?php else: ?>
          <a href="login.php" class="nav-icon-btn" title="Login"><i class="bi bi-person"></i></a>
        <?php endif; ?>
      </div>
      <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navMenu">
        <span class="navbar-toggler-icon"></span>
      </button>
      <div class="collapse navbar-collapse" id="navMenu">
        <ul class="navbar-nav mx-auto">
          <li class="nav-item"><a class="nav-link <?php echo basename($_SERVER['PHP_SELF']) == 'index.php' ? 'active' : ''; ?>" href="index.php">Home</a></li>
          <li class="nav-item"><a class="nav-link <?php echo basename($_SERVER['PHP_SELF']) == 'shop.php' ? 'active' : ''; ?>" href="shop.php">Books</a></li>
          <li class="nav-item"><a class="nav-link <?php echo in_array(basename($_SERVER['PHP_SELF']), ['photo-shop.php','photo-detail.php']) ? 'active' : ''; ?>" href="photo-shop.php">Guru Photos</a></li>
          <li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle <?php echo basename($_SERVER['PHP_SELF']) == 'shop.php' ? 'active' : ''; ?>" href="#" data-bs-toggle="dropdown">Categories</a>
            <ul class="dropdown-menu" style="background:var(--dark-surface);border:1px solid rgba(212,175,55,0.2)">
               <?php
               $header_cats = get_all("SELECT * FROM categories");
               foreach($header_cats as $hcat):
               ?>
               <li><a class="dropdown-item" href="shop.php?cat=<?php echo $hcat['slug']; ?>"><?php echo $hcat['name']; ?></a></li>
               <?php endforeach; ?>
            </ul>
          </li>
           <li class="nav-item"><a class="nav-link <?php echo basename($_SERVER['PHP_SELF']) == 'index.php' ? 'active' : ''; ?>" href="index.php#about">About Guruji</a></li>
           <li class="nav-item"><a class="nav-link <?php echo basename($_SERVER['PHP_SELF']) == 'contact.php' ? 'active' : ''; ?>" href="contact.php">Contact</a></li>
        </ul>
      </div>
    </div>
  </nav>
  </div>

Youez - 2016 - github.com/yon3zu
LinuXploit