diff options
author | Starla Insigna <starla4444@gmail.com> | 2011-03-31 21:56:35 -0400 |
---|---|---|
committer | Starla Insigna <starla4444@gmail.com> | 2011-03-31 21:56:35 -0400 |
commit | e6362171e86d53155c34bf60f2786ee5af0cb707 (patch) | |
tree | a6e59f4984207cff0b9163f17f80e52366382e94 /includes | |
parent | 87b42536198dfab02de616f9ba1e68ea307cce90 (diff) | |
download | fourisland-e6362171e86d53155c34bf60f2786ee5af0cb707.tar.gz fourisland-e6362171e86d53155c34bf60f2786ee5af0cb707.tar.bz2 fourisland-e6362171e86d53155c34bf60f2786ee5af0cb707.zip |
Added April Fools Day 2011 joke
Also adjusted the date for the Day of Silence to reflect the 2011 date.
Diffstat (limited to 'includes')
-rwxr-xr-x | includes/specialdates.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/includes/specialdates.php b/includes/specialdates.php index 8d0aa08..907ca8f 100755 --- a/includes/specialdates.php +++ b/includes/specialdates.php | |||
@@ -44,7 +44,7 @@ sd_solar_multiannual('Leap Day',2,29,4,2004); //DateFinder | |||
44 | sd_solar_annual('St Patricks Day',3,17); //DateFinder | 44 | sd_solar_annual('St Patricks Day',3,17); //DateFinder |
45 | sd_solar_annual('April Fools Day',4,1); //Awesome | 45 | sd_solar_annual('April Fools Day',4,1); //Awesome |
46 | sd_solar_annual('Tri\'s CIEday',4,22); //DateFinder | 46 | sd_solar_annual('Tri\'s CIEday',4,22); //DateFinder |
47 | sd_solar_annual('Silence Day',4,25); //DateFinder | 47 | sd_solar_annual('Silence Day',4,15); //DateFinder |
48 | sd_solar_annual('WCA Day',5,5); //DateFinder | 48 | sd_solar_annual('WCA Day',5,5); //DateFinder |
49 | sd_lunar_annual('Mothers Day',5,7,2); //BG Pic; DateFinder; Header Pic | 49 | sd_lunar_annual('Mothers Day',5,7,2); //BG Pic; DateFinder; Header Pic |
50 | sd_lunar_annual('Memorial Day',5,1,5); //BG Pic; DateFinder; Header Pic | 50 | sd_lunar_annual('Memorial Day',5,1,5); //BG Pic; DateFinder; Header Pic |
@@ -354,7 +354,7 @@ function sd_dateFinder() | |||
354 | case 'Tris CIEday': return 'This is the day that shei came.'; | 354 | case 'Tris CIEday': return 'This is the day that shei came.'; |
355 | case 'Silence Day': return 'Support LGBT people by keeping the silence until 5 PM.'; | 355 | case 'Silence Day': return 'Support LGBT people by keeping the silence until 5 PM.'; |
356 | case 'CTNH': return '<A HREF="/fuhsdiufgsadiufgaisfioas.php">It never happened.</A>'; | 356 | case 'CTNH': return '<A HREF="/fuhsdiufgsadiufgaisfioas.php">It never happened.</A>'; |
357 | case 'April Fools Day': return 'Long live the three!'; | 357 | case 'April Fools Day': return 'It\'s FRIDAY, FRIDAY, GOTTA GET DOWN ON FRIDAY!'; |
358 | } | 358 | } |
359 | } | 359 | } |
360 | } | 360 | } |
@@ -363,10 +363,12 @@ function doAprilFoolsDay($text) | |||
363 | { | 363 | { |
364 | if (sd_isSpecialDay('April Fools Day')) | 364 | if (sd_isSpecialDay('April Fools Day')) |
365 | { | 365 | { |
366 | $text = str_replace('four', 'three', $text); | 366 | $text = str_replace('four', 'friday', $text); |
367 | $text = str_replace('Four', 'Three', $text); | 367 | $text = str_replace('Four', 'Friday', $text); |
368 | //$text = str_replace('4', '3', $text); | 368 | //$text = str_replace('4', '3', $text); |
369 | $text = str_replace('FOUR', 'THREE', $text); | 369 | $text = str_replace('FOUR', 'FRIDAY', $text); |
370 | $text = preg_replace('/([A-Za-z0-9 ]*)\: ([A-Za-z0-9 ]*)/', ' Rebecca Black: \2', $text); | ||
371 | $text = str_replace('Hatkirby', 'Rebecca Black', $text); | ||
370 | } | 372 | } |
371 | 373 | ||
372 | return $text; | 374 | return $text; |