notification redirect
This commit is contained in:
@@ -129,6 +129,8 @@ function shoppingCartTotal($price)
|
|||||||
|
|
||||||
function checkIfTicketsAreOnSale()
|
function checkIfTicketsAreOnSale()
|
||||||
{
|
{
|
||||||
|
header('Location: /notify');
|
||||||
|
|
||||||
$todaysDate = new DateTime('now', new DateTimeZone('America/Chicago'));
|
$todaysDate = new DateTime('now', new DateTimeZone('America/Chicago'));
|
||||||
$dateOnSale = new DateTime('3/15/2020 8:00am', new DateTimeZone('America/Chicago'));
|
$dateOnSale = new DateTime('3/15/2020 8:00am', new DateTimeZone('America/Chicago'));
|
||||||
$interval = $todaysDate->diff($dateOnSale);
|
$interval = $todaysDate->diff($dateOnSale);
|
||||||
|
|||||||
@@ -2,11 +2,12 @@
|
|||||||
<div class="col-md-12 mb-12">
|
<div class="col-md-12 mb-12">
|
||||||
<div class="mb-12 text-center">
|
<div class="mb-12 text-center">
|
||||||
<br/><br/>
|
<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
|
<?php
|
||||||
if (isset($_GET['d'])) {
|
if (isset($_GET['d'])) {
|
||||||
$date = new DateTime($_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>
|
<h5>Early bird tickets will go on sale April 1st, 2020 at 8:00am</h5>
|
||||||
|
|||||||
Reference in New Issue
Block a user