File "success_page.php"
Full path: /home/quiczmwg/lightspringdigitals.com/../../quiczmwg/solixproperties.org/success_page.php
File size: 2.34 KiB (2393 bytes)
MIME-type: text/x-php; charset=us-ascii
Charset: utf-8
Download Open Edit Advanced Edit Back
<?php
// Start session if not already started
session_start();
// Include database connection
require_once('_db.php');
if (!isset($_SESSION['userid'])) {
header("Location: login.php");
exit();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Investment Success</title>
<!-- Bootstrap CSS -->
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<!-- Bootstrap Icons CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css" rel="stylesheet">
<!-- Custom CSS -->
<style>
body {
background-color: #f8f9fa;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.container {
text-align: center;
}
.check-icon {
font-size: 5rem;
color: #28a745;
margin-bottom: 20px;
}
</style>
</head>
<body>
<div class="container">
<?php
// Check if the status parameter is present in the URL
if (isset($_GET['status'])) {
// Check the value of the status parameter
$status = $_GET['status'];
if ($status === "success") {
// Display success message for crypto investment
echo '<div class="message-container">';
echo '<i class="bi bi-check-circle check-icon"></i>';
echo '<div class="alert alert-success" role="alert" style="background-color: #d4edda; border-color: #c3e6cb; color: #155724;">';
echo 'Success! Your investment has been made. Your wallet will be credited once the transaction is confirmed by the Admin.';
echo '</div>';
echo '</div>';
} elseif ($status === "error") {
// Display error message
echo '<div class="alert alert-danger" role="alert">';
echo 'Oops! Something went wrong. Please try again later.';
echo '</div>';
}
}
?>
<div class="text-center">
<a href="index.php" class="btn btn-success">Return to Home</a>
</div>
</div>
</body>
</html>