aboutsummaryrefslogtreecommitdiff
path: root/seasonal.php
blob: 42141d27634b1fcb98b379dc7c1f833b5f0d88e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
$fun = rand(0,8192);

$favicon_filename = "/favicon.ico";
$style = "";
$greeting = "Welcome.";

$month = idate("m");
$day = idate("d");

if($month == 6 || ($month == 3 && $day == 31)) {
  $favicon_filename = "/favicon_transgender.ico";
  $style = ":root { --blue: #5BCEFA; --green: #F5A9B8; --yellow: #FFFFFF; }";
  $greeting = "Trans rights!";
}

echo("<link rel='icon' type='image/x-icon' href='$favicon_filename'>");
if($style) {
  echo("<style>$style</style>");
}