summaryrefslogtreecommitdiffstats
path: root/site/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'site/index.php')
-rw-r--r--site/index.php20
1 files changed, 17 insertions, 3 deletions
diff --git a/site/index.php b/site/index.php
index f876461..25051d0 100644
--- a/site/index.php
+++ b/site/index.php
@@ -55,9 +55,23 @@
in an attempt to make coreboot as easy to use as possible. ROM images are provided, along with utilities, all built from the
publicly distributed source code.
</p>
- <p>
- <strong>Today is <a href="https://lists.nongnu.org/archive/html/libreboot/2015-12/msg00001.html">Reboot Tuesday</a>.</strong>
- </p>
+
+ <?php
+ $dateU=date("U");
+ $dateMonth=date("n",$dateU);
+ if($dateMonth==12){/* december */
+ $dateDayOfWeek=date("N",$dateU);
+ if($dateDayOfWeek==2){/* tuesday */
+ $dateDayOfMonth=date("j",$dateU);
+ if(($dateDayOfMonth-7)<=0){
+ ?>
+ <p><strong>Today (<?php echo date("r",$dateU); ?>) is <a href="https://lists.nongnu.org/archive/html/libreboot/2015-12/msg00001.html">Reboot Tuesday</a>.</strong></p>
+ <?php
+ }
+ }
+ }
+ ?>
+
<p>
<strong><em>FCC in the USA is trying to *ban* free WiFi devices!
Learn more at <a href="http://savewifi.org/">SaveWifi.org</a>. Europeans,