<?php ob_start(); 
if (basename($_SERVER['SCRIPT_FILENAME']) == basename(__FILE__)){
echo "<p style='font-family:Arial, Helvetica, sans-serif; margin-top:100px; font-size:20px; line-height:180%; letter-spacing:2px;' align='center'><img src='https://primadesain.com/images/block.png' width='90' height='90' /></br></br>Accessing files directly is prohibited.</p><p style='font-family:Arial, Helvetica, sans-serif; margin-top:20px; font-size:12px; line-height:180%; letter-spacing:2px;' align='center'>&copy; 2009 - ".date("Y")." <a href='https://www.primadesain.com'>www.primadesain.com</a></p>";
echo "<meta http-equiv=\"refresh\" content=\"5; url=./index.php\">";
exit();} 
?>
<!--
	/* 
	#######################
	http://primadesain.com
	primapc57@gmail.com
    +62 8122222044
	#######################
	*/
-->
<?php
$sblxx2da=mysql_query("select time from memberlog WHERE userid='$user_session' order by time DESC LIMIT 1");
while($rowsda=mysql_fetch_row($sblxx2da)) {
$idax = $rowsda[0];
$ida = $rowsda[0] - 1;
}
$sblxx2dc=mysql_query("select id, userid, ip, host, browser, logindate, lokasi, time from memberlog WHERE userid='$user_session' AND time='$ida'");
while($rowsdc=mysql_fetch_row($sblxx2dc)) {
$useridne = $rowsdc[1];
$ipe = $rowsdc[2];
$host = $rowsdc[3];
$browser = $rowsdc[4];
$logindate = $rowsdc[5];
$lokasi = $rowsdc[6];
}
if(!empty($logindate)){
$logindt = formatgl($logindate);
}else{
$logindt = "no data today";
}
if(!empty($browser)){
$browsere = $browser;
}else{
$browsere = "no data today";
}
if(!empty($ipe)){
$ipex = $ipe;
}else{
$ipex = "no data today";
}
if(!empty($host)){
$hoste = $host;
}else{
$hoste = "no data today";
}
if(!empty($lokasi)){
$lokasie = $lokasi;
}else{
$lokasie = "no data today";
}

require_once '../lib/GoogleAuthenticator.php';
$authenticator = new PHPGangsta_GoogleAuthenticator();

if(!$db->dataku("2fa", $user_session)){
$secret = $authenticator->createSecret();
$db->update("member", "2fa='".$secret."'", "username='".$user_session."'");
}else{
$secret = $db->dataku("2fa", $user_session);
}

$website   = $webz2fa; 
$title     = $ttl2fa;
$tolerance = $tlrz2fa;
$QRCode    = $authenticator->getQRCodeGoogleUrl($title,$secret,$website);
?>
<?php
$cekassx = mysql_query("select * from deposit where username='".$user_session."'");
$ada_assx = mysql_num_rows($cekassx); //---flush out hari ini
if(isset($_REQUEST['go'])){$go = $_REQUEST['go'];}
?>
<?php if($db->dataku("accpt", $user_session) == 1) {
				$btttdd="<b class='badge bg-success pull-right'>verified</b>";
				$scrnbt="<img src='../themes/img/verifiedx.png' width='100' height='100' /><br><p style='font-weight:bold; font-size:20px;margin-top:5px;'>VERIFIED</p>";
			}else{
				$btttdd="<b class='badge bg-danger pull-right'>unverified</b>";
				$scrnbt="<img src='../themes/img/unverified.png' width='100' height='100' /><br><p style='font-weight:bold; font-size:20px;margin-top:5px;'>UNVERIFIED</p>";
			}
				?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
   <title>Member Area | <?php echo WEB_NAME ?></title>
<meta name="copyright" content="Copyright (c) <?php echo date("Y"); ?> | <?php echo WEB_DOMAIN ?>" />
<meta name="description" content="<?php echo WEB_DESC ?>" />
<meta name="keywords" content="<?php echo WEB_KEYWORDS ?>" />
   <link href="../images/banner/<?php echo $db->config("fcon"); ?>" rel="SHORTCUT ICON" /><!--favicon-->
    
	<!-- Bootstrap 4.0-->
	<link rel="stylesheet" href="../assets/vendor_components/bootstrap/dist/css/bootstrap.css">
	
	<!-- bootstrap wysihtml5 - text editor -->
	<link rel="stylesheet" href="../assets/vendor_plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.css">
    
	<!--amcharts -->
	<link href="https://www.amcharts.com/lib/3/plugins/export/export.css" rel="stylesheet" type="text/css" />
	<?php if($db->config("styletheme") == 1){ ?>
	<!-- Bootstrap-extend -->
	<link rel="stylesheet" href="csslight/bootstrap-extend.css">
	<!-- theme style -->
	<link rel="stylesheet" href="csslight/master_style.css">
	<!-- Crypto_Admin skins -->
	<link rel="stylesheet" href="csslight/skins/_all-skins.css">
	<?php } else { ?>
	<!-- Bootstrap-extend -->
	<link rel="stylesheet" href="css/bootstrap-extend.css">
	<!-- theme style -->
	<link rel="stylesheet" href="css/master_style.css">
	<!-- Crypto_Admin skins -->
	<link rel="stylesheet" href="css/skins/_all-skins.css">
    <?php } ?>

	<!-- HTML5 Shim and Respond.js 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.3/html5shiv.min.js"></script>
	<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
	<![endif]-->

   <script src="../js/sweetalert-dev.js"></script>
	<link rel="stylesheet" href="../themes/assets/build/css/intlTelInput.css"> 
  <link rel="stylesheet" href="../css/sweetalert.css">
   <link rel="stylesheet" href="../themes/assets/css/sweetalert.css">
        <script type="text/javascript" src="../themes/assets/highslide/highslide-with-gallery.js"></script>
<script type="text/javascript" src="../themes/assets/highslide/highslide-with-html.js"></script>
<link rel="stylesheet" type="text/css" href="../themes/assets/highslide/highslide.css" />
    <script type="text/javascript">
	hs.graphicsDir = '../themes/assets/highslide/graphics/';
	hs.wrapperClassName = 'wide-border';
    </script>
<SCRIPT LANGUAGE="JavaScript">
var win = null;
function newWindow(mypage,myname,w,h,features) {
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += features;
  win = window.open(mypage,myname,settings);
  win.window.focus();
}
</script>
<div id="dhtmltooltip"></div>

