OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
quiz
/
backup
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/19/2025 10:07:16 AM
rwxr-xr-x
📁
assets
-
02/15/2025 11:20:34 AM
rwxr-xr-x
📄
bregister.php
15.32 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
callback.php
871 bytes
05/19/2025 10:07:16 AM
rw-r--r--
📄
child_registration.php
9.47 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
dashboard copy.php
6.72 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
dashboard.php
5.94 KB
05/19/2025 10:07:16 AM
rw-r--r--
📁
data
-
02/15/2025 11:20:32 AM
rwxr-xr-x
📄
function.php
5.06 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
index.php
4.64 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
oauth.php
355 bytes
05/19/2025 10:07:16 AM
rw-r--r--
📁
old_backup
-
05/19/2025 10:07:16 AM
rwxr-xr-x
📁
payment
-
02/15/2025 11:20:34 AM
rwxr-xr-x
📄
payment.php
3.67 KB
05/19/2025 10:07:16 AM
rw-r--r--
📁
process
-
05/19/2025 10:07:16 AM
rwxr-xr-x
📄
register.php
10.96 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
sendOtp.php
2.32 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
styles.css
0 bytes
02/15/2025 11:21:44 AM
rw-r--r--
📄
subscription_check.php
1.39 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
verify.php
2.23 KB
05/19/2025 10:07:16 AM
rw-r--r--
Editing: payment.php
Close
<? include 'assets/php/validate.logged.php'; // Check if the form is submitted and validate the payment amount if ($_SERVER['REQUEST_METHOD'] === 'POST') { // Sanitize and validate the payment amount and user input $name = isset($_POST['name']) ? htmlspecialchars(trim($_POST['name'])) : ''; $email = isset($_POST['email']) ? filter_var(trim($_POST['email']), FILTER_SANITIZE_EMAIL) : ''; $amount = isset($_POST['amount']) ? floatval($_POST['amount']) : 0; // Validate if the amount is greater than 0 if ($amount > 0 && !empty($name) && filter_var($email, FILTER_VALIDATE_EMAIL)) { // Store the payment amount and user details in the session $_SESSION['pay_amt'] = $amount; $_SESSION['user_name'] = $name; $_SESSION['user_email'] = $email; // Redirect to payment.php for payment processing header('Location: payment.php'); exit; } else { $error_message = "Please enter valid details."; } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Checkout</title> <style> body { font-family: Arial, sans-serif; margin: 0; padding: 0; background-color: #f4f4f9; } .container { max-width: 500px; margin: 50px auto; background-color: #fff; padding: 30px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); border-radius: 8px; } .form-group { margin-bottom: 20px; } .form-group label { font-size: 1.1em; margin-bottom: 5px; display: block; } .form-group input { width: 100%; padding: 10px; font-size: 1em; border: 1px solid #ddd; border-radius: 5px; } .form-group button { width: 100%; padding: 12px; font-size: 1.2em; background-color: #4CAF50; color: white; border: none; border-radius: 5px; cursor: pointer; } .form-group button:hover { background-color: #45a049; } .error-message { color: red; font-size: 1em; margin-bottom: 20px; } </style> </head> <body> <div class="container"> <h2>Checkout</h2> <!-- Display error message if validation fails --> <?php if (isset($error_message)) : ?> <div class="error-message"><?php echo $error_message; ?></div> <?php endif; ?> <!-- Checkout Form --> <form action="checkout.php" method="POST"> <!-- Name --> <div class="form-group"> <label for="name">Full Name</label> <input type="text" id="name" name="name" required placeholder="Enter your name"> </div> <!-- Email --> <div class="form-group"> <label for="email">Email Address</label> <input type="email" id="email" name="email" required placeholder="Enter your email"> </div> <!-- Payment Amount --> <div class="form-group"> <label for="amount">Amount to Pay</label> <input type="number" id="amount" name="amount" required placeholder="Enter amount" value="100" step="0.01"> </div> <!-- Submit Button --> <div class="form-group"> <button type="submit">Proceed to Payment</button> </div> </form> </div> </body> </html>