diff --git a/include/ysfgatewayinfo.php b/include/ysfgatewayinfo.php index b2066c5..4787c68 100644 --- a/include/ysfgatewayinfo.php +++ b/include/ysfgatewayinfo.php @@ -40,12 +40,25 @@ "; + $timestamp = $reflector[4]; + $timestamp2 = new DateTime($timestamp); + $now = new DateTime(); + $timestamp2->add(new DateInterval('PT60M')); + if ($now->format('U') >= $timestamp2->format('U')) { + echo ""; + } else { + $timestamp2 = new DateTime($timestamp); + $timestamp2->add(new DateInterval('PT30M')); + if ($now->format('U') >= $timestamp2->format('U')) { + echo ""; + } else {echo ""; + } + } echo "$counter"; for ($i = 0; $i < 5; $i++) { echo"$reflector[$i]"; } - echo ""; + echo "\n"; $counter++; } }