<script type="text/javascript">

/***********************************************
* Cool DHTML tooltip script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

var offsetxpoint=-60 //Customize x offset of tooltip
var offsetypoint=20 //Customize y offset of tooltip
var ie=document.all
var ns6=document.getElementById && !document.all
var enabletip=false
if (ie||ns6)
var tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : ""

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function ddrivetip(thetext, thecolor, thewidth){
if (ns6||ie){
if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
tipobj.innerHTML=thetext
enabletip=true
return false
}
}

function positiontip(e){
if (enabletip){
var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
//Find out how close the mouse is to the corner of the window
var rightedge=ie&&!window.opera? ietruebody().clientWidth-event.clientX-offsetxpoint : window.innerWidth-e.clientX-offsetxpoint-20
var bottomedge=ie&&!window.opera? ietruebody().clientHeight-event.clientY-offsetypoint : window.innerHeight-e.clientY-offsetypoint-20

var leftedge=(offsetxpoint<0)? offsetxpoint*(-1) : -1000

//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<tipobj.offsetWidth)
//move the horizontal position of the menu to the left by it's width
tipobj.style.left=ie? ietruebody().scrollLeft+event.clientX-tipobj.offsetWidth+"px" : window.pageXOffset+e.clientX-tipobj.offsetWidth+"px"
else if (curX<leftedge)
tipobj.style.left="5px"
else
//position the horizontal position of the menu where the mouse is positioned
tipobj.style.left=curX+offsetxpoint+"px"

//same concept with the vertical position
if (bottomedge<tipobj.offsetHeight)
tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+"px" : window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+"px"
else
tipobj.style.top=curY+offsetypoint+"px"
tipobj.style.visibility="visible"
}
}

function hideddrivetip(){
if (ns6||ie){
enabletip=false
tipobj.style.visibility="hidden"
tipobj.style.left="-1000px"
tipobj.style.backgroundColor=''
tipobj.style.width=''
}
}

document.onmousemove=positiontip

</script>
<script>
		function confirmActionx1(){
      var confirmed = swal({
  title: "Are you sure want to logout?",
  text: "",
  type: "info",
  showCancelButton: true,
  confirmButtonColor: "#AEDEF4",
  confirmButtonText: "OK, Logout",
  cancelButtonText: "No, Not Now!",
  closeOnConfirm: false,
  closeOnCancel: true
},
function(isConfirm){
  if (isConfirm) {
    window.location.href = "./index.php?do=logout&last_session=<?php echo $idax; ?>";
  } else {
	swal("Tidak", "Your imaginary file is safe :)", "error");
  }
});
     
}
</script>

<script>
		function confirmActionxstop(){
      var confirmed = swal({
  title: "Are you sure want to logout?",
  text: "",
  type: "info",
  showCancelButton: false,
  confirmButtonColor: "#AEDEF4",
  confirmButtonText: "OK",
  cancelButtonText: "No, Not Now!",
  closeOnConfirm: false,
  closeOnCancel: true
},
function(isConfirm){
  if (isConfirm) {
    window.location.href = "../login.php";
  } else {
	swal("Tidak", "Your imaginary file is safe :)", "error");
  }
});
     
}
</script>    
  </head>
  


<body class="hold-transition skin-<?php echo $themenya; ?> sidebar-mini">
<script>
  function confirmActiondemomode(){
   swal('Oops...', 'not allowed in demo mode!', 'error').done();
 
}
</script>
  <?php
$results = $_GET['result'];
if($results == "free") { 
echo '<script type=text/javascript>
              swal({
  title: "Success",
  text: "Free Wallet mode active",
  type: "success",
  showCancelButton: false,
  confirmButtonColor: "#0099CC",
  confirmButtonText: "OK",
  cancelButtonText: "No, cancel plx!",
  closeOnConfirm: true,
  closeOnCancel: false
});
              </script>';	
}
?>  
  <?php
$results = $_GET['result'];
if($results == "real") { 
echo '<script type=text/javascript>
              swal({
  title: "Success",
  text: "Real Wallet mode active",
  type: "success",
  showCancelButton: false,
  confirmButtonColor: "#0099CC",
  confirmButtonText: "OK",
  cancelButtonText: "No, cancel plx!",
  closeOnConfirm: true,
  closeOnCancel: false
});
              </script>';	
}
?>        

 <?php if (isset($_GET['toreal'])) {
		        $db->update("member", "free='0'", "username='$user_session'");
        header("location: index.php?result=real");
	 } ?>
       
 <?php if (isset($_GET['tofree'])) {
		        $db->update("member", "free='1'", "username='$user_session'");
        header("location: index.php?result=free");
	 } ?>


<div class="wrapper">
  <header class="main-header">
    <!-- Logo -->
    <a href="index.php" class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
	
      <!-- logo for regular state and mobile devices -->
      <span class="logo-lg">
		  <img src="../images/banner/logo.png" alt="logo" class="light-logo" style="width:<?php echo $withlogonemem; ?>px; margin-top:-5px;">
          
	  </span>
    </a>
    <!-- Header Navbar -->
    <nav class="navbar navbar-static-top" style="background:<?php echo $themewarna; ?>;">
      <!-- Sidebar toggle button-->
      <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
        <span class="sr-only">Toggle navigation</span>
      </a>

      <div class="navbar-custom-menu">
        <ul class="nav navbar-nav">
    
   
        
        

      <? 
if($db->dataku("free", $user_session) == 1 && $freetradings == 1){ 
$saldocwalete = $db->myswalet($user_session);
			 $pendingcwalete = $db->myswaletpending($user_session);
			 $totalcwalete = $saldocwalete-$pendingcwalete; 
			 $totalcwaletec = balance($saldocwalete-$pendingcwalete); 
			 $jnisewalet="<a href='index.php?toreal'><span class='badge bg-danger' style='margin-left:5px;'><font color='#000'>Free</font></span></a>";
			 $jnisewalete="Your Free Account";
			 $linknyawallete="index.php?go=walletfree";
}else{
$saldocwalete = $db->mycwalet($user_session);
			 $pendingcwalete = $db->mycwaletpending($user_session);
			 $totalcwalete = $saldocwalete-$pendingcwalete; 
			 $totalcwaletec = balance($saldocwalete-$pendingcwalete); 
			 $jnisewalet="<a href='index.php?tofree'><span class='badge bg-success' style='margin-left:5px;'><font color='#000'>Real</font></span></a>";
			 $jnisewalete="Your Real Account";
			 $linknyawallete="index.php?go=walletcash";
}
			if($db->dataku("dana", $user_session) == 1){ 
			 $jnismembere="<span class='badge bg-warning' style='margin-left:5px;'><font color='#000'>VIP</font></span></a>";
}else{
			 $jnismembere="";
}
			  ?>
<script type="text/javascript">
    setInterval("my_function();",1000); 
    function my_function(){
      $('#cekballance').load(location.href + ' #cekballance');
    }
  </script>
		 
           <div id="cekballance">
					  <h2 class="badge bg-dark" style="font-size:16px;margin-top:12px; color:#fff;"><?php echo $totalcwaletec; ?> <?php echo $jnisewalet; ?> <?php if($db->config("convertbalance") == 1){?><?php echo $jnismembere; ?><?php } ?></h2>
					</div>
        
        
		  
		  <li class="search-box">
            <a class="nav-link hidden-sm-down" href="javascript:void(0)"><i class="mdi mdi-magnify"></i></a>
            <form class="app-search" style="display: none;">
                <input type="text" class="form-control" placeholder="Search &amp; enter"> <a class="srh-btn"><i class="ti-close"></i></a>
			</form>
          </li>			
		  
        
         <!-- Notifications -->
          <li class="dropdown notifications-menu">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <i class="mdi mdi-bell"></i>
            </a>
            <ul class="dropdown-menu scale-up">
            <?php $smc808080 = mysql_query("SELECT * FROM notifikasi WHERE status='0' and username ='$user_session'"); 
			    $cekode808080 = mysql_num_rows($smc808080); ?>
                <?php if($cekode808080 > 0){ ?><li class="header">You have <?php echo $cekode808080; ?> notifications</li><?php } ?>
              <li>
                <!-- inner menu: contains the actual data -->
                <ul class="menu inner-content-div">
                <?php
            $querymnmg = "SELECT * FROM notifikasi WHERE status='0' and username ='$user_session' order by tgl desc limit 10"; 
            $resultmnmg = mysql_query($querymnmg) or die(mysql_error());
            while($rowmnmg = mysql_fetch_array($resultmnmg)){
			$kd88 = $rowmnmg['kode'];
			$id88 = $rowmnmg['no'];
			$judulnotif = $rowmnmg['judul'];
			$isinen = $rowmnmg['isi'];
			$isinotif = substr($isinen,0,100);
			$badgene = $rowmnmg['badge'];
			$fawesom = $rowmnmg['jn'];
			
			$srttglmmg = strtotime($rowmnmg['tgl']);
            $srttglendg = strtotime($clientdate);
			$jlneeg = floor(abs($srttglendg - $srttglmmg));
			
			if($jlneeg < 60){
			$jlnxg = "just now";
			
			}else if($jlneeg > 60 && $jlneeg < 3600){
			$jlnxg = floor(abs($jlneeg/60))." minutes";
			
			}else if($jlneeg > 3600 && $jlneeg < 86400){
			$jlnxg = floor(abs($jlneeg/3600))." hours";
			
			}else if($jlneeg > 86400 && $jlneeg < 604800){
			$jlnxg = floor(abs($jlneeg/86400))." days";
			
			}else if($jlneeg > 604800 && $jlneeg < 2592000){
			$jlnxg = floor(abs($jlneeg/604800))." week";
			
			}else if($jlneeg > 2592000){
			$jlnxg = floor(abs($jlneeg/2592000))." month";
			
			}else{}
		
?> 
                  <li>
                    <a href="index.php?go=notif&page=view&id=<?php echo $id88; ?>">
                      <i class="fa fa-info-circle"></i> <?php echo $judulnotif; ?>
                    </a>
                  </li>
                   <?php } ?>
                </ul>
              </li>
              <li class="footer"><a href="index.php?go=notif">View all</a></li>
            </ul>
          </li>
          <!-- Tasks -->
         <?php 
			   
			   $namaku = $db->dataku("nama", $user_session);
			   $fotokupro = $db->dataku("foto", $user_session);
			 $dirfotopro = "./images/".$fotokupro."";
			
				   if (!empty($fotokupro) && (file_exists($dirfotopro))){
				   $fotoprofilku = "<img alt='' class='user-image rounded-circle' src='".$dirfotopro."' width='30px' height='30px'/>";
				   $fotoprofilkux = "<img alt='' src='".$dirfotopro."' width='84px' height='84px' class='float-left rounded-circle'/>";
				   $fotoprofilkuxx = "<img alt='' src='".$dirfotopro."'  style='width:69px; height:69px;' class='rounded-circle'/>";
				   }else {
				   $fotoprofilku = "<img alt='' class='user-image rounded-circle' src='../images/no_image.png' width='30px' height='30px'/>";
				   $fotoprofilkux = "<img alt='' src='../images/no_image.png' width='84px' height='84px' class='float-left rounded-circle'/>";
				   $fotoprofilkuxx = "<img alt='' src='../images/no_image.png'  style='width:69px; height:69px;' class='rounded-circle'/>";
				   } ?>
		  <!-- User Account -->
          <li class="dropdown user user-menu">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
             <?php echo $fotoprofilku; ?>
            </a>
            
	<?php if($db->config("styletheme") == 1){ ?>
            <ul class="dropdown-menu scale-up">
            <?php } else { ?>
            <ul class="dropdown-menu scale-up" style="background:#222;">
            
            <?php } ?>
              <!-- User image -->
              <li class="user-header">
                <?php echo $fotoprofilkux; ?>
                <p>
                 (<?php echo $user_session; ?>)
                  <small class="mb-5"><?php echo $namaku; ?></small>
                  <a href="index.php?go=profile" class="btn btn-danger btn-sm btn-rounded">View Profile</a>
                </p>
              </li>
              <!-- Menu Body -->
              <li class="user-body">
                <div class="row no-gutters">
                  <div class="col-12 text-left">
                    <a href="index.php?go=profile"><i class="ti-settings"></i> My Profile</a>
                  </div>
                 
				<div role="separator" class="divider col-12"></div>
				  <div class="col-12 text-left">
                    <a href="index.php?go=ftprofile"><i class="ion ion-person"></i> Profile Image</a>
                  </div>
				<div role="separator" class="divider col-12"></div>
				  <div class="col-12 text-left">
                    <a href="#" onClick="return confirmActionx1()"><i class="fa fa-power-off"></i> Logout</a>
                  </div>				
                </div>
                <!-- /.row -->
              </li>
            </ul>
          </li>
          <!-- Control Sidebar Toggle Button -->
         
        </ul>
      </div>
    </nav>
  </header>
  <?php if($db->config("tracker_forex") == 1){ ?>
 <?php if($db->config("styletheme") == 1){ ?>
<!-- TradingView Widget BEGIN -->
<div class="tradingview-widget-container">
  <div class="tradingview-widget-container__widget"></div>
  
  <script type="text/javascript" src="https://s3.tradingview.com/external-embedding/embed-widget-ticker-tape.js" async>
  {
  "symbols": [
    {
      "description": "",
      "proName": "BINANCE:BTCUSDT"
    },
    {
      "description": "",
      "proName": "BINANCE:ETHUSDT"
    },
    {
      "description": "",
      "proName": "BINANCE:LTCUSDT"
    },
    {
      "description": "",
      "proName": "BINANCE:DOGEUSDT"
    },
    {
      "description": "",
      "proName": "BINANCE:ETHBTC"
    },
    {
      "description": "",
      "proName": "BINANCE:LTCBTC"
    },
    {
      "description": "",
      "proName": "BINANCE:DOGEBTC"
    },
    {
      "description": "",
      "proName": "BINANCE:DASHUSDT"
    },
    {
      "description": "",
      "proName": "BINANCE:DASHBTC"
    },
    {
      "description": "",
      "proName": "BINANCE:DASHETH"
    },
    {
      "description": "",
      "proName": "BINANCE:XRPBTC"
    },
    {
      "description": "",
      "proName": "BINANCE:BNBBTC"
    },
    {
      "description": "",
      "proName": "BINANCE:BNBUSDT"
    },
    {
      "description": "",
      "proName": "BINANCE:WAVESBNB"
    }
  ],
  "showSymbolLogo": true,
  "colorTheme": "light",
  "isTransparent": false,
  "displayMode": "adaptive",
  "locale": "in"
}
  </script>
</div>
<!-- TradingView Widget END -->
  
<?php } else { ?>
 <!-- TradingView Widget BEGIN -->
<div class="tradingview-widget-container">
  <div class="tradingview-widget-container__widget"></div>
  <script type="text/javascript" src="https://s3.tradingview.com/external-embedding/embed-widget-ticker-tape.js" async>
  {
  "symbols": [
    {
      "description": "",
      "proName": "BINANCE:BTCUSDT"
    },
    {
      "description": "",
      "proName": "BINANCE:ETHUSDT"
    },
    {
      "description": "",
      "proName": "BINANCE:LTCUSDT"
    },
    {
      "description": "",
      "proName": "BINANCE:DOGEUSDT"
    },
    {
      "description": "",
      "proName": "BINANCE:ETHBTC"
    },
    {
      "description": "",
      "proName": "BINANCE:LTCBTC"
    },
    {
      "description": "",
      "proName": "BINANCE:DOGEBTC"
    },
    {
      "description": "",
      "proName": "BINANCE:DASHUSDT"
    },
    {
      "description": "",
      "proName": "BINANCE:DASHBTC"
    },
    {
      "description": "",
      "proName": "BINANCE:DASHETH"
    },
    {
      "description": "",
      "proName": "BINANCE:XRPBTC"
    },
    {
      "description": "",
      "proName": "BINANCE:BNBBTC"
    },
    {
      "description": "",
      "proName": "BINANCE:BNBUSDT"
    },
    {
      "description": "",
      "proName": "BINANCE:WAVESBNB"
    }
  ],
  "showSymbolLogo": true,
  "colorTheme": "dark",
  "isTransparent": false,
  "displayMode": "adaptive",
  "locale": "in"
}
  </script>
</div>
<!-- TradingView Widget END -->
<?php } ?>
<?php } ?>
  <!-- Left side column. contains the logo and sidebar -->
  <aside class="main-sidebar">
    <!-- sidebar -->
    <section class="sidebar">
      <!-- Sidebar user panel -->
      <div class="user-panel">
		 <div class="ulogo">
			 <a href="index.php" style="color:<?php echo $themewarna; ?>;">
			  <!-- logo for regular state and mobile devices -->
			  <span><b>Welcome </b>User</span>
			</a>
		</div>
        <div class="image">
         <?php echo $fotoprofilkuxx; ?>
        </div>
        <div class="info">
         <p style="line-height:150%; color:#999;"><?php echo $namaku; ?><br>(<?php echo $user_session; ?>)
         </p>
        </div>
      </div>
      <!-- sidebar menu -->
      <ul class="sidebar-menu" data-widget="tree">
		<li class="nav-devider"></li>
       
        <?php if(!$go || $go=='') {?>
                     <li class="active">
          <a href="index.php">
            <i class="icon-home"></i> <span>Dashboard</span>
           
          </a>
        </li>
                        <?php } else { ?>
                <li>
          <a href="index.php">
            <i class="icon-home"></i> <span>Dashboard</span>
           
          </a>
        </li>
                        <?php } ?>
                        
        
        <?php if($go=='profile' || $go=='ftprofile') {?>
        <li class="treeview active">
          <a href="#">
            <i class="fa fa-cog"></i>
            <span>Setting</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-right pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="index.php?go=profile">Profil</a></li>
            <li><a href="index.php?go=ftprofile">Profile Image</a></li>
          </ul>
        </li>
        
        
            <?php } else { ?>
            <li class="treeview">
          <a href="#">
            <i class="fa fa-cog"></i>
            <span>Setting</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-right pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="index.php?go=profile">Profil</a></li>
            <li><a href="index.php?go=ftprofile">Profile Image</a></li>
          </ul>
        </li>
        
            <?php } ?>
                            
        <?php if($googleauntentic == 1) {?>
            <?php if($go=='secure') {?>
            <li class="active">
          <a href="index.php?go=secure">
            <i class="fa fa-shield"></i> <span>Security</span>
            
          </a>
        </li>
            
           
            <?php } else { ?>
           <li>
          <a href="index.php?go=secure">
            <i class="fa fa-shield"></i> <span>Security</span>
            
          </a>
        </li>
            <?php } ?> <?php } ?>    
        
        
        <?php if($usekyc == 1){ ?>
            <?php if($go=='kyc') {?>
             <li class="active">
          <a href="index.php?go=kyc">
            <i class="fa fa-id-card"></i> <span>KYC</span>
          </a>
        </li>
            <?php } else { ?>
             <li>
          <a href="index.php?go=kyc">
            <i class="fa fa-id-card"></i> <span>KYC</span>
          </a>
        </li>
            <?php } ?> <?php } ?> 
            
            
            
            
         
                  <?php if($usetiket == 1){ ?>
              <?php if($go=='ticket' || $go=='payment_ticket') {?>
            <li class="treeview active">
          <a href="#">
            <i class="fa fa-ticket"></i>
            <span>PIN Activation</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-right pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            	<li><a href="index.php?go=ticket">Balance</a></li>
							<li><a href="index.php?go=ticket&page=addpin">Buy PIN</a></li>
							<?php if($transpine == 1){ ?><li><a href="index.php?go=ticket&page=transfer">Transfer PIN</a></li><?php } ?>
          </ul>
        </li>
            <?php } else { ?>
          <li class="treeview">
          <a href="#">
            <i class="fa fa-ticket"></i>
            <span>PIN Activation</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-right pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
       	<li><a href="index.php?go=ticket">Balance</a></li>
							<li><a href="index.php?go=ticket&page=addpin">Buy PIN</a></li>
							<?php if($transpine == 1){ ?><li><a href="index.php?go=ticket&page=transfer">Transfer PIN</a></li><?php } ?>
          </ul>
        </li>
            <?php } ?>
            <?php } ?>
            
            
             <?php if($investment == 1) {?>
             <?php if($go=='deposit') {?>
           <li class="active">
          <a href="index.php?go=deposit">
            <i class="mdi mdi-checkbox-marked-circle-outline"></i> <span>Investment</span>
          </a>
        </li>
            <?php } else { ?>
           <li>
          <a href="index.php?go=deposit">
            <i class="mdi mdi-checkbox-marked-circle-outline"></i> <span>Investment</span>
          </a>
        </li>
            <?php } ?> 
            <?php } ?> 
            
            <?php if($tradings == 1){ ?>
              <?php if($go=='trade' || $go=='historytrade' || $go=='profitrade') {?>
            <li class="treeview active">
          <a href="#">
            <i class="mdi mdi-chart-areaspline"></i>
            <span>Trade</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-right pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
             <li><a href="index.php?go=trade">Trade</a></li>
             <li><a href="index.php?go=historytrade">History</a></li>
             <li><a href="index.php?go=profitrade">Profits</a></li>
          </ul>
        </li>
            <?php } else { ?>
          <li class="treeview">
          <a href="#">
            <i class="mdi mdi-chart-areaspline"></i>
            <span>Trade</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-right pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
             <li><a href="index.php?go=trade">Trade</a></li>
             <li><a href="index.php?go=historytrade">History</a></li>
             <li><a href="index.php?go=profitrade">Profits</a></li>
          </ul>
        </li>
            <?php } ?> 
            <?php } ?> 
            
        
            
            
               
            
           <?php if($go=='profits' || $go=='bonus' || $go=='withdrawal' || $go=='withdrawalpro') {?>
            <li class="treeview active">
          <a href="#">
            <i class="mdi mdi-cash-100"></i>
            <span>Funds</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-right pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
             <li><a href="index.php?go=bonus">Bonus</a></li>
             <?php if($investment == 1) {?><li><a href="index.php?go=profits">Profits</a></li><?php } ?> 
          </ul>
        </li>
            <?php } else { ?>
          <li class="treeview">
          <a href="#">
            <i class="mdi mdi-cash-100"></i>
            <span>Funds</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-right pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
             <li><a href="index.php?go=bonus">Bonus</a></li>
             <?php if($investment == 1) {?><li><a href="index.php?go=profits">Profits</a></li><?php } ?> 
          </ul>
        </li>
            <?php } ?> 
            
       
      
             
            
        <?php if($rewards == 1) {?>
             <?php if($go=='bonusrw') {?>
           <li class="active">
          <a href="index.php?go=bonusrw">
            <i class="fa fa-trophy"></i> <span>Reward</span>
          </a>
        </li>
            <?php } else { ?>
           <li>
          <a href="index.php?go=bonusrw">
            <i class="fa fa-trophy"></i> <span>Reward</span>
          </a>
        </li>
            <?php } ?> 
            <?php } ?> 
            
            
            
            
            
          <?php if($showecash == 1){ ?>           
          <?php if($go=='walletcash' || $go=='payment_ecash') {?>
            <li class="treeview active">
          <a href="#">
             <i class="mdi mdi-wallet" title="USD"></i>
            <span>Wallet</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-right pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
           <?php if($db->dataku("free", $user_session) == 1){ ?> <li><a href="index.php?go=walletfree">Virtual Balance</a></li><?php } ?> 
             <li><a href="index.php?go=walletcash">Balance</a></li>
          
							<?php if($buywalletcash == 1){ ?><li><a href="index.php?go=walletcash&page=buybalance">Add Balance</a></li><?php } ?> 
							<?php if($transwalletcash == 1){ ?><li><a href="index.php?go=walletcash&page=transfer">Transfer</a></li><?php } ?> 
							<?php if($wdwalletcash == 1){ ?><li><a href="index.php?go=walletcash&page=sellbalance">Withdrawal</a></li><?php } ?> 
          </ul>
        </li>
            <?php } else { ?>
          <li class="treeview">
          <a href="#">
             <i class="mdi mdi-wallet" title="USD"></i>
            <span>Wallet</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-right pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
           <?php if($db->dataku("free", $user_session) == 1){ ?> <li><a href="index.php?go=walletfree">Virtual Balance</a></li><?php } ?> 
            <li><a href="index.php?go=walletcash">Balance</a></li>
          
							<?php if($buywalletcash == 1){ ?><li><a href="index.php?go=walletcash&page=buybalance">Add Balance</a></li><?php } ?> 
							<?php if($transwalletcash == 1){ ?><li><a href="index.php?go=walletcash&page=transfer">Transfer</a></li><?php } ?> 
							<?php if($wdwalletcash == 1){ ?><li><a href="index.php?go=walletcash&page=sellbalance">Withdrawal</a></li><?php } ?> 
          </ul>
        </li>
            <?php } ?>  <?php } ?>  
            

            
                    
           <?php if($go=='datasp' || $go=='generation' || $go=='genealogi') {?>
            <li class="treeview active">
          <a href="#">
            <i class="fa fa-sitemap"></i>
            <span>Network</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-right pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            		<li><a href="index.php?go=datasp">Refferals</a></li>
							<li><a href="index.php?go=generation">Generation</a></li>
          </ul>
        </li>
            <?php } else { ?>
          <li class="treeview">
          <a href="#">
            <i class="fa fa-sitemap"></i>
            <span>Network</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-right pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
      	<li><a href="index.php?go=datasp">Refferals</a></li>
							<li><a href="index.php?go=generation">Generation</a></li>
          </ul>
        </li>
            <?php } ?>
            
            
       <?php if($go=='register') {?>
           <li class="active">
          <a href="index.php?go=register">
            <i class="fa fa-pencil-square-o"></i> <span>Register</span>
          </a>
        </li>
            <?php } else { ?>
           <li>
          <a href="index.php?go=register">
            <i class="fa fa-pencil-square-o"></i> <span>Register</span>
          </a>
        </li>
            <?php } ?> 
    
         <?php if($db->config("faqmenu") == 1){ ?>
      <?php if($go=='faq') {?>
           <li class="active">
          <a href="index.php?go=faq">
            <i class="mdi mdi-help-circle"></i> <span>FAQ</span>
          </a>
        </li>
            <?php } else { ?>
         <li>
          <a href="index.php?go=faq">
            <i class="mdi mdi-help-circle"></i> <span>FAQ</span>
          </a>
        </li>
            <?php } ?><?php } ?>
      <?php if($db->config("news") == 1){ ?>
      <?php if($go=='news') {?>
           <li class="active">
          <a href="index.php?go=news">
            <i class="fa fa-newspaper-o"></i> <span>Latest News</span>
          </a>
        </li>
            <?php } else { ?>
         <li>
          <a href="index.php?go=news">
            <i class="fa fa-newspaper-o"></i> <span>Latest News</span>
          </a>
        </li>
            <?php } ?><?php } ?>     
            
            <?php if($db->config("confirm") == 1){ ?>
      <?php if($go=='confirm') {?>
           <li class="active">
          <a href="index.php?go=confirm">
            <i class="fa fa-newspaper-o"></i> <span>Contact Us</span>
          </a>
        </li>
            <?php } else { ?>
         <li>
          <a href="index.php?go=confirm">
            <i class="fa fa-newspaper-o"></i> <span>Contact Us</span>
          </a>
        </li>
            <?php } ?><?php } ?>
            
            
            
           <?php if($db->config("testimoni") == 1){ ?>
            <?php if($go=='testimoni' || $go=='testimonial') {?>
            <li class="treeview active">
          <a href="#">
            <i class="fa fa-comments"></i>
            <span>Testimonial</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-right pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
             <li><a href="index.php?go=testimoni">Testimonial</a></li>
             <li><a href="index.php?go=testimonial">Add Testimonial</a></li>
          </ul>
        </li>
            <?php } else { ?>
          <li class="treeview">
          <a href="#">
            <i class="fa fa-comments"></i>
            <span>Testimonial</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-right pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            
             <li><a href="index.php?go=testimoni">Testimonial</a></li>
             <li><a href="index.php?go=testimonial">Add Testimonial</a></li>
          </ul>
        </li>
            <?php } ?> <?php } ?> 
             
                        
                  
            <?php if($db->config("download") == 1){ ?>
      <?php if($go=='download') {?>
           <li class="active">
          <a href="index.php?go=download">
            <i class="fa fa-download"></i> <span>Download</span>
          </a>
        </li>
            <?php } else { ?>
         <li>
          <a href="index.php?go=download">
            <i class="fa fa-download"></i> <span>Download</span>
          </a>
        </li>
            <?php } ?><?php } ?>           
            
            
            <li>
          <a href="#" onClick="return confirmActionx1()">
            <i class="fa fa-power-off"></i> <span>Log Out</span>
          </a>
        </li>
            
            
               
		    
        
      </ul>
    </section>
  </aside>


    <div class="content-wrapper">
   
   
   
 
  <?php 
		    $cekadadpo = mysql_query("select * from photoid where username='".$user_session."' and acc='1'");
$ada_dadpo = mysql_num_rows($cekadadpo); //---flush out hari ini
		   
		   
		   if($verifieds == 1 && !$ada_dadpo){ 
		   
		                if ($go=='')
								{ include("./mb_flad/mb_verifikasi.php"); }
								else 
								{ include("./mb_flad/mb_verifikasi.php"); }
									
		    
			
		   }else{
			?>
            
       <?php 
				
  if($db->dataku("act", $user_session) == 0 && $freetradings == 0){ 
		   
		                if ($go=='')
								{ include("./mb_flad/redre.php"); }
								else 
								{ include("./mb_flad/redre.php"); }
									
		    
			
		   }else{
 
 ?>  
           
            <?php
				   
				   
				   
				   if($db->dataku("status", $user_session) == 1 && $db->dataku("blokir", $user_session) == 0) {
					if (empty($go)) $go = '';
					// PROSES OPEN ACCOUNT **************************************
					if 		($go=='')
								{ include("./mb_flad/mb_home.php"); }
					else if 	($go=='home')
								{ include("./mb_flad/mb_home.php"); }
					else if ($go=='profile')
								{ include("./mb_flad/mb_profile.php"); }
					else if ($go=='ftprofile')
								{ include("./mb_flad/mb_fotopro.php"); }
					else if ($go=='register_history')
								{ include("./mb_flad/mb_datareg.php"); }
					else if ($go=='bonus')
								{ include("./mb_flad/mb_bonus.php"); }
					else if ($go=='gantipass')
								{ include("./mb_flad/mb_passwd.php"); }
					else if ($go=='imgupload')
								{ include("./mb_flad/mb_fotoid.php"); }	
					else if ($go=='confirm')
								{ include("./mb_flad/mb_confirm.php"); }
					//else if ($go=='genealogi')
					//		{ include("./mb_flad/mb_genealogy.php"); }	
					else if ($go=='tree')
								{ include("./mb_flad/mb_tree.php"); }	
					else if ($go=='inbox')
								{ include("./mb_flad/mb_inbox.php"); }	
					else if ($go=='sponsoring')
								{ include("./mb_flad/mb_sponsoring.php"); }	
					else if ($go=='file_upload')
								{ include("./mb_flad/mb_fileup.php"); }	
					else if ($go=='notif')
								{ include("./mb_flad/mb_notif.php"); }	
					else if ($go=='profits')
								{ include("./mb_flad/mb_profits.php"); }
					else if ($go=='profitrade')
								{ include("./mb_flad/mb_profitstrade.php"); }	
					else if ($go=='withdrawal')
								{ include("./mb_flad/mb_withdrawal.php"); }		
					else if ($go=='testimonial')
								{ include("./mb_flad/mb_testi.php"); }
					else if ($go=='testimoni')
								{ include("./mb_flad/mb_testimoni.php"); }			
					else if ($go=='user-download')
								{ include("./mb_flad/mb_down.php"); }
					else if ($go=='news')
								{ include("./mb_flad/mb_news.php"); }	
					else if ($go=='tree')
								{ include("./mb_flad/tree.php"); }	
					else if ($go=='datasp')
								{ include("./mb_flad/mb_datasp.php"); }
					else if ($investment == 1 && $go=='deposit')
								{ include("./mb_flad/mb_givehelp.php"); }
					else if ($go=='sponsor')
								{ include("./mb_flad/upline.php"); }	
					else if ($go=='requestpin')
								{ include("./mb_flad/mb_editpin.php"); }
					else if ($go=='activatepin')
								{ include("./mb_flad/mb_actpin.php"); }		
					else if ($go=='register')
								{ include("./mb_flad/mb_reg.php"); }		
					else if ($go=='content')
								{ include("./content.php"); }
					else if ($go=='login')
								{ include("./login.php"); }
					else if ($go=='contact')
								{ include("./contact.php"); }	
					else if ($go=='generation')
								{ include("./mb_flad/mb_generation.php"); }
					else if ($go=='ewalet')
								{ include("./mb_flad/mb_walet.php"); }
					else if ($go=='download')
								{ include("./mb_flad/mb_download.php"); }
					else if ($go=='outbox')
								{ include("./mb_flad/mb_outbox.php"); }
					else if ($go=='notif')
								{ include("./mb_flad/mb_notif.php"); }
					else if ($go=='getcoin')
								{ include("./mb_flad/mb_givehelp.php"); }
					else if ($go=='btcpin')
								{ include("./mb_flad/mb_btcpin.php"); }
					else if ($go=='lostpin')
								{ include("./mb_flad/mb_lostpin.php"); }
					//else if ($go=='withdrawal')
					//			{ include("./mb_flad/mb_withdrawal.php"); }		
					//else if ($go=='withdrawalpro')
					//			{ include("./mb_flad/mb_withdrawalpro.php"); }	
					else if ($go=='verifikasi')
								{ include("./mb_flad/mb_verifikasi.php"); }	
					else if ($go=='secure')
								{ include("./mb_flad/mb_secure.php"); }	
					else if ($go=='withdrawalrw')
								{ include("./mb_flad/mb_withdrawalrw.php"); }	
					else if ($go=='bonusrw')
								{ include("./mb_flad/mb_bonusrw.php"); }	
					else if ($go=='bonusrwg')
								{ include("./mb_flad/mb_bonusrwg.php"); }	
					else if ($go=='withdrawalrwg')
								{ include("./mb_flad/mb_withdrawalrwg.php"); }
					else if ($go=='kyc')
								{ include("./mb_flad/mb_verifikasi.php"); }	
					else if ($go=='ticket')
								{ include("./mb_flad/mb_ticket.php"); }			
					else if ($go=='rewardline')
								{ include("./mb_flad/mb_bonusrwline.php"); }				
					else if ($go=='walletcash')
								{ include("./mb_flad/mb_walletcash.php"); }				
					else if ($go=='walletpoint')
								{ include("./mb_flad/mb_walletpoint.php"); }				
					else if ($go=='walletcoin')
								{ include("./mb_flad/mb_walletcoin.php"); }	
					else if ($go=='payment_point')
								{ include("./mb_flad/mb_payment_point.php"); }	
					else if ($go=='payment_coin')
								{ include("./mb_flad/mb_payment_coin.php"); }	
					else if ($go=='produk')
								{ include("./mb_flad/mb_produk.php"); }		
					else if ($go=='order')
								{ include("./mb_flad/mb_dtorder.php"); }	
					else if ($go=='confirmorder')
								{ include("./mb_flad/mb_confirmorder.php"); }
					else if ($go=='checkout')
								{ include("./mb_flad/mb_checkout.php"); }	
					else if ($go=='payment_produk')
								{ include("./mb_flad/mb_payment_produk.php"); }		
					else if ($go=='payment_getcoin')
								{ include("./mb_flad/mb_payment_invest.php"); }			
					else if ($go=='confirmpayment')
								{ include("./mb_flad/mb_confirmpayment.php"); }	
					else if ($go=='payment_ecash')
								{ include("./mb_flad/mb_payment_ecash.php"); }
					else if ($go=='payment_ecoin')
								{ include("./mb_flad/mb_payment_ecoin.php"); }	
					else if ($go=='payment_ticket')
								{ include("./mb_flad/mb_payment_ticket.php"); }				
					else if ($go=='deposit_data')
								{ include("./mb_flad/mb_deposit_data.php"); }	
					else if ($go=='payment_invest')
								{ include("./mb_flad/mb_payment_invest.php"); }							
					else if ($go=='upgrade')
								{ include("./mb_flad/mb_upgrade.php"); }							
					else if ($tradings == 1 && $go=='trade')
								{ include("./mb_flad/mb_trade.php"); }							
					else if ($go=='historytrade')
								{ include("./mb_flad/mb_historytrade.php"); }					
					else if ($go=='walletfree')
								{ include("./mb_flad/mb_walletfree.php"); }				
					else if ($go=='faq')
								{ include("./mb_flad/mb_faq.php"); }	
								
					else 		{ include("./mb_flad/redr.php");  }
					} else {
					if 		(empty($go))
								{ include("./mb_flad/mb_home.php"); }
					else if ($go=='home')
								{ include("./mb_flad/mb_home.php"); }			
								
					else 		{ include("./mb_flad/redr.php");  }
					
					} 
					
					
					?>
    
    
    
            <?php } ?>
            <?php } ?>
    
    
    
    
    
    
    
    
    
  </div>
  <!-- /.content-wrapper -->
  
  <footer class="main-footer">
    <div class="pull-right d-none d-sm-inline-block">
        
    </div>
	  Copyright &copy;  <?php echo $footer; ?>
  </footer>

  <!-- Control Sidebar -->
  <aside class="control-sidebar control-sidebar-dark">
 
   
 
  </aside>
  <!-- /.control-sidebar -->
  
  <!-- Add the sidebar's background. This div must be placed immediately after the control sidebar -->
  <div class="control-sidebar-bg"></div>
  
</div>
<!-- ./wrapper -->
  	
	 
	  
	<!-- jQuery 3 -->
	<script src="../assets/vendor_components/jquery/dist/jquery.js"></script>
	
	<!-- popper -->
	<script src="../assets/vendor_components/popper/dist/popper.min.js"></script>
	
	<!-- Bootstrap 4.0-->
	<script src="../assets/vendor_components/bootstrap/dist/js/bootstrap.js"></script>
	
	<!-- Bootstrap WYSIHTML5 -->
	<script src="../assets/vendor_plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.js"></script>
	
	<!-- Slimscroll -->
	<script src="../assets/vendor_components/jquery-slimscroll/jquery.slimscroll.js"></script>
	
	<!-- FastClick -->
	<script src="../assets/vendor_components/fastclick/lib/fastclick.js"></script>
	
  	
	<script src="../assets/vendor_components/Web-Ticker-master/jquery.webticker.min.js"></script>
<!-- DataTables -->
	<script src="../assets/vendor_components/datatables.net/js/jquery.dataTables.min.js"></script>
	<script src="../assets/vendor_components/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>

	
	<!-- This is data table -->
    <script src="../assets/vendor_plugins/DataTables-1.10.15/media/js/jquery.dataTables.min.js"></script>
	
	<!-- Crypto_Admin App -->
	<script src="js/template.js"></script>
	
	<!-- Crypto_Admin dashboard demo (This is only for demo purposes) -->
	<script src="js/pages/dashboard.js"></script>
	<script src="js/pages/dashboard-chart.js"></script>
	 <!-- start - This is for export functionality only -->
    <script src="../assets/vendor_plugins/DataTables-1.10.15/extensions/Buttons/js/dataTables.buttons.min.js"></script>
    <script src="../assets/vendor_plugins/DataTables-1.10.15/extensions/Buttons/js/buttons.flash.min.js"></script>
    <script src="../assets/vendor_plugins/DataTables-1.10.15/ex-js/jszip.min.js"></script>
    <script src="../assets/vendor_plugins/DataTables-1.10.15/ex-js/pdfmake.min.js"></script>
    <script src="../assets/vendor_plugins/DataTables-1.10.15/ex-js/vfs_fonts.js"></script>
    <script src="../assets/vendor_plugins/DataTables-1.10.15/extensions/Buttons/js/buttons.html5.min.js"></script>
    <script src="../assets/vendor_plugins/DataTables-1.10.15/extensions/Buttons/js/buttons.print.min.js"></script>
    <!-- end - This is for export functionality only -->
	
	<!-- Crypto_Admin for Data Table -->
	<script src="js/pages/data-table.js"></script>
	<script src="../assets/vendor_components/chart.js-master/Chart.min.js"></script>
	<script src="js/pages/chartjs-int.js"></script>
<script src="../themes/assets/build/js/intlTelInput.js"></script>
   <script type="text/javascript">
            $(document).ready(function () {
    App.init()
		   
		    $("#show-animation").change(function () {
                if ( $(this).is(":checked") ) {
                    $("#header-canvas").show();
                } else {
                    $("#header-canvas").hide();
                }
            });
			
            $("#phone").intlTelInput({
              // allowDropdown: false,
              // autoHideDialCode: false,
              // autoPlaceholder: "off",
              // dropdownContainer: "body",
              // excludeCountries: ["us"],
			  
			  
			  
              // formatOnDisplay: true,
              geoIpLookup: function(callback) {
                 $.get("http://ipinfo.io", function() {}, "jsonp").always(function(resp) {
                   var countryCode = (resp && resp.country) ? resp.country : "";
                   callback(countryCode);
                 });
               },
              //hiddenInput: "full_number",
              // initialCountry: "auto",
              // nationalMode: false,
              onlyCountries: ['my', 'id'],
              // placeholderNumberType: "MOBILE",
               preferredCountries: ['my'],
              // separateDialCode: true,
              utilsScript: "../themes/assets/build/js/utils.js"
            });
			})
        </script>  
 <script type="text/javascript">

$("#phone").intlTelInput({
  utilsScript: "../themes/assets/build/js/utils.js" // just for formatting/placeholders etc
});

// update the hidden input on submit
$("form").submit(function() {
  $("#hidden").val($("#phone").intlTelInput("getNumber"));
});

</script>  

   <script type="text/javascript">
     // get the country data from the plugin
var countryData = $.fn.intlTelInput.getCountryData(),
  telInput = $("#phone"),
  addressDropdown = $("#country");

// init plugin
telInput.intlTelInput({
  utilsScript: "../themes/assets/build/js/utils.js" // just for formatting/placeholders etc
});

// populate the country dropdown
$.each(countryData, function(i, country) {
  addressDropdown.append($("<option></option>").attr("value", country.iso2).text(country.name));
});
// set it's initial value
var initialCountry = telInput.intlTelInput("getSelectedCountryData").iso2;
addressDropdown.val(initialCountry);

// listen to the telephone input for changes
telInput.on("countrychange", function(e, countryData) {
  addressDropdown.val(countryData.iso2);
});

// listen to the address dropdown for changes
addressDropdown.change(function() {
  telInput.intlTelInput("setCountry", $(this).val());
});
</script>
<script language="javascript" type="text/javascript">
    $(document).ready(function(){
			   setInterval(function() {
           $.ajax({
                type: "GET",
                url: "get_update.php" ,
                success : function() { 
                }
            }).error(function(){
          });
			}, 5000);
        });  
</script>
	<!-- Crypto_Admin for demo purposes -->
	<script src="js/demo.js"></script>
<script src="../themes/assets/js/hextracoin.js"></script>   
		<script src="assets/plugins/js/sweetalert.js"></script>
<?php if($stchat == 1) { include("../tawkto.php"); 
} else if($stchat == 2) { include("../whatshelp.php"); 
} else if($stchat == 3) { include("../whatshelptawk.php"); 
} ?> 
</body>
</html>
<?php ob_flush(); ?>