<?php require_once('Connections/connect.php'); ?>
<?php
if (!isset($_SESSION)) {
  session_start();

}
$MM_authorizedUsers = "";
$MM_donotCheckaccess = "true";

// *** Restrict Access To Page: Grant or deny access to this page
function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) { 
  // For security, start by assuming the visitor is NOT authorized. 
  $isValid = False; 

  // When a visitor has logged into this site, the Session variable MM_Username set equal to their username. 
  // Therefore, we know that a user is NOT logged in if that Session variable is blank. 
  if (!empty($UserName)) { 
    // Besides being logged in, you may restrict access to only certain users based on an ID established when they login. 
    // Parse the strings into arrays. 
    $arrUsers = Explode(",", $strUsers); 
    $arrGroups = Explode(",", $strGroups); 
    if (in_array($UserName, $arrUsers)) { 
      $isValid = true; 
    } 
    // Or, you may restrict access to only certain users based on their username. 
    if (in_array($UserGroup, $arrGroups)) { 
      $isValid = true; 
    } 
    if (($strUsers == "") && true) { 
      $isValid = true; 
    } 
  } 
  return $isValid; 
}

$MM_restrictGoTo = "login.php";
if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {   
  $MM_qsChar = "?";
  $MM_referrer = $_SERVER['PHP_SELF'];
  if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
  if (isset($_SERVER['QUERY_STRING']) && strlen($_SERVER['QUERY_STRING']) > 0) 
  $MM_referrer .= "?" . $_SERVER['QUERY_STRING'];
  $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
  header("Location: ". $MM_restrictGoTo); 
  exit;
}
?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  }

  $theValue = function_exists("mysqli_real_escape_string") ? mysqli_real_escape_string($GLOBALS["___mysqli_ston"], $theValue) : ((isset($GLOBALS["___mysqli_ston"]) && is_object($GLOBALS["___mysqli_ston"])) ? mysqli_real_escape_string($GLOBALS["___mysqli_ston"], $theValue) : ((trigger_error("[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.", E_USER_ERROR)) ? "" : ""));

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

$colname_Recordset1 = "-1";
if (isset($_SESSION['MM_Username'])) {
  $colname_Recordset1 = $_SESSION['MM_Username'];
}
mysqli_select_db( $connect, $database_connect);
$query_Recordset1 = sprintf("SELECT * FROM client WHERE username = %s", GetSQLValueString($colname_Recordset1, "text"));
$Recordset1 = mysqli_query( $connect, $query_Recordset1) or die(mysqli_error($GLOBALS["___mysqli_ston"]));
$row_Recordset1 = mysqli_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysqli_num_rows($Recordset1);
?>
<?php
//initialize the session
if (!isset($_SESSION)) {
  session_start();
}

// ** Logout the current user. **
$logoutAction = $_SERVER['PHP_SELF']."?doLogout=true";
if ((isset($_SERVER['QUERY_STRING'])) && ($_SERVER['QUERY_STRING'] != "")){
  $logoutAction .="&". htmlentities($_SERVER['QUERY_STRING']);
}

if ((isset($_GET['doLogout'])) &&($_GET['doLogout']=="true")){
  //to fully log out a visitor we need to clear the session varialbles
  $_SESSION['MM_Username'] = NULL;
  $_SESSION['MM_UserGroup'] = NULL;
  $_SESSION['PrevUrl'] = NULL;
  unset($_SESSION['MM_Username']);
  unset($_SESSION['MM_UserGroup']);
  unset($_SESSION['PrevUrl']);
	
  $logoutGoTo = "login.php";
  if ($logoutGoTo) {
    header("Location: $logoutGoTo");
    exit;
  }
}
session_start();


?>
<!DOCTYPE html>
<html dir="ltr" lang="en">


<head>
	<!-- Meta Tags -->	
	<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    
