<?php
session_start(); // Start the session to retrieve the user ID

if (!isset($_SESSION['user_id'])) {
  // Redirect the user if they are not logged in
  header('Location: ../page-login.php');
  exit();
}

$user_id = $_SESSION['user_id'];

$conn = mysqli_connect('localhost', 'kvfxminr_token', 'qHj}Sa7k(_4f', 'kvfxminr_token');
$sql = "SELECT * FROM users WHERE id = $user_id";
$result = mysqli_query($conn, $sql);

if (mysqli_num_rows($result) == 1) {
  $row = mysqli_fetch_assoc($result);

  // Display the user information on the page
  // echo 'Welcome, ' . $row['name'] . '!';
} else {
  // Redirect the user if their ID is not found in the database
  header('Location: ../page-login.php');
  exit();
}

if(!isset($_SESSION['start_time'])){
    $_SESSION['start_time'] = time();
}

$elapsed_time = time() - $_SESSION['start_time'];

if($elapsed_time >= 300){
    session_unset();
    session_destroy();
    header("Location: ../page-login.php");
    exit;
}

mysqli_close($conn);
?>

<!doctype html>
<html lang="en">


<!-- Mirrored from finapp.bragherstudio.com/view4/crypto-index.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 29 Dec 2021 11:29:14 GMT -->
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport"
        content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, viewport-fit=cover" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <meta name="theme-color" content="#000000">
    <title>Confirmation | ICO TOKENS FX</title>
    <!-- <meta http-equiv="refresh" content="600;url=login.html"/> -->
    <meta name="description" content="ICO TOKENS FX">
    <meta name="keywords"
        content="crypto, wallet, tokens, ico, cordova, invest, mobile, usd, Bitcoin" />
    <link rel="icon" type="image/png" href="assets/img/favicon.png" sizes="32x32">
    <!-- <link rel="apple-touch-icon" sizes="180x180" href="assets/img/icon/192x192.png"> -->
    <link rel="stylesheet" href="assets/css/style.css">
    <link rel="manifest" href="__manifest.json">
</head>

