- made This Month in Shireroth automatically link to the current month (hopefully. It doesn't take leap years into account and might be buggy...)
- rehosted the #micronations chat link on our server. Post changes here if you would like that page to be modified. For now, I replaced the references to Xelium with Psigenix, since the network #micronations is on changed its name.
Here are the numbers on the month-choice code, in case someone would like to check them:
Code: Select all
$thismonth_datenow = getdate();
$yday = $thismonth_datenow['yday'];
if (($yday < 18) || ($yday > 353)) {
$thismonth = 1;
}
elseif ($yday < 45)
$thismonth = 2;
elseif ($yday < 74)
$thismonth = 3;
elseif ($yday < 102)
$thismonth = 4;
elseif ($yday < 130)
$thismonth = 5;
elseif ($yday < 158)
$thismonth = 6;
elseif ($yday < 186)
$thismonth = 7;
elseif ($yday < 214)
$thismonth = 8;
elseif ($yday < 242)
$thismonth = 9;
elseif ($yday < 269)
$thismonth = 10;
elseif ($yday < 298)
$thismonth = 11;
elseif ($yday < 326)
$thismonth = 12;
else
$thismonth = 13;