if (!strcmp("pm", $_POST['stoptype'])) { $stophour = (int) $_POST['stophour'] + 12; } else { $stophour = $_POST['stophour']; } $stopmonth = $_POST['stopmonth']; $stopday = $_POST['stopday']; $stopyear = $_POST['stopyear']; $stopmin = $_POST['stopmin']; $stopsec = $_POST['stopsec']; $stopzone = $_POST['stopzone']; $stoptime = $stopmonth . ' ' . $stopday . ', '; $stoptime .= $stopyear . '   ' . $stophour . ':'; $stoptime .= $stopmin . ':' . $stopsec . '   '; $stoptime .= $stopzone; $stopUnixTime = time2unix($stopmonth, $stopday, $stopyear, $stophour, $stopmin, $stopsec, $stopzone); $stopgps = unix2gps($stopUnixTime); } else { $stopgps = $_POST['stopgps']; $stopUnixTime = gps2unix($stopgps); $stoptime = gmstrftime("%b %d, %Y   %H:%M:%S", $stopUnixTime); $stoptime .= '   UTC'; } ?> <p> Affected Detector = <?php echo htmlspecialchars($_POST['site']); ?> </p> <?php $site = htmlspecialchars($_POST['site']); ?>
if (!strcmp("pm", $_POST['type'])) { $hour = (int) $_POST['hour'] + 12; } else { $hour = $_POST['hour']; } $month = $_POST['month']; $day = $_POST['day']; $year = $_POST['year']; $min = $_POST['min']; $sec = $_POST['sec']; $zone = $_POST['zone']; $time = $month . ' ' . $day . ', '; $time .= $year . '   ' . $hour . ':'; $time .= $min . ':' . $sec . '   '; $time .= $zone; $UnixTime = time2unix($month, $day, $year, $hour, $min, $sec, $zone); $gps = unix2gps($UnixTime); } else { $gps = $_POST['gps']; $UnixTime = gps2unix($gps); $time = gmstrftime("%b %d, %Y   %H:%M:%S", $UnixTime); $time .= '   UTC'; } // validate start and stop time if (strlen($gps) != 9) { echo "<p><font color='red'>GPS time must be 9 digits</font></p>"; } else { getrepo($gps, $isi); } ?>