43 lines
1.3 KiB
PHP
43 lines
1.3 KiB
PHP
<!DOCTYPE html>
|
|
<?php
|
|
|
|
$debug = isset($_REQUEST['debug']) && ($_REQUEST['debug'] == "debug");
|
|
|
|
$today = new DateTime("today");
|
|
$year = $today->format("Y");
|
|
|
|
$start_date = new DateTime("midnight first day of june");
|
|
|
|
$deadline_date = new DateTime("$year-07-11");
|
|
#$deadline_date = new DateTime("midnight last day of july");
|
|
$deadline = $deadline_date->format("Y-m-d");
|
|
|
|
$award_ceremony_date = new DateTime("$year-07-25");
|
|
$award_ceremony = $award_ceremony_date->format("Y-m-d");
|
|
|
|
?><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<link rel="icon" href="/favicon.min.svg">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>Best-Prof-Award Informatik <?php echo $year ?> | Fachschaft Informatik</title>
|
|
<link href="bpa.css" rel="stylesheet" />
|
|
</head>
|
|
<body>
|
|
<div class="main-div">
|
|
<div class="logo-div"><img class="logo" src="fslogon.svg" alt="FS-Logo" /></div>
|
|
<h1 class="title">Best-Prof-Award Informatik <?php echo $year ?></h1>
|
|
<?php
|
|
|
|
require_once "util.php";
|
|
|
|
if (($start_date <= $today && $today <= $deadline_date) || $debug ) {
|
|
include "form.php";
|
|
} else {
|
|
include "closed.php";
|
|
}
|
|
|
|
?>
|
|
</div>
|
|
</body>
|
|
</html>
|