# Remove stale requests from this IP Address after 15 minutes.
# This should be enough to deter attackers while been short enough to allow real hosts to request a show.
$query_delete="DELETE FROM reservations WHERE reservations.ip = '$ip' AND reservations.timestamp + INTERVAL 15 MINUTE <= UTC_TIMESTAMP() AND reservations.verified = 0";
$localtime=date('l jS \of F Y h:i:s A',$show_timestamp);
echo"<p>It seems another request was made from this ip address\n (${ip}) on ${localtime}.</p>\n";
echo"<p>This lock is set for 15 minutes to deter attacks and will be released in about ".round(abs(16-($timestamp-$show_timestamp)/60))." minutes.</small></p>\n";
echo"<p>There are several reasons why you would see this page:</p>\n";
Werecommend<ahref=\"https://onlinegroups.net/blog/2014/02/25/how-to-whitelist-an-email-address\" target=\"_blank\">white listing</a> the email address <strong>robot@hackerpublicradio.org</strong>\n
</li>\n
<li>Youmayhavetypedtheaddressintothebrowserandit\"autofilled\" this old address</li>\n
<li>Youareusinganoldversionofthe<ahref=\"${hubBaseurl}calendar.php\">calendar</a> page. Press F5 in the <a href=\"${hubBaseurl}calendar.php\">calendar</a> page to refresh.</li>\n
</ul>\n
</li>\n";
echo"<li>The show has already been allocated to another host. </li>\n";
echo"</ul>\n";
echo"</p>\n";
echo"<p>Return to the <a href=\"${hubBaseurl}calendar.php\">calendar</a> page.</p>\n";
echo"<!-- If you are attacking us why not record a show telling us about what you were trying to do :) -->\n";
echo"<hr />\n";
echo"<p>If you are having issues please send the following information to admin @ HPR to assist in troubleshooting the issue:</p>\n";
echo"<br />\n<span id=\"small\">Unfortunately it is not possible to schedule episode $id. Please select another slot or contact admin@hackerpublicradio.org for more assistance.</span>\n";
}
?>
</td>
</tr>
<tr>
<td>E-mail:</td>
<td><inputrequiredtype="email"name="email"placeholder="To send you the upload link"></td>
</tr>
</table>
<p><em>Youmusthaveyouraudiorecordingreadytoupload<aaria-label="Help on the reserving a slot"href="<?php echo "${baseurl}about.html#reserving"; ?>"><strong>before</strong> you pick a slot</a>.</em></p>