summaryrefslogtreecommitdiffstats
path: root/site/index.php
diff options
context:
space:
mode:
authorFrancis Rowe <fchmmr@minifree.lan>2015-12-01 19:56:41 (EST)
committer Francis Rowe <fchmmr@minifree.lan>2015-12-01 19:56:41 (EST)
commit36837984ddf2e3fcd6656dd970ca2bf445e9fa98 (patch)
treea7452422dd155c49248fe25e2311d9cfcf93c487 /site/index.php
parent5c6f0c2f23c5c44d666e2fcec75200067d7dd739 (diff)
downloadlibreboot.org-36837984ddf2e3fcd6656dd970ca2bf445e9fa98.zip
libreboot.org-36837984ddf2e3fcd6656dd970ca2bf445e9fa98.tar.gz
libreboot.org-36837984ddf2e3fcd6656dd970ca2bf445e9fa98.tar.bz2
detect reboot tuesday automatically from now on
automatically display the notice, if it's reboot tuesday
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,