notification redirect

This commit is contained in:
Chris Smith
2020-03-19 13:25:14 -05:00
parent dbba5a7d87
commit d504e65db0
2 changed files with 5 additions and 2 deletions

View File

@@ -129,6 +129,8 @@ function shoppingCartTotal($price)
function checkIfTicketsAreOnSale()
{
header('Location: /notify');
$todaysDate = new DateTime('now', new DateTimeZone('America/Chicago'));
$dateOnSale = new DateTime('3/15/2020 8:00am', new DateTimeZone('America/Chicago'));
$interval = $todaysDate->diff($dateOnSale);

View File

@@ -2,11 +2,12 @@
<div class="col-md-12 mb-12">
<div class="mb-12 text-center">
<br/><br/>
<h3>Sorry - tickets are not on sale to the public yet.</h3>
<h3>Sorry - this event is postponed at the moment.</h3>
<?php
if (isset($_GET['d'])) {
$date = new DateTime($_GET['d']);
echo '<h5>VIP tickets go on sale ' . $date->format('F jS, Y \a\t h:ia') . '</h5>';
echo '<h5>You will be notified when the tickets are on sale.</h5>';
//echo '<h5>VIP tickets go on sale ' . $date->format('F jS, Y \a\t h:ia') . '</h5>';
}
?>
<h5>Early bird tickets will go on sale April 1st, 2020 at 8:00am</h5>