<?php session_start(); ?>
<?php include("../db.php"); 


if(isset($_SESSION['host'])){
	$host = $_SESSION['host'];
}else{
	$host = $_SERVER['HTTP_HOST'];
	$_SESSION['host'] = $host;
}

$HTTP_ACCEPT_ENCODING = $_SERVER['HTTP_ACCEPT_ENCODING']; 

// Include this function on your pages

 include("php/lang.php");
 
?>
<!DOCTYPE html> 
<html>
	<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<?php if($host == 'chateglobalservices.com') { ?>
	<title>Omex - VTS</title> 
	<?php } else if($host == 'vts.trackeron.com' || $host == 'test.trackeron.com' || $host == 'gogpslive.com') {?>
	<title>Trackeron - VTS</title>
	<?php } else if($host == 'trackeron.com' || $host == 'www.trackeron.com') {?>
	<title>Trackeron - VTS</title>
	<?php }else if($host == 'check.theblackbox.in' || $host == 'www.check.theblackbox.in') { ?>
	<title>The Black Box - VTS</title>
        <?php } else if($host == 'eazytrace.co' || $host == 'www.eazytrace.co') {?>
	<title>EazyTrace - VTS</title>
	<?php } else { ?>
	<title>PreciseTrak</title>
	<?php } ?>
	<script src="js/jquery-1.8.1.min.js"></script>
	<link rel="stylesheet"  href="jquery.mobile-1.3.2/jquery.mobile-1.3.2.css" />
	
	<script src="jquery.mobile-1.3.2/jquery.mobile-1.3.2.js"></script>
	
	<link rel="stylesheet" type="text/css" href="css/mobipick.css" />
	<script type="text/javascript" src="js/xdate.js"></script>
	<script type="text/javascript" src="js/xdate.i18n.js"></script>
	<script type="text/javascript" src="js/mobipick.js"></script>

	<script src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
	<script src='../assets/javascript/infobox_min.js' type='text/javascript'></script>
	<script src='../assets/javascript/jQueryRotate.2.2_min.js' type='text/javascript'></script>
	<script type='text/javascript' src='../assets/javascript/infobubble-compiled.js'></script>
	<script type='text/javascript' src='../assets/javascript/elabel_min.js'></script>
	<link href="css/mobiscroll-2.0.3.custom.min.css" rel="stylesheet" type="text/css" />
	<script src="js/mobiscroll-2.0.3.custom.min.js" type="text/javascript"></script>
	<script type="text/javascript" src="js/markerclusterer.js"></script>
	<script type="text/javascript" src="js/keydragzoom_packed.js"></script>
	
	<script type="text/javascript" src="js/jqplot/jquery.jqplot_min.js"></script>
	<script type="text/javascript" src="js/jqplot/jqplot.logAxisRenderer_min.js"></script>
	<script type="text/javascript" src="js/jqplot/jqplot.canvasTextRenderer.js"></script>
	<script type="text/javascript" src="js/jqplot/jqplot.barRenderer_min.js"></script>
	<script type="text/javascript" src="js/jqplot/jqplot.categoryAxisRenderer_min.js"></script>
	<script type="text/javascript" src="js/jqplot/jqplot.dateAxisRenderer_min.js"></script>
	<script type="text/javascript" src="js/jqplot/jqplot.pointLabels_min.js"></script>
	<script type="text/javascript" src="js/jqplot/jqplot.cursor_min.js"></script>
	<script type="text/javascript" src="js/jqplot/jqplot.highlighter_min.js"></script>
	<script type="text/javascript" src="js/jqplot/jqplot.canvasAxisLabelRenderer.js"></script>
	<script type="text/javascript" src="js/jqplot/jqplot.canvasAxisTickRenderer.js"></script>
	<script type="text/javascript">
	
	function loadUrl(page, data) {
	
		var newForm = jQuery('<form>', {
			'action': page,
			'method': 'POST',
			'target': '_top'
		}).append(jQuery('<input>', {
			'name': 'device_ids',
			'value': data,
			'type': 'hidden'
		}));
		newForm.appendTo('body').submit();
	}
	
	</script>	
</head> 
<body> 
	
	<div data-role="page" data-theme="d">

		