<?php 

session_start();

if(!$_SESSION['login']){
	header("Location: login.php");
}
if($_SESSION['standalone_mode']=='1'){
} else {
	header("Location: index.php");
}
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="description" content="">
<meta name="author" content="Bogen Communications LLC">
<meta name="copyright" content="Bogen Communications LLC">
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />
<link rel="shortcut icon" href="">
<link rel="stylesheet" href="/css/styles.css">
<link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/font-awesome/css/font-awesome.min.css">
<link rel="icon" type="image/png" href="/favicon.png" />
<title><?php echo $_SESSION['device_type']; ?> (<?php echo $_SESSION['device_name']; ?>) - About</title>
</head>

<body>
<div class="container">

<?php include 'navbar.php';?>

<h4><strong><i class="fa fa-info-circle"></i> About</strong></h4>

<strong>
	<p>Version: <span id="version_number"></span></p> 
 
	<p>© Copyright <?php echo date('Y'); ?>, Bogen Communications LLC. All rights reserved.</p>

	<p>1200 MacArthur Blvd. Suite 304, Mahwah, NJ 07430 • 1-800-999-2809</p>

	<p>Bogen Communications LLC, a subsidiary of Bogen Corporation, is a leading provider of sound systems and telephone peripherals for commercial, industrial, and institutional applications.</p>

	<p>Notices, terms, and conditions pertaining to third party software are provided in the End User License Agreement (EULA) and incorporated by reference herein.</p>

	<p>This computer program and its user interface are protected by copyright law and international treaties. Unauthorized reproduction or distribution of this program, or any portion of it, may result in severe civil and criminal penalties and will be prosecuted to the maximum extend under the law.</p>
	
	<p>This software uses libraries from the FFmpeg project under the LGPL.v2.1.</p>

	<p>For more information about Nyquist, Nyquist appliances, or Bogen, visit the Bogen website at <a href="http://www.bogen.com" target="_blank">http://www.bogen.com</a>.</p>
	
	<p><a href="/eula.php" type="button" class="btn btn-sm btn-default" target="_blank"><i class='fa fa-file-text-o'></i>&nbsp;&nbsp;End-User License Agreement </a></p>
	
	<p><a href="/help/pdfs/Nyquist-EULA.pdf" type="button" class="btn btn-sm btn-default" target="_blank"><i class='fa fa-file-pdf-o'></i>&nbsp;&nbsp;End-User License Agreement (PDF)</a></p>
	
	<p><a href="/software_licensing.php" type="button" class="btn btn-sm btn-default" target="_blank"><i class='fa fa-file-text-o'></i>&nbsp;&nbsp;Third-Party Software Licensing and Attribution</a></p>
	<br>
	<a href="https://www.bogen.com/product-training" target="_blank"><img src="/img/elearning_qr_code.png" width="140"></a>
</strong>

</div>
<script src="/js/jquery.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
</body>
</html>
<script>
// on page load
window.onload = function() {  
	get_firmware_status();
}
function get_firmware_status(){
	
	var xmlhttp=new XMLHttpRequest();
    	xmlhttp.onreadystatechange=function() {
        	if (xmlhttp.readyState==4 && xmlhttp.status==200) {
				// success 
				//alert(xmlhttp.responseText);
				
				var dataArray = xmlhttp.responseText.split("|");
				var old_version = dataArray[0];
				var new_version = dataArray[1];
								
				document.getElementById("version_number").innerHTML = old_version;
        	}
		}
	 	xmlhttp.open("GET","scripts.php?s=get_firmware_status",true);
   		xmlhttp.send();
}
//  tooltip
$(function () {
  $('[data-toggle="tooltip"]').tooltip()
})
</script>