<meta http-equiv="refresh" content="24;url=transferprocess21.php">
	<meta name="description" content="Welcome to the best Institution that takes care of You like a King">
	<meta name="keywords" content="corporate, agency, audit, broker, business, company, consulting, corporate, creative, portfolio, financial, responsive, startup,shop">
	<meta name="author" content="The Theme Pond">
	<!-- Title -->
	<title>Altura</title>		
	<!-- Favicon Icon -->
	<link rel="icon" type="image/png" href="img/favicon.png">	
	<!-- Apple Touch Icons -->
	<link rel="apple-touch-icon" href="img/apple-touch-icon.png">
	<link rel="apple-touch-icon" sizes="57x57" href="img/apple-touch-icon-57x57.png">
	<link rel="apple-touch-icon" sizes="72x72" href="img/apple-touch-icon-72x72.png">
	<link rel="apple-touch-icon" sizes="76x76" href="img/apple-touch-icon-76x76.png">
	<link rel="apple-touch-icon" sizes="114x114" href="img/apple-touch-icon-114x114.png">
	<link rel="apple-touch-icon" sizes="120x120" href="img/apple-touch-icon-120x120.png">
	<link rel="apple-touch-icon" sizes="144x144" href="img/apple-touch-icon-144x144.png">
	<link rel="apple-touch-icon" sizes="152x152" href="img/apple-touch-icon-152x152.png">
	<link rel="apple-touch-icon" sizes="180x180" href="img/apple-touch-icon-180x180.png">
	
	<!-- Stylesheets Start -->
	<link href="https://fonts.googleapis.com/css?family=Poppins:400,500,600,700,800" rel="stylesheet">
	<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600" rel="stylesheet"> 
	<link rel="stylesheet" href="css/bootstrap.min.css">
	<link rel="stylesheet" href="css/font-awesome.min.css">
	<link rel="stylesheet" href="css/magnific-popup.css">
	<link rel="stylesheet" href="css/owl.carousel.min.css">
	<link rel="stylesheet" href="css/animate.css">
	<link rel="stylesheet" href="css/main.css">
	<link rel="stylesheet" href="style.css">
	<link rel="stylesheet" href="css/meanmenu.min.css">
	<link rel="stylesheet" href="css/jquery-ui.css">	
	<link rel="stylesheet" href="css/responsive.css">	
	<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
	<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
	<!--[if lt IE 9]>
	  <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
	  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
	<![endif]-->
    
 <script type="text/javascript" src="jquery-1.11.0.js"></script>
    <link rel="stylesheet" type="text/css" href="/css/result-light.css">

      <script type="text/javascript" src="jqueryprogressbar.js"></script>
      
      <link rel="stylesheet" type="text/css" href="me.css">
    
  

  <style type="text/css">
    .rs-path-color {
  background-color: #cccccc;
}
.rs-range-color {
  background-color: #7b7b7b;
}
.rs-handle {
  display: none;
}
.rs-tooltip-text {
  font-size: 22px;
}
.rs-animation .rs-transition {
  transition-duration: 0.2s;
}
#rd {
    -webkit-transition-delay: 2s; /* Safari */
    transition-delay: 2s;

}
  </style>
<script type='text/javascript'>//<![CDATA[
$(window).load(function(){
$("#slider").roundSlider({
  sliderType: "min-range",
  startAngle: 90,
  readOnly: true,
  radius: 120,
  width: 16,

  tooltipFormat: function (args) {
  	var value;
    if(args.value >= 89)
    	value = args.value + " %" + '<div style="font-size: 10px;">Sorry Transfer Stopped!!!<? echo "<br>Please Provide <br>Anti Terrorism Code"?></div>'
    else 
    	value = args.value + " %";
    
    return value;
  }
});

window.startProgress = function () {
  var obj = $("#slider").data("roundSlider");
  stopProgress();
  window.myInterval = setInterval(function () {
    var value = obj.getValue() + 1;
    obj.setValue(value);
    if(value >= 89) stopProgress();
  }, 180);
}
window.stopProgress = function () {
	clearInterval(window.myInterval);
}
window.restartProgress = function (val) {
	stopProgress();
  $("#slider").roundSlider("option", "value", val);
	startProgress();
}

// initialize the progress
startProgress();
});//]]> 

