<?php include('../include/class.php');?>
<?php
	$g_id = $_GET['id'];
	$list_ath = array('table'=>'facebook','where'=>'status = 1  AND id = "'.$g_id.'" ','order'=> "ORDER BY id DESC LIMIT 0 , 1");
	$view_ath = $view_db->view($list_ath);
	$row_ath = $view_db->q($view_ath);
	$img_fa = 'http://www.kainumber.com/redbag/facebook/'.$row_ath['image'];
	$img_fa2 = 'http://www.kainumber.com/redbag/facebook/thumb/'.$row_ath['image'];
	$title_fa = $row_ath['title'];
	$description_fa =  substr(strip_tags($row_ath['detail']), 0, 200).'...';
	$redirec =  $row_ath['redirec'];
?>
<?php include('../include/header_2.php')?>
<?php $menu = 'facebook';?>
<?php //include('../theme/menu.php')?>
<style media="screen">
	.spinner-border{
		width: 6rem;height: 6rem;
	}
</style>
<div class="d-flex w-100 h-100 p-3 mx-auto flex-column mt-5">
	<main>
		<div class="d-flex justify-content-center mt-5">
		  <div class="spinner-border" role="status">
		    <span class="visually-hidden">Loading...</span>
		  </div>
		</div>
		<div class="d-flex justify-content-center mt-5">
			<label for="">Loading....</label>
		</div>

	</main>
</div>
<script>

	window.onload = function(){
		window.location.href = "<?php echo @$redirec; ?>";
		/*setInterval(function(){}, 1000);*/
	}


</script>
<!-- /.body -->
<?php //include('../include/footer.php')?>
<?php include('../include/footer_js.php')?>
