<style>
		body { background-color:black; color:white; padding:10px; }
		.exposuretime-label { font-size:1.5em; display: inline; }
		.exposuretime-value { font-size:2em; display: inline; }
		.gamma-label { font-size:1.5em; display: inline; }
		.gamma-value { font-size:2em; display: inline; }
		.btn-lg { margin:5px; }
    </style>
  </head>
  <body>
  <script src="../libraries/jquery-2.0.3.min.js"></script>
  <p><a class="btn btn-primary" href="/index.php">Back</a></p>
<?php 
// This reads all the register values into one big array via a shell script
include "../libraries/func.php";
$registers = GetRegisters();
$EVRow = array(1 / 6400, 1 / 3200, 1 / 1600, 1 / 800, 1 / 400, 1 / 200, 1 / 100, 1 / 50, 1 / 25, 1 / 12, 1 / 6, 1 / 3);
$GammaRow = array(0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1, 1.1, 1.2);
if (isset($_GET["evindex"])) {
    $EVIndex = $_GET["evindex"];
} else {
    $EVIndex = 5;
}
if (isset($_GET["value"])) {
    $value = $_GET["value"];
} else {
    $value = 0;
}
if (isset($_GET["gammaindex"])) {
    $GammaIndex = $_GET["gammaindex"];
} else {
function GetBlackSunProtection()
{
    $registers = GetRegisters();
    return ExtractBits($registers[102], 0, 7);
}