uawdijnntqw1x1x1
IP : 216.73.216.93
Hostname : panel.codeskitter.com
Kernel : Linux panel.codeskitter.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
Disable Function : apache_child_terminate, apache_note, apache_setenv, define_syslog_variables, dl, link, opcache_get_status, openlog, pcntl_exec, pcntl_fork, pcntl_setpriority, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid
OS : Linux
PATH:
/
home
/
users
/
unlimited
/
www
/
codeskitter_storage
/
..
/
nigeria.codeskitter.site
/
cart.php
/
/
<?php include 'includes/config.php'; include 'includes/functions.php'; if(!isset($_SESSION['user_id'])) { header("Location: login.php"); exit(); } $user_id = $_SESSION['user_id']; $cart_items = getCartItems($conn, $user_id); // Handle remove from cart if(isset($_POST['remove_from_cart'])) { $cart_id = $_POST['cart_id']; if(removeFromCart($conn, $cart_id, $user_id)) { header("Location: cart.php"); exit(); } } ?> <?php include 'includes/header.php'; ?> <div class="container py-5"> <h1 class="mb-4">Shopping Cart</h1> <?php if($cart_items->num_rows > 0): ?> <div class="row"> <div class="col-md-8"> <div class="card"> <div class="card-body"> <?php $total = 0; while($item = $cart_items->fetch_assoc()): $total += $item['current_price']; ?> <div class="cart-item d-flex align-items-center mb-4 pb-4 border-bottom"> <img src="<?php echo $item['image'] ?: 'assets/images/course-placeholder.jpg'; ?>" alt="<?php echo $item['title']; ?>" class="cart-item-image me-4" style="width: 100px; height: 60px; object-fit: cover;"> <div class="flex-grow-1"> <h5 class="cart-item-title"><?php echo $item['title']; ?></h5> <p class="cart-item-price mb-0">$<?php echo $item['current_price']; ?></p> </div> <form method="POST" class="ms-3"> <input type="hidden" name="cart_id" value="<?php echo $item['cart_id']; ?>"> <button type="submit" name="remove_from_cart" class="btn btn-outline-danger btn-sm">Remove</button> </form> </div> <?php endwhile; ?> </div> </div> </div> <div class="col-md-4"> <div class="card"> <div class="card-body"> <h5 class="card-title">Order Summary</h5> <div class="d-flex justify-content-between mb-2"> <span>Subtotal:</span> <span>$<?php echo number_format($total, 2); ?></span> </div> <div class="d-flex justify-content-between mb-3"> <span>Total:</span> <span class="h5">$<?php echo number_format($total, 2); ?></span> </div> <button class="btn btn-primary w-100" id="checkout-btn">Proceed to Checkout</button> </div> </div> </div> </div> <?php else: ?> <div class="text-center py-5"> <h3>Your cart is empty</h3> <p>Browse our courses and add some to your cart!</p> <a href="courses.php" class="btn btn-primary">Browse Courses</a> </div> <?php endif; ?> </div> <?php include 'includes/footer.php'; ?>
/home/users/unlimited/www/codeskitter_storage/../nigeria.codeskitter.site/cart.php