<body>

    <!-- loader -->
    <!-- <div id="loader">
        <img src="assets/img/loading-icon.png" alt="icon" class="loading-icon">
    </div> -->
    <!-- * loader -->

    <!-- App Header -->
    <div class="appHeader bg-primary text-light">
        <div class="left">
            <!-- <a href="#" class="headerButton" data-bs-toggle="modal" data-bs-target="#sidebarPanel">
                <img src="assets/img/sample/avatar/avatar1.jpg" alt="image" class="imaged rounded w32">
                <span class="badge badge-danger">10</span>
            </a> -->
        </div>
        <div class="pageTitle">
            Awaiting Confirmation
        </div>
        <div class="right">
            <!-- <a href="app-notifications.html" class="headerButton">
                <ion-icon class="icon" name="notifications-outline"></ion-icon>
                <span class="badge badge-danger">8</span>
            </a> -->
        </div>
    </div>
    <!-- * App Header -->


    <!-- App Capsule -->
    <div id="appCapsule">


        <!-- Wallet -->
        <div class="section full gradientSection">
            <div class="in" style="padding-top: 15px;">
                <h4>Welcome</h4>
                <h6 class="total2"><?php echo $row["name"] ?></h6>
                <h1 class="title mb-2">Thanks for signing up, your crypto account is currently been set up.....</h1>
                <h5 class="title mb-2">Total Balance</h5>
                <h1 class="total"><?php echo $row["total"] ?></h1>
                <!-- <br> -->
                <!-- <h4 class="caption">
                    <span class="iconbox text-success">
                        <ion-icon name="trending-up-outline"></ion-icon>
                    </span>
                    0.053205 BTC
                </h4> -->
                 <!-- <h5>Your $500 as been successfully deposited
                   <span class="iconbox text-success">
                       <ion-icon name="trending-up-outline"></ion-icon>
                   </span>
                 </h5> -->
                <!-- <h5>You have gain $4500 bonus to your target profits ✔️</h5> -->
                <!--<h5>Top up your token wallet for more FX</h5>-->
                <div class="wallet-inline-button mt-5">
                    <!-- <a href="#" class="item" data-bs-toggle="modal" data-bs-target="#depositActionSheet">
                        <div class="iconbox">
                            <ion-icon name="arrow-up-outline"></ion-icon>
                        </div>
                        <strong>Deposit</strong>
                    </a> -->
                    <a href="#" class="item">
                        <div class="iconbox">
                            <ion-icon name="arrow-down-outline"></ion-icon>
                        </div>
                        <strong>Withdraw</strong>
                    </a>
                    <!-- <a href="#" class="item" data-bs-toggle="modal" data-bs-target="#sendActionSheet">
                        <div class="iconbox">
                            <ion-icon name="arrow-forward-outline"></ion-icon>
                        </div>
                        <strong>Send</strong>
                    </a> -->
                    <a href="logout.php" class="item">
                        <div class="iconbox">
                            <ion-icon name="swap-vertical-outline"></ion-icon>
                        </div>
                        <h5>Log out</h5>
                    </a>
                </div>
            </div>
        </div>
        <!-- * Wallet -->


        <!-- Deposit Action Sheet -->

        <!-- * Deposit Action Sheet-->

        <!-- Withdraw Action Sheet -->

        <!-- * Withdraw Action Sheet-->

        <!-- Send Action Sheet -->

        <!-- * Send Action Sheet-->


        <!-- Portfolio -->

        <!-- Portfolio -->


        <!-- Watchlist -->
        <!-- <div class="section-heading padding mt-4">
            <h2 class="title">Watchlist</h2>
            <a href="#" class="link">View All</a>
        </div> -->
        <!-- carousel  -->

        <!-- * carousel  -->
        <!-- Watchlist -->

        <!-- Action Sheet Watchlist -->

        <!-- * Action Sheet Watchlist -->


        <!-- Transactions -->


        <!-- Transactions -->


        <!-- Slider -->
        <div class="section mt-4 full">
            <div class="carousel-single splide">
                <div class="splide__track">
                    <ul class="splide__list">



                        <li class="splide__slide">
                            <div class="card card-with-icon">
                                <div class="card-body pt-3 pb-3 text-center">
                                    <div class="card-icon mb-2">
                                        <ion-icon name="chatbox-ellipses"></ion-icon>
                                    </div>
                                    <h3 class="card-titlde mb-1">Message Us On Telegram</h3>

                                    <p>You can message admins for any questions on your account below!</p>
                                    <div class="row">
                                        <div class="col">
                                            <a href="https://www.t.me/icofxadmin" class="btn btn-block btn-primary">
                                                Message
                                            </a>
                                        </div>
                                        <!-- <div class="col">
                                            <a href="component-messages.html" class="btn btn-block btn-secondary">
                                                View groups
                                            </a>
                                        </div> -->
                                    </div>
                                </div>
                            </div>
                        </li>



                    </ul>
                </div>
            </div>
        </div>
        <br>
        <br>
        <!-- * Slider -->


        <!-- News -->

        <!-- * News -->


        <!-- app footer -->
        <div class="appFooter">
            <div class="footer-title">
                Copyright &copy; <?php echo date("Y"); ?>, ICO Crypto. All Rights Resevered.
            </div>

        </div>
        <!-- * app footer -->

    </div>
    <!-- * App Capsule -->


    <!-- App Bottom Menu -->

    <!-- * App Bottom Menu -->

    <!-- App Sidebar -->

    <!-- * App Sidebar -->



    <!-- ========= JS Files =========  -->
      <!-- Bootstrap -->
      <script src="assets/js/lib/bootstrap.bundle.min.js"></script>
      <!-- Ionicons -->
      <script type="module" src="https://unpkg.com/ionicons@5.4.0/dist/ionicons/ionicons.js"></script>
      <!-- Splide -->
      <script src="assets/js/plugins/splide/splide.min.js"></script>
      <!-- Base Js File -->
      <script src="assets/js/base.js"></script>

      <script>
          // Add to Home with 2 seconds delay.
          AddtoHome("2000", "once");
      </script>

</body>


<!-- Mirrored from finapp.bragherstudio.com/view4/crypto-index.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 29 Dec 2021 11:29:25 GMT -->
</html>
