File Manager

Path: /home/heznutpr/log.heznutprivate.com/dashboard/

Viewing File: btcdone.php

<?php
session_start();
include_once ('../include/session.php');
require_once '../include/class.user.php';
if(!isset($_SESSION['acc_no'])){
	
header("Location: login.php");

exit(); 
}



$reg_user = new USER();

$stmt = $reg_user->runQuery("SELECT * FROM account WHERE acc_no=:acc_no");
$stmt->execute(array(":acc_no"=>$_SESSION['acc_no']));
$row = $stmt->fetch(PDO::FETCH_ASSOC);

$email = $row['email'];

$temp = $reg_user->runQuery("SELECT * FROM transfer WHERE email = '$email' ORDER BY id DESC LIMIT 1");
$temp->execute(array(":acc_no"=>$_SESSION['acc_no']));
$rows = $temp->fetch(PDO::FETCH_ASSOC);

include_once ('counter.php');
?>

<?php include 'mheader.php';
?>

<title>Deposit</title>



<!-- content @s -->
                <div class="nk-content nk-content-fluid">
                    <div class="container-xl wide-lg">
                        <div class="nk-content-body">
                            <h2>
                                Loading Your Deposit
                            </h2>
                            <br>
                            <br>
                            <!-- HTML portion -->
                            <center>
<div class="progress" id="progress-bar">
  <div class="progress-bar progress-bar-striped progress-bar-animated" id="progress"></div>
</div>
<br>
                            <br>
<h3> Processing your deposit please wait</h3>
<!-- JavaScript portion --></center>
<script>
  // Set the width of the progress bar to 0%
  document.getElementById("progress").style.width = "0%";

  // Update the progress bar width every 20 milliseconds
  var progress = 0;
  var progressInterval = setInterval(function() {
    progress++;
    document.getElementById("progress").style.width = progress + "%";
    if (progress == 100) {
      // Stop the interval and redirect to another page after 19 seconds
      clearInterval(progressInterval);
      setTimeout(function() {
        window.location.href = "dashboard/btc.php?success";
      }, 19000);
    }
  }, 20);
</script>

                            
                        </div>
                    </div>
                </div>
                <!-- content @e -->
                
                
                <?php include 'mfooter.php';
?>