diff options
Diffstat (limited to 'includes/specialdates.php')
-rwxr-xr-x | includes/specialdates.php | 102 |
1 files changed, 59 insertions, 43 deletions
diff --git a/includes/specialdates.php b/includes/specialdates.php index 067de6d..8d0aa08 100755 --- a/includes/specialdates.php +++ b/includes/specialdates.php | |||
@@ -42,11 +42,12 @@ sd_lunar_annual('Presidents Day',2,1,3); //DateFinder | |||
42 | sd_solar_annual('Valentines Day',2,14); //BG Pic; DateFinder | 42 | sd_solar_annual('Valentines Day',2,14); //BG Pic; DateFinder |
43 | sd_solar_multiannual('Leap Day',2,29,4,2004); //DateFinder | 43 | 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('Tri\'s CIEday',4,22); //DateFinder | 46 | sd_solar_annual('Tri\'s CIEday',4,22); //DateFinder |
46 | sd_solar_annual('Silence Day',4,25); //DateFinder | 47 | sd_solar_annual('Silence Day',4,25); //DateFinder |
47 | sd_solar_annual('WCA Day',5,5); //DateFinder | 48 | sd_solar_annual('WCA Day',5,5); //DateFinder |
48 | 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 |
49 | sd_lunar_annual('Memorial Day',5,1,4); //BG Pic; DateFinder; Header Pic | 50 | sd_lunar_annual('Memorial Day',5,1,5); //BG Pic; DateFinder; Header Pic |
50 | sd_easter(); //BG Pic; DateFinder | 51 | sd_easter(); //BG Pic; DateFinder |
51 | sd_solar_annual('Flag Day',6,14); //BG Pic; DateFinder | 52 | sd_solar_annual('Flag Day',6,14); //BG Pic; DateFinder |
52 | sd_solar_annual('Hatkirbys B-Day',6,17); //BG Pic; DateFinder; Header Pic | 53 | sd_solar_annual('Hatkirbys B-Day',6,17); //BG Pic; DateFinder; Header Pic |
@@ -54,6 +55,7 @@ sd_lunar_annual('Fathers Day',6,7,3); //BG Pic; DateFinder | |||
54 | sd_solar_annual('CTNH',6,17); //Header Pic; DateFinder | 55 | sd_solar_annual('CTNH',6,17); //Header Pic; DateFinder |
55 | sd_solar_annual('Independance Day',7,4); //BG Pic; DateFinder | 56 | sd_solar_annual('Independance Day',7,4); //BG Pic; DateFinder |
56 | sd_lunar_annual('SysAdminDay',7,5,4); //DateFinder | 57 | sd_lunar_annual('SysAdminDay',7,5,4); //DateFinder |
58 | sd_solar_annual('Opposite Day',8,25); //Yet to be implemented | ||
57 | sd_lunar_annual('Labor Day',9,1,1); //Yet to be implemented | 59 | sd_lunar_annual('Labor Day',9,1,1); //Yet to be implemented |
58 | sd_solar_annual('Four Island A',9,22); //BG Pic; DateFinder; Header Pic | 60 | sd_solar_annual('Four Island A',9,22); //BG Pic; DateFinder; Header Pic |
59 | sd_lunar_annual('Columbus Day',10,1,2); //BG Pic; DateFinder | 61 | sd_lunar_annual('Columbus Day',10,1,2); //BG Pic; DateFinder |
@@ -310,50 +312,64 @@ function sd_addDateIn($id,$dateid) | |||
310 | 312 | ||
311 | function sd_dateFinder() | 313 | function sd_dateFinder() |
312 | { | 314 | { |
313 | if (sd_ifNoSpecialDay()) | 315 | if (sd_ifNoSpecialDay()) |
314 | { | 316 | { |
315 | $did = sd_getMonthStart(date('n')-1); | 317 | $did = sd_getMonthStart(date('n')-1); |
316 | $did += (date('j')-1); | 318 | $did += (date('j')-1); |
317 | $did = sd_findNextDay() - $did; | 319 | $did = sd_findNextDay() - $did; |
318 | return ($did . ' more days until the next holiday!'); | 320 | return ($did . ' more days until the next holiday!'); |
319 | } else { | 321 | } else { |
320 | switch (sd_getCurrentDay()) | 322 | switch (sd_getCurrentDay()) |
321 | { | 323 | { |
322 | case 'New Years Day': return 'Happy new years!'; | 324 | case 'New Years Day': return 'Happy new years!'; |
323 | case 'Martin Luther King Day': return 'Happy Martin Luther King Day!'; | 325 | case 'Martin Luther King Day': return 'Happy Martin Luther King Day!'; |
324 | case 'Groundhog Day': return 'It\'s groundhog day? Will he see his shadow?'; | 326 | case 'Groundhog Day': return 'It\'s groundhog day? Will he see his shadow?'; |
325 | case 'Presidents Day': return 'Happy President\'s Day!'; | 327 | case 'Presidents Day': return 'Happy President\'s Day!'; |
326 | case 'Valentines Day': return 'Happy Valentines Day! Will you be mine?'; | 328 | case 'Valentines Day': return 'Happy Valentines Day! Will you be mine?'; |
327 | case 'St Patricks Day': return 'Happy St. Patrick\'s Day! If you\'re not wearing green, I\'ll pinch you!'; | 329 | case 'St Patricks Day': return 'Happy St. Patrick\'s Day! If you\'re not wearing green, I\'ll pinch you!'; |
328 | case 'Mothers Day': return 'Happy Mothers Day!'; | 330 | case 'Mothers Day': return 'Happy Mothers Day!'; |
329 | case 'Memorial Day': return 'Remember...'; | 331 | case 'Memorial Day': return 'Remember...'; |
330 | case 'Easter': return 'Happy Easter! Where are those eggs?'; | 332 | case 'Easter': return 'Happy Easter! Where are those eggs?'; |
331 | case 'Mardi Gras': return 'Happy Mardi Gras! Time to get fat!'; | 333 | case 'Mardi Gras': return 'Happy Mardi Gras! Time to get fat!'; |
332 | case 'Ash Wednesday': return 'Happy Ash Wednesday! Did you get your ashes?'; | 334 | case 'Ash Wednesday': return 'Happy Ash Wednesday! Did you get your ashes?'; |
333 | case 'Palm Sunday': return 'Happy Palm Sunday!'; | 335 | case 'Palm Sunday': return 'Happy Palm Sunday!'; |
334 | case 'Holy Thursday': return 'Happy Holy Thursday!'; | 336 | case 'Holy Thursday': return 'Happy Holy Thursday!'; |
335 | case 'Hatkirbys B-Day': return 'Happy Birthday to me! Happy Birthday to me! Happy Birthday dear Hatkirby! Happy Birthday to me!'; | 337 | case 'Hatkirbys B-Day': return 'Happy Birthday to me! Happy Birthday to me! Happy Birthday dear Hatkirby! Happy Birthday to me!'; |
336 | case 'Flag Day': return 'Happy Flag Day!'; | 338 | case 'Flag Day': return 'Happy Flag Day!'; |
337 | case 'Fathers Day': return 'Happy Fathers Day!'; | 339 | case 'Fathers Day': return 'Happy Fathers Day!'; |
338 | case 'Independance Day': return 'Happy 4th of July!'; | 340 | case 'Independance Day': return 'Happy 4th of July!'; |
339 | case 'Labor Day': return 'Happy Labor Day!'; | 341 | case 'Labor Day': return 'Happy Labor Day!'; |
340 | case 'Four Island A': return ('Happy birthday Four Island! Four Island is ' . (date('Y')-2007) . ' years old!'); | 342 | case 'Four Island A': return ('Happy birthday Four Island! Four Island is ' . (date('Y')-2007) . ' years old!'); |
341 | case 'Columbus Day': return 'Happy Columbus Day!'; | 343 | case 'Columbus Day': return 'Happy Columbus Day!'; |
342 | case 'Halloween': return 'Happy Halloween!'; | 344 | case 'Halloween': return 'Happy Halloween!'; |
343 | case 'Veterans Day': return 'Only 2 minutes of silence. Remember... remember...'; | 345 | case 'Veterans Day': return 'Only 2 minutes of silence. Remember... remember...'; |
344 | case 'Thanksgiving': return 'Happy Thanksgiving! Gobble gobble gobble gobble!'; | 346 | case 'Thanksgiving': return 'Happy Thanksgiving! Gobble gobble gobble gobble!'; |
345 | 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!'; | 347 | 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!'; |
346 | case 'Christmas Eve': return '"1 Day Left" says Fourie!'; | 348 | case 'Christmas Eve': return '"1 Day Left" says Fourie!'; |
347 | case 'Christmas Day': return 'Merry Christmas! Time for presents!'; | 349 | case 'Christmas Day': return 'Merry Christmas! Time for presents!'; |
348 | case 'New Years Eve': return '5... 4... 3... 2...'; | 350 | case 'New Years Eve': return '5... 4... 3... 2...'; |
349 | case 'SysAdminDay': return '<A HREF="http://www.sysadminday.com">If you can read this, thank your <I><B>sysadmin</B></I></A>'; | 351 | case 'SysAdminDay': return '<A HREF="http://www.sysadminday.com">If you can read this, thank your <I><B>sysadmin</B></I></A>'; |
350 | case 'WCA Day': return '<A HREF="http://wca2001.keenspace.com">Webcomic Appreciation Day!</A> Stare in wonder at all of your favorite webcomics! Like Pillowcase, for instance!'; | 352 | case 'WCA Day': return '<A HREF="http://wca2001.keenspace.com">Webcomic Appreciation Day!</A> Stare in wonder at all of your favorite webcomics! Like Pillowcase, for instance!'; |
351 | case 'Leap Day': return 'What day is it? LEAP DAY? This only happens once every four years! LET\'S LEAP IN JOY!'; | 353 | case 'Leap Day': return 'What day is it? LEAP DAY? This only happens once every four years! LET\'S LEAP IN JOY!'; |
352 | case 'Tris CIEday': return 'This is the day that shei came.'; | 354 | case 'Tris CIEday': return 'This is the day that shei came.'; |
353 | 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.'; |
354 | case 'CTNH': return '<A HREF="/fuhsdiufgsadiufgaisfioas.php">It never happened.</A>'; | 356 | case 'CTNH': return '<A HREF="/fuhsdiufgsadiufgaisfioas.php">It never happened.</A>'; |
355 | } | 357 | case 'April Fools Day': return 'Long live the three!'; |
358 | } | ||
356 | } | 359 | } |
357 | } | 360 | } |
358 | 361 | ||
362 | function doAprilFoolsDay($text) | ||
363 | { | ||
364 | if (sd_isSpecialDay('April Fools Day')) | ||
365 | { | ||
366 | $text = str_replace('four', 'three', $text); | ||
367 | $text = str_replace('Four', 'Three', $text); | ||
368 | //$text = str_replace('4', '3', $text); | ||
369 | $text = str_replace('FOUR', 'THREE', $text); | ||
370 | } | ||
371 | |||
372 | return $text; | ||
373 | } | ||
374 | |||
359 | ?> | 375 | ?> |