<?php 
    session_start();
    require('admin/connect.php');
    if(isset($_REQUEST['confirmtoken']) && isset($_REQUEST['unique'])){
      $confirmtoken =  $_REQUEST['confirmtoken'];
       $unique = $_REQUEST['unique'];
       $getData = "SELECT customer_email FROM new_customer WHERE customer_unique = '$unique'";
       $retrieveData_v = mysqli_query($cxn, $getData);
       if($retrieveData_v){
           if(mysqli_fetch_array($retrieveData_v)['customer_email'] == $confirmtoken){
            $chk_data = "UPDATE new_customer SET email_confirm_status = 'yes' WHERE customer_email = '$confirmtoken'";
            $querytoData = mysqli_query($cxn, $chk_data);
            if($querytoData){
            }
           }
       }
    
    }else{
        header('location:../');
    }
include('layout/header.php');
    ?>
<!-- Call To Action Section Starts -->
<section class="service padding-top padding-bottom">
    <div class="section-header section-header--max50">
        <div class="container">
            <div class="row">
                <div class="col-xs-12">
                    <div class="card">
                        <div class="card-body">
                            <div class="form" style="display: flex; justify-content: center; align-items: center; flex-direction: column;">
                                        <div class="row">
                                            <div class="col-md-12">
                                                <div class="py-5" style="width:100%">
                                                    <div class="pt-5 " style="width:100%; display: flex; justify-content: center;">
                                                        <span  style="width:100px;height:100px;display: flex; justify-content: center; align-items:center;background-color: green;text-align:center;border-radius:50%;"><i class="fas fa-check" style="font-size: 70px; width:100px;color: white"></i></span>
                                                        
                                                    </div>
                                                    <h3 class="text-uppercase text-center p-2 text-success">Your Account has been Verified!</h3>
                                                       <h3 class="text-center text-success">CONGRATULATIONS!</h3> 
                                                       <p class="text-center text-primary" style="color: black !important;">      
                                                            Your TradxBits account is all set up and ready to go. It's time to explore what you can do with it. </p>
                                                </div>
                                               <center><a href="/login" class="btn btn-success">Proceed to Login</a></center>
                                            </div>
                                        </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<?php include('layout/footer.php'); ?>
