<?php
if (basename($_SERVER['SCRIPT_FILENAME']) == basename(__FILE__)){
echo "<p align=center><br><br><br><br><br><br><font size=\"6\" color=\"#FF0000\">ILLEGAL ACCESS !!";
echo "<meta http-equiv=\"refresh\" content=\"2; url=../index.php\">";
exit();} 
// // #-----------------------------------------------------------------------------#
// // #-------------------------------.*PRIMADESAIN*.-------------------------------#
// // #-------------------------------: Script MMM3 :-------------------------------#
// // #------------------- Copyright 2009-2015 Primadesain.com ---------------------#
// // #----------- Email: primapc57@gmail.com Phone: +62 852 2865 7360 -------------#
// // #--------- http://www.primadesain.com - http://www.primadesain.net -----------#
// // #-----------------------------------------------------------------------------#
// // #------------- Primadesain.Com | Jasa Webdesain Bisnis Online ----------------#
// // #--- Website Bisnis MLM, Bisnis Investasi, Forex, Hyip, Binary, Trinary, -----#
// // #------- Matrix 4 -- 10, Toko Online, Iklan Baris, Profil, Reseller. ---------#
// // #-----------------------------------------------------------------------------#
// // # This software is  furnished  under a  license and may  be used and   copied #
// // # only  in accordance with the terms of such  license and with  the inclusion #
// // # of  the above copyright notice.  This software or any other  copies thereof #
// // # may not be  provided or otherwise made available  to any other person.   No #
// // # title to and  ownership of the software is hereby transferred.              #
// // #                                                                             #
// // # You  may  not  reverse   engineer,  decompile,  defeat  license  encryption #
// // # mechanisms, or  disassemble  this  software  product  or software   product #
// // # license. We  may terminate  this license if you  don't comply  with any  of #
// // # the terms and   conditions set forth   in our  End  User  License Agreement #
// // # (EULA). In  such event, licensee  agrees to return licensor or  destroy all #
// // # copies of software upon termination  of the license.                        #
// // # Please see the EULA file for the full End User License Agreement.           #
// // ###############################################################################
?>

<!-- BEGIN PAGE HEADER-->
			<h3 class="page-title">
			Register History <small>register</small>
			</h3>
			<div class="page-bar">
				<ul class="page-breadcrumb">
					<li>
						<i class="fa fa-home"></i>
						<a href="index.php">Home</a>
						<i class="fa fa-angle-right"></i>
					</li>
					<li>
						<a href="#">Register</a>
						<i class="fa fa-angle-right"></i>
					</li>
					<li>
						<a href="#">Register History</a>
					</li>
				</ul>
				<div class="page-toolbar">
					
				</div>
			</div>
		
<?php
if($db->dataku("status", $user_session) == 0 || $db->dataku("blokir", $user_session) == 1) {
echo "<div class='alert alert-danger alert-dismissable'><button type='button' class='close' data-dismiss='alert' aria-hidden='true'></button>".$LANG["status0"]."</div>";
}else{
?>

<!-- BEGIN PAGE CONTENT-->
			<div class="row">
				<div class="col-md-12">
					<!-- BEGIN EXAMPLE TABLE PORTLET-->
					<div class="portlet box blue-hoki">
						<div class="portlet-title">
							<div class="caption">
								<i class="fa fa-edit"></i>Register History
							</div>
							
						</div>
						<div class="portlet-body">
							<div class="table-toolbar">
								<div class="row">
									<div class="col-md-6">
										
									</div>
									<div class="col-md-6">
										
									</div>
								</div>
							</div>
							<table class="table table-striped table-hover table-bordered" id="sample_editable_1">
							<thead>
							<tr>
					  <th>Username</th>
<th><?php echo $LANG["name"]?></th>
<th><?php echo $LANG["email"]?></th>
<th><?php echo $LANG["cellphone"]?></th>
<th>Referral</th>
<th><?php echo $LANG["prof_date"]?></th>
<th>Status</th>
							</tr>
							</thead>
							<tbody>
<?

	$db->select("id, username, nama, sponsor, tglaktif, status, email, hp", "member", "regid='$user_session'", "id desc");
	
		while($row=$db->fetch_row()) {
		
		if($row[5] > 0) {
		$sts = "<span class='badge badge-success'>Active</span>";
	} else {
		$sts = "<span class='badge badge-important'>Inactive</span>";
	
	}	
if($row[4] == "0000-00-00 00:00:00"){
$dtdepo = "----";
}else{
$dtdepo = formatgl($row[4]);
}

?>				
				
				<tr> 
<td align="center"><?php echo $nom; ?></td>
<td align="center"><?php echo $row[1]; ?></td>
<td align="center"><?php echo $row[2]; ?></td>
<td align="center"><?php echo $row[6]; ?></td>
<td align="center"><?php echo $row[7]; ?></td>
<td align="center"><?php echo $row[3]; ?></td>
<td align="center"><?php echo $dtdepo; ?></td>
<td align="center"><?php echo $sts; ?></td>
</tr>
                                                                    
             <?
		}
	?>
							</tbody>
							</table>
						</div>
					</div>
					<!-- END EXAMPLE TABLE PORTLET-->
				</div>
			</div>
			<!-- END PAGE CONTENT -->                       
                        <div class="modal fade" id="full" tabindex="-1" data-keyboard="false" data-backdrop="static">
								<div class="modal-dialog modal-full">
									<div class="modal-content">
                                     <iframe src="tree.php" frameborder="0" width="99.6%" height="500px"></iframe>
                                    
										
									</div>
									<!-- /.modal-content -->
								</div>
								<!-- /.modal-dialog -->
							</div>
                    <?php } ?>




