summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStarla Insigna <starla4444@gmail.com>2011-03-31 21:56:35 -0400
committerStarla Insigna <starla4444@gmail.com>2011-03-31 21:56:35 -0400
commite6362171e86d53155c34bf60f2786ee5af0cb707 (patch)
treea6e59f4984207cff0b9163f17f80e52366382e94
parent87b42536198dfab02de616f9ba1e68ea307cce90 (diff)
downloadfourisland-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.
-rwxr-xr-xincludes/specialdates.php12
-rwxr-xr-xindex.php10
-rw-r--r--theme/images/afd-l7-2011.pngbin0 -> 112120 bytes
-rwxr-xr-xtheme/layouts/7/holiday.php2
4 files changed, 18 insertions, 6 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
44sd_solar_annual('St Patricks Day',3,17); //DateFinder 44sd_solar_annual('St Patricks Day',3,17); //DateFinder
45sd_solar_annual('April Fools Day',4,1); //Awesome 45sd_solar_annual('April Fools Day',4,1); //Awesome
46sd_solar_annual('Tri\'s CIEday',4,22); //DateFinder 46sd_solar_annual('Tri\'s CIEday',4,22); //DateFinder
47sd_solar_annual('Silence Day',4,25); //DateFinder 47sd_solar_annual('Silence Day',4,15); //DateFinder
48sd_solar_annual('WCA Day',5,5); //DateFinder 48sd_solar_annual('WCA Day',5,5); //DateFinder
49sd_lunar_annual('Mothers Day',5,7,2); //BG Pic; DateFinder; Header Pic 49sd_lunar_annual('Mothers Day',5,7,2); //BG Pic; DateFinder; Header Pic
50sd_lunar_annual('Memorial Day',5,1,5); //BG Pic; DateFinder; Header Pic 50sd_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;
diff --git a/index.php b/index.php index 2986730..9072431 100755 --- a/index.php +++ b/index.php
@@ -32,6 +32,16 @@ if (strpos($_SERVER['REQUEST_URI'],'index.php'))
32 exit; 32 exit;
33} 33}
34 34
35if (sd_isSpecialDay('April Fools Day'))
36{
37 if (rand(0,20) == 4)
38 {
39 header('Location: http://www.youtube.com/watch?v=CD2LRROpph0');
40 echo(" ");
41 exit;
42 }
43}
44
35ob_start(); 45ob_start();
36 46
37$pageName = basename($_GET['area']); 47$pageName = basename($_GET['area']);
diff --git a/theme/images/afd-l7-2011.png b/theme/images/afd-l7-2011.png new file mode 100644 index 0000000..c8833c9 --- /dev/null +++ b/theme/images/afd-l7-2011.png
Binary files differ
diff --git a/theme/layouts/7/holiday.php b/theme/layouts/7/holiday.php index 54499a9..19accc4 100755 --- a/theme/layouts/7/holiday.php +++ b/theme/layouts/7/holiday.php
@@ -105,7 +105,7 @@ if (sd_isSpecialDay('April Fools Day'))
105?> 105?>
106 106
107div#banner { 107div#banner {
108 background-image: url(/theme/images/afd-l7.png); 108 background-image: url(/theme/images/afd-l7-2011.png);
109} 109}
110 110
111<?php 111<?php