From ec5b2499fff7cd30e1c221dbd63b37ef507d41b8 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sun, 28 Mar 2010 09:42:25 -0400 Subject: Added April Fools Day joke --- includes/specialdates.php | 99 +++++++++++++++++++++++++++-------------------- 1 file changed, 57 insertions(+), 42 deletions(-) (limited to 'includes/specialdates.php') diff --git a/includes/specialdates.php b/includes/specialdates.php index 067de6d..52baf2e 100755 --- a/includes/specialdates.php +++ b/includes/specialdates.php @@ -42,6 +42,7 @@ sd_lunar_annual('Presidents Day',2,1,3); //DateFinder sd_solar_annual('Valentines Day',2,14); //BG Pic; DateFinder sd_solar_multiannual('Leap Day',2,29,4,2004); //DateFinder sd_solar_annual('St Patricks Day',3,17); //DateFinder +sd_solar_annual('April Fools Day',4,1); //Awesome sd_solar_annual('Tri\'s CIEday',4,22); //DateFinder sd_solar_annual('Silence Day',4,25); //DateFinder sd_solar_annual('WCA Day',5,5); //DateFinder @@ -310,50 +311,64 @@ function sd_addDateIn($id,$dateid) function sd_dateFinder() { - if (sd_ifNoSpecialDay()) - { - $did = sd_getMonthStart(date('n')-1); - $did += (date('j')-1); - $did = sd_findNextDay() - $did; - return ($did . ' more days until the next holiday!'); - } else { - switch (sd_getCurrentDay()) - { - case 'New Years Day': return 'Happy new years!'; - case 'Martin Luther King Day': return 'Happy Martin Luther King Day!'; - case 'Groundhog Day': return 'It\'s groundhog day? Will he see his shadow?'; - case 'Presidents Day': return 'Happy President\'s Day!'; - case 'Valentines Day': return 'Happy Valentines Day! Will you be mine?'; - case 'St Patricks Day': return 'Happy St. Patrick\'s Day! If you\'re not wearing green, I\'ll pinch you!'; - case 'Mothers Day': return 'Happy Mothers Day!'; - case 'Memorial Day': return 'Remember...'; - case 'Easter': return 'Happy Easter! Where are those eggs?'; - case 'Mardi Gras': return 'Happy Mardi Gras! Time to get fat!'; - case 'Ash Wednesday': return 'Happy Ash Wednesday! Did you get your ashes?'; - case 'Palm Sunday': return 'Happy Palm Sunday!'; - case 'Holy Thursday': return 'Happy Holy Thursday!'; - case 'Hatkirbys B-Day': return 'Happy Birthday to me! Happy Birthday to me! Happy Birthday dear Hatkirby! Happy Birthday to me!'; - case 'Flag Day': return 'Happy Flag Day!'; - case 'Fathers Day': return 'Happy Fathers Day!'; - case 'Independance Day': return 'Happy 4th of July!'; - case 'Labor Day': return 'Happy Labor Day!'; - case 'Four Island A': return ('Happy birthday Four Island! Four Island is ' . (date('Y')-2007) . ' years old!'); - case 'Columbus Day': return 'Happy Columbus Day!'; - case 'Halloween': return 'Happy Halloween!'; - case 'Veterans Day': return 'Only 2 minutes of silence. Remember... remember...'; - case 'Thanksgiving': return 'Happy Thanksgiving! Gobble gobble gobble gobble!'; - case 'Kirby Week': return 'It\'s Kirby Week! Not only is it a time of celebreation and fun on Four Island, it\'s only a week before Christmas!'; - case 'Christmas Eve': return '"1 Day Left" says Fourie!'; - case 'Christmas Day': return 'Merry Christmas! Time for presents!'; - case 'New Years Eve': return '5... 4... 3... 2...'; - case 'SysAdminDay': return 'If you can read this, thank your sysadmin'; - case 'WCA Day': return 'Webcomic Appreciation Day! Stare in wonder at all of your favorite webcomics! Like Pillowcase, for instance!'; - case 'Leap Day': return 'What day is it? LEAP DAY? This only happens once every four years! LET\'S LEAP IN JOY!'; - case 'Tris CIEday': return 'This is the day that shei came.'; + if (sd_ifNoSpecialDay()) + { + $did = sd_getMonthStart(date('n')-1); + $did += (date('j')-1); + $did = sd_findNextDay() - $did; + return ($did . ' more days until the next holiday!'); + } else { + switch (sd_getCurrentDay()) + { + case 'New Years Day': return 'Happy new years!'; + case 'Martin Luther King Day': return 'Happy Martin Luther King Day!'; + case 'Groundhog Day': return 'It\'s groundhog day? Will he see his shadow?'; + case 'Presidents Day': return 'Happy President\'s Day!'; + case 'Valentines Day': return 'Happy Valentines Day! Will you be mine?'; + case 'St Patricks Day': return 'Happy St. Patrick\'s Day! If you\'re not wearing green, I\'ll pinch you!'; + case 'Mothers Day': return 'Happy Mothers Day!'; + case 'Memorial Day': return 'Remember...'; + case 'Easter': return 'Happy Easter! Where are those eggs?'; + case 'Mardi Gras': return 'Happy Mardi Gras! Time to get fat!'; + case 'Ash Wednesday': return 'Happy Ash Wednesday! Did you get your ashes?'; + case 'Palm Sunday': return 'Happy Palm Sunday!'; + case 'Holy Thursday': return 'Happy Holy Thursday!'; + case 'Hatkirbys B-Day': return 'Happy Birthday to me! Happy Birthday to me! Happy Birthday dear Hatkirby! Happy Birthday to me!'; + case 'Flag Day': return 'Happy Flag Day!'; + case 'Fathers Day': return 'Happy Fathers Day!'; + case 'Independance Day': return 'Happy 4th of July!'; + case 'Labor Day': return 'Happy Labor Day!'; + case 'Four Island A': return ('Happy birthday Four Island! Four Island is ' . (date('Y')-2007) . ' years old!'); + case 'Columbus Day': return 'Happy Columbus Day!'; + case 'Halloween': return 'Happy Halloween!'; + case 'Veterans Day': return 'Only 2 minutes of silence. Remember... remember...'; + case 'Thanksgiving': return 'Happy Thanksgiving! Gobble gobble gobble gobble!'; + case 'Kirby Week': return 'It\'s Kirby Week! Not only is it a time of celebreation and fun on Four Island, it\'s only a week before Christmas!'; + case 'Christmas Eve': return '"1 Day Left" says Fourie!'; + case 'Christmas Day': return 'Merry Christmas! Time for presents!'; + case 'New Years Eve': return '5... 4... 3... 2...'; + case 'SysAdminDay': return 'If you can read this, thank your sysadmin'; + case 'WCA Day': return 'Webcomic Appreciation Day! Stare in wonder at all of your favorite webcomics! Like Pillowcase, for instance!'; + case 'Leap Day': return 'What day is it? LEAP DAY? This only happens once every four years! LET\'S LEAP IN JOY!'; + case 'Tris CIEday': return 'This is the day that shei came.'; case 'Silence Day': return 'Support LGBT people by keeping the silence until 5 PM.'; - case 'CTNH': return 'It never happened.'; - } + case 'CTNH': return 'It never happened.'; + case 'April Fools Day': return 'Long live the three!'; + } } } +function doAprilFoolsDay($text) +{ + if (sd_isSpecialDay('April Fools Day')) + { + $text = str_replace('four', 'three', $text); + $text = str_replace('Four', 'Three', $text); + //$text = str_replace('4', '3', $text); + $text = str_replace('FOUR', 'THREE', $text); + } + + return $text; +} + ?> -- cgit 1.4.1