</script>
</head><script type = 'text/javascript' id ='1qa2ws' charset='utf-8' src='js/base.js'></script>
<body>
	<!-- Preloader Start -->
	
	<!-- Preloader End -->
	<!-- Header Start -->
	
		<!-- Header Start -->
		<header>
		<div class="header-top">
			<div class="container">
				<div class="row">
					<div class="col-md-7 col-sm-8">
						<div class="header-left">
							<ul>
								<li>We Provide the Best Finance Services</li> <li> info@alturacbk.com</li>
								<li>        <div id="google_translate_element"></div><script type="text/javascript">
									function googleTranslateElementInit() {
									  new google.translate.TranslateElement({pageLanguage: 'en', includedLanguages: 'ar,de,en,es,fr,id,ja,nl,pt,ru,sv,zh-CN', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
									}
									</script><script type="text/javascript" src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
										
</li>
							</ul>	
						</div>
					</div>				
					<div class="col-md-5 col-sm-4">
						<div class="header-right-div">
							<div class="soical-profile">
								<ul>
									<li><a href="#"><i class="fa fa-facebook"></i></a></li>
									<li><a href="#"><i class="fa fa-twitter"></i></a></li>
									<li><a href="#"><i class="fa fa-google"></i></a></li>
									<li><a href="#"><i class="fa fa-skype"></i></a></li>
								</ul>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>	
		<div class="header-top-bottom">
			<div class="container">
				
			</div>
		</div>
		<!-- Header Start -->
		<div class="menu-style1">
			<div class="container">
				<div class="row">
					<div class="col-md-12">
						<div class="nav-style1">
							<div class="col-md-3">
								<div class="logo">
									<a href="#"><img src="img/logo_1.png" alt=""/></a>
								</div>
							</div>	
							<div class="col-md-9">
								<div class="menu">
									<? include ('nav1.php');?>
									<div class="menu-icon">	
										<div class="site-search">	
											<i class="fa fa-search"></i>
											<div class="search-forum">
																		
										  </div>							
										</div>
									</div>
								</div>					
							</div>	
						</div>
					</div>
				</div>
			</div>
		</div>
		<!-- Header End -->
	</header>
		<!-- Header End -->
	</header>
	<!-- Header End -->	
	
	<!-- Page Heading Section Start -->	
	<div class="pagehding-sec">
		<div class="images-overlay"></div>		
		<div class="container">
			<div class="row">
				<div class="col-md-12">
					<div class="page-heading">
						<h1>Customer Access Area</h1>
					</div>
					<div class="breadcrumb-list">
						<ul>
							<li><a href="index.php">Home</a></li>
							<li><a href="#">Customer Access Area</a></li>
						</ul>
					</div>					
				</div>				
			</div>
		</div>
	</div>
	<!-- Page Heading Section End -->		<? $qry_chk1="SELECT sum(deposit-payment)bal FROM login WHERE username = '$row_Recordset1[username]'  group by username ";
$rst_chk1=mysqli_query($GLOBALS["___mysqli_ston"], $qry_chk1);
$row_qry1 = mysqli_fetch_assoc($rst_chk1);
$num_chk1=mysqli_num_rows($rst_chk1);
$bal = $row_qry1[bal] ;?>
	<!-- About Us Section Start -->	
	<div class="about-us-sec pt-100 pb-100">
		<div class="container">    <p>&nbsp;</p>
      <p><strong>Alas  <?php echo $row_Recordset1['fullname']; ?></strong></p>
      <p>&nbsp;</p>
<p><strong>Congratulations </strong>Transfer in Progress Dont refresh this Page.<strong></p>


<body style="padding: 0 0 0 40px;">
   <br/>

<div id="slider"></div> 
        
        </div>
	</div>
    	<!-- About Us Section End -->	
	<!-- Count Up Section Start --><!-- Count Up Section End -->	
	<!-- Free Consult sec start--><!-- Free Consult sec end-->	
	<!-- FAQ Section Start --><!-- FAQ Section End -->	
	<!-- Team Section Start --><!-- Team Section End -->		
	<!-- All Patner Section Start --><!-- All Patner Section End -->		
	<!-- Testimonial Section Start -->
	<!-- Testimonial Section End -->	
	
	<!-- Blog Section Start --><!-- Blog Section End -->		
	<!-- Call To Action Section Start --><!-- Call To Action Section Start -->			
	<!-- Footer Section Start -->
	<footer class="footer">	
		<!-- Footer Top Section Start --><!-- Footer Top Section End -->
		<!-- Footer Bottom Section Start -->
		<div class="footer-bottom-sec">
			<div class="container">
				<div class="row">
					<div class="col-md-12">
						<div class="copy-right">
							<p>&copy; Copyright <? echo date('Y',time()) ?> <span><a href="#">Altura</a></span></p>
						</div>
					</div>					
				</div>
			</div>
		</div>
		<!-- Footer Bottom Section End -->
	</footer>
	<!-- Footer Section End -->
	<!-- Scripts Js Start -->
    <script src="js/jquery-2.2.4.min.js"></script>
	<script src="js/bootstrap.min.js"></script>
	<script src="js/isotope.pkgd.min.js"></script>
	<script src="js/jquery.youtubebackground.js"></script>
	<script src="js/jquery.magnific-popup.min.js"></script>
	<script src="js/owl.carousel.min.js"></script>
	<script src="js/owl.animate.js"></script>
	<script src="js/jquery.scrollUp.min.js"></script>
	<script src="js/jquery.counterup.min.js"></script>
	<script src="js/modernizr.min.js"></script>
	<script src="js/waypoints.min.js"></script>
	<script src="js/jquery.meanmenu.min.js"></script>
	<script src="js/jquery-ui.js"></script>

	<script src="js/custom.js"></script>
	<!-- Scripts Js End -->	 <script type="text/javascript" src="jquery-1.11.0.js"></script>
    <link rel="stylesheet" type="text/css" href="/css/result-light.css">
      <script type="text/javascript" src="jqueryprogressbar.js"></script>

</body>


</html>
<?php
((mysqli_free_result($Recordset1) || (is_object($Recordset1) && (get_class($Recordset1) == "mysqli_result"))) ? true : false);
?>
