diff options
-rwxr-xr-x | includes/common.php | 8 | ||||
-rwxr-xr-x | includes/functions.php | 12 | ||||
-rwxr-xr-x | includes/layout.php | 19 | ||||
-rwxr-xr-x | includes/parsers.php | 1 | ||||
-rwxr-xr-x | includes/specialdates.php | 99 | ||||
-rwxr-xr-x | index.php | 13 | ||||
-rwxr-xr-x | pages/archive.php | 2 | ||||
-rwxr-xr-x | pages/blog.php | 8 | ||||
-rwxr-xr-x | pages/poll.php | 10 | ||||
-rwxr-xr-x | pages/quotes.php | 2 | ||||
-rw-r--r-- | theme/images/afd-l7.png | bin | 0 -> 11912 bytes | |||
-rwxr-xr-x | theme/layouts/4.5/layout.tpl | 2 | ||||
-rwxr-xr-x | theme/layouts/6.2/style.php | 4 | ||||
-rwxr-xr-x | theme/layouts/7/holiday.php | 11 |
14 files changed, 120 insertions, 71 deletions
diff --git a/includes/common.php b/includes/common.php index 1239c68..8ca6958 100755 --- a/includes/common.php +++ b/includes/common.php | |||
@@ -47,6 +47,14 @@ if (isset($_GET['layout'])) | |||
47 | exit; | 47 | exit; |
48 | } | 48 | } |
49 | 49 | ||
50 | if (sd_isSpecialDay('April Fools Day') && ($_COOKIE['layout'] != '7')) | ||
51 | { | ||
52 | setcookie('layout', 7, time()+60*60*24*30, '/', '.fourisland.com'); | ||
53 | |||
54 | header('Location: ' . getRewriteURL()); | ||
55 | exit; | ||
56 | } | ||
57 | |||
50 | if (preg_match('|MSIE ([0-9].[0-9]{1,2})|', $_SERVER['HTTP_USER_AGENT'], $matched)) | 58 | if (preg_match('|MSIE ([0-9].[0-9]{1,2})|', $_SERVER['HTTP_USER_AGENT'], $matched)) |
51 | { | 59 | { |
52 | $usingIE = true; | 60 | $usingIE = true; |
diff --git a/includes/functions.php b/includes/functions.php index efb3c13..f0dad53 100755 --- a/includes/functions.php +++ b/includes/functions.php | |||
@@ -281,7 +281,7 @@ function displayRelated($title, $avoid = 0) | |||
281 | $template = new FITemplate('related'); | 281 | $template = new FITemplate('related'); |
282 | } | 282 | } |
283 | 283 | ||
284 | $template->adds_block('POST', array( 'TITLE' => htmlentities($getrelated3[$i]['title']), | 284 | $template->adds_block('POST', array( 'TITLE' => doAprilFoolsDay(htmlentities($getrelated3[$i]['title'])), |
285 | 'CODED' => $getrelated3[$i]['slug'], | 285 | 'CODED' => $getrelated3[$i]['slug'], |
286 | 'AUTHOR' => $getrelated3[$i]['author'], | 286 | 'AUTHOR' => $getrelated3[$i]['author'], |
287 | 'DATE' => date('F jS Y',strtotime($getrelated3[$i]['pubDate'])))); | 287 | 'DATE' => date('F jS Y',strtotime($getrelated3[$i]['pubDate'])))); |
@@ -331,11 +331,11 @@ function getPollOfTheWeek($id = -1) | |||
331 | $getpoll2 = mysql_query($getpoll); | 331 | $getpoll2 = mysql_query($getpoll); |
332 | $getpoll3 = mysql_fetch_array($getpoll2); | 332 | $getpoll3 = mysql_fetch_array($getpoll2); |
333 | 333 | ||
334 | $potw->add('QUESTION', stripslashes(htmlentities($getpoll3['question']))); | 334 | $potw->add('QUESTION', doAprilFoolsDay(stripslashes(htmlentities($getpoll3['question'])))); |
335 | $potw->add('OPTION1', stripslashes(htmlentities($getpoll3['option1']))); | 335 | $potw->add('OPTION1', doAprilFoolsDay(stripslashes(htmlentities($getpoll3['option1'])))); |
336 | $potw->add('OPTION2', stripslashes(htmlentities($getpoll3['option2']))); | 336 | $potw->add('OPTION2', doAprilFoolsDay(stripslashes(htmlentities($getpoll3['option2'])))); |
337 | $potw->add('OPTION3', stripslashes(htmlentities($getpoll3['option3']))); | 337 | $potw->add('OPTION3', doAprilFoolsDay(stripslashes(htmlentities($getpoll3['option3'])))); |
338 | $potw->add('OPTION4', stripslashes(htmlentities($getpoll3['option4']))); | 338 | $potw->add('OPTION4', doAprilFoolsDay(stripslashes(htmlentities($getpoll3['option4'])))); |
339 | 339 | ||
340 | $getip = "SELECT * FROM didpollalready WHERE ip = \"" . $_SERVER['REMOTE_ADDR'] . "\""; | 340 | $getip = "SELECT * FROM didpollalready WHERE ip = \"" . $_SERVER['REMOTE_ADDR'] . "\""; |
341 | $getip2 = mysql_query($getip); | 341 | $getip2 = mysql_query($getip); |
diff --git a/includes/layout.php b/includes/layout.php index b11c56f..566ce50 100755 --- a/includes/layout.php +++ b/includes/layout.php | |||
@@ -47,7 +47,7 @@ if (isset($hatNav) && is_array($hatNav)) | |||
47 | 47 | ||
48 | foreach ($hatNav as $item) | 48 | foreach ($hatNav as $item) |
49 | { | 49 | { |
50 | $template->adds_block('HATNAV',array('TITLE' => $item['title'], 'URL' => $item['url'], 'ICON' => $item['icon'])); | 50 | $template->adds_block('HATNAV',array('TITLE' => doAprilFoolsDay($item['title']), 'URL' => $item['url'], 'ICON' => $item['icon'])); |
51 | } | 51 | } |
52 | } | 52 | } |
53 | 53 | ||
@@ -76,7 +76,7 @@ $i=0; | |||
76 | while ($getaffs3 = mysql_fetch_array($getaffs2)) | 76 | while ($getaffs3 = mysql_fetch_array($getaffs2)) |
77 | { | 77 | { |
78 | $template->adds_block('AFFILIATES', array( 'COLOR' => getTagColor($i++), | 78 | $template->adds_block('AFFILIATES', array( 'COLOR' => getTagColor($i++), |
79 | 'TITLE' => htmlentities($getaffs3['title']), | 79 | 'TITLE' => doAprilFoolsDay(htmlentities($getaffs3['title'])), |
80 | 'URL' => $getaffs3['url'])); | 80 | 'URL' => $getaffs3['url'])); |
81 | } | 81 | } |
82 | 82 | ||
@@ -86,7 +86,7 @@ $i=0; | |||
86 | while ($getwebps3 = mysql_fetch_array($getwebps2)) | 86 | while ($getwebps3 = mysql_fetch_array($getwebps2)) |
87 | { | 87 | { |
88 | $template->adds_block('WEBPROJS', array( 'COLOR' => getTagColor($i++), | 88 | $template->adds_block('WEBPROJS', array( 'COLOR' => getTagColor($i++), |
89 | 'TITLE' => htmlentities($getwebps3['title']), | 89 | 'TITLE' => doAprilFoolsDay(htmlentities($getwebps3['title'])), |
90 | 'URL' => $getwebps3['url'])); | 90 | 'URL' => $getwebps3['url'])); |
91 | } | 91 | } |
92 | 92 | ||
@@ -235,7 +235,7 @@ $i=0; | |||
235 | while ($getpopular3[$i] = mysql_fetch_array($getpopular2)) | 235 | while ($getpopular3[$i] = mysql_fetch_array($getpopular2)) |
236 | { | 236 | { |
237 | $template->adds_block('POPULAR', array( 'CODED' => $getpopular3[$i]['slug'], | 237 | $template->adds_block('POPULAR', array( 'CODED' => $getpopular3[$i]['slug'], |
238 | 'TITLE' => stripslashes(htmlentities($getpopular3[$i]['title'])))); | 238 | 'TITLE' => doAprilFoolsDay(stripslashes(htmlentities($getpopular3[$i]['title']))))); |
239 | $i++; | 239 | $i++; |
240 | } | 240 | } |
241 | 241 | ||
@@ -278,6 +278,17 @@ $template->add('ME', getRewriteURL()); | |||
278 | 278 | ||
279 | $template->add('CONTENT', $content); | 279 | $template->add('CONTENT', $content); |
280 | 280 | ||
281 | ob_start(); | ||
281 | $template->display(); | 282 | $template->display(); |
283 | $document = ob_get_contents(); | ||
284 | ob_end_clean(); | ||
285 | |||
286 | $document = doAprilFoolsDay($document); | ||
287 | $document = str_replace(doAprilFoolsDay($content), $content, $document); | ||
288 | $document = str_replace("id=\"threem\"", "id=\"fourm\"", $document); | ||
289 | $document = str_replace("id=\"threeipedia\"", "id=\"fouripedia\"", $document); | ||
290 | $document = str_replace('CLASS="threem none threem-none"', 'CLASS="fourm none fourm-none"', $document); | ||
291 | $document = str_replace("threeisland.com/", "fourisland.com/", $document); | ||
292 | echo($document); | ||
282 | 293 | ||
283 | ?> | 294 | ?> |
diff --git a/includes/parsers.php b/includes/parsers.php index 5e984c2..b7dd869 100755 --- a/includes/parsers.php +++ b/includes/parsers.php | |||
@@ -29,6 +29,7 @@ function parseText($text) | |||
29 | { | 29 | { |
30 | $text = parseBBCode($text); | 30 | $text = parseBBCode($text); |
31 | $text = parseSmilies($text); | 31 | $text = parseSmilies($text); |
32 | $text = doAprilFoolsDay($text); | ||
32 | 33 | ||
33 | return $text; | 34 | return $text; |
34 | } | 35 | } |
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 | |||
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 |
@@ -310,50 +311,64 @@ function sd_addDateIn($id,$dateid) | |||
310 | 311 | ||
311 | function sd_dateFinder() | 312 | function sd_dateFinder() |
312 | { | 313 | { |
313 | if (sd_ifNoSpecialDay()) | 314 | if (sd_ifNoSpecialDay()) |
314 | { | 315 | { |
315 | $did = sd_getMonthStart(date('n')-1); | 316 | $did = sd_getMonthStart(date('n')-1); |
316 | $did += (date('j')-1); | 317 | $did += (date('j')-1); |
317 | $did = sd_findNextDay() - $did; | 318 | $did = sd_findNextDay() - $did; |
318 | return ($did . ' more days until the next holiday!'); | 319 | return ($did . ' more days until the next holiday!'); |
319 | } else { | 320 | } else { |
320 | switch (sd_getCurrentDay()) | 321 | switch (sd_getCurrentDay()) |
321 | { | 322 | { |
322 | case 'New Years Day': return 'Happy new years!'; | 323 | case 'New Years Day': return 'Happy new years!'; |
323 | case 'Martin Luther King Day': return 'Happy Martin Luther King Day!'; | 324 | 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?'; | 325 | case 'Groundhog Day': return 'It\'s groundhog day? Will he see his shadow?'; |
325 | case 'Presidents Day': return 'Happy President\'s Day!'; | 326 | case 'Presidents Day': return 'Happy President\'s Day!'; |
326 | case 'Valentines Day': return 'Happy Valentines Day! Will you be mine?'; | 327 | 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!'; | 328 | 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!'; | 329 | case 'Mothers Day': return 'Happy Mothers Day!'; |
329 | case 'Memorial Day': return 'Remember...'; | 330 | case 'Memorial Day': return 'Remember...'; |
330 | case 'Easter': return 'Happy Easter! Where are those eggs?'; | 331 | case 'Easter': return 'Happy Easter! Where are those eggs?'; |
331 | case 'Mardi Gras': return 'Happy Mardi Gras! Time to get fat!'; | 332 | case 'Mardi Gras': return 'Happy Mardi Gras! Time to get fat!'; |
332 | case 'Ash Wednesday': return 'Happy Ash Wednesday! Did you get your ashes?'; | 333 | case 'Ash Wednesday': return 'Happy Ash Wednesday! Did you get your ashes?'; |
333 | case 'Palm Sunday': return 'Happy Palm Sunday!'; | 334 | case 'Palm Sunday': return 'Happy Palm Sunday!'; |
334 | case 'Holy Thursday': return 'Happy Holy Thursday!'; | 335 | 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!'; | 336 | 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!'; | 337 | case 'Flag Day': return 'Happy Flag Day!'; |
337 | case 'Fathers Day': return 'Happy Fathers Day!'; | 338 | case 'Fathers Day': return 'Happy Fathers Day!'; |
338 | case 'Independance Day': return 'Happy 4th of July!'; | 339 | case 'Independance Day': return 'Happy 4th of July!'; |
339 | case 'Labor Day': return 'Happy Labor Day!'; | 340 | 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!'); | 341 | 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!'; | 342 | case 'Columbus Day': return 'Happy Columbus Day!'; |
342 | case 'Halloween': return 'Happy Halloween!'; | 343 | case 'Halloween': return 'Happy Halloween!'; |
343 | case 'Veterans Day': return 'Only 2 minutes of silence. Remember... remember...'; | 344 | case 'Veterans Day': return 'Only 2 minutes of silence. Remember... remember...'; |
344 | case 'Thanksgiving': return 'Happy Thanksgiving! Gobble gobble gobble gobble!'; | 345 | 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!'; | 346 | 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!'; | 347 | case 'Christmas Eve': return '"1 Day Left" says Fourie!'; |
347 | case 'Christmas Day': return 'Merry Christmas! Time for presents!'; | 348 | case 'Christmas Day': return 'Merry Christmas! Time for presents!'; |
348 | case 'New Years Eve': return '5... 4... 3... 2...'; | 349 | 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>'; | 350 | 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!'; | 351 | 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!'; | 352 | 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.'; | 353 | 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.'; | 354 | 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>'; | 355 | case 'CTNH': return '<A HREF="/fuhsdiufgsadiufgaisfioas.php">It never happened.</A>'; |
355 | } | 356 | case 'April Fools Day': return 'Long live the three!'; |
357 | } | ||
356 | } | 358 | } |
357 | } | 359 | } |
358 | 360 | ||
361 | function doAprilFoolsDay($text) | ||
362 | { | ||
363 | if (sd_isSpecialDay('April Fools Day')) | ||
364 | { | ||
365 | $text = str_replace('four', 'three', $text); | ||
366 | $text = str_replace('Four', 'Three', $text); | ||
367 | //$text = str_replace('4', '3', $text); | ||
368 | $text = str_replace('FOUR', 'THREE', $text); | ||
369 | } | ||
370 | |||
371 | return $text; | ||
372 | } | ||
373 | |||
359 | ?> | 374 | ?> |
diff --git a/index.php b/index.php index 79fce10..2986730 100755 --- a/index.php +++ b/index.php | |||
@@ -24,12 +24,12 @@ header('X-Pingback: http://fourisland.com/xmlrpc.php'); | |||
24 | 24 | ||
25 | include('../security/config.php'); | 25 | include('../security/config.php'); |
26 | include('includes/db.php'); | 26 | include('includes/db.php'); |
27 | include('includes/common.php'); | 27 | include('includes/common.php'); |
28 | 28 | ||
29 | if (strpos($_SERVER['REQUEST_URI'],'index.php')) | 29 | if (strpos($_SERVER['REQUEST_URI'],'index.php')) |
30 | { | 30 | { |
31 | header('Location: ' . getRewriteURL()); | 31 | header('Location: ' . getRewriteURL()); |
32 | exit; | 32 | exit; |
33 | } | 33 | } |
34 | 34 | ||
35 | ob_start(); | 35 | ob_start(); |
@@ -44,6 +44,7 @@ if (file_exists('pages/' . $pageName . '.php')) | |||
44 | } | 44 | } |
45 | 45 | ||
46 | $content = ob_get_contents(); | 46 | $content = ob_get_contents(); |
47 | |||
47 | ob_end_clean(); | 48 | ob_end_clean(); |
48 | 49 | ||
49 | include('includes/layout.php'); | 50 | include('includes/layout.php'); |
diff --git a/pages/archive.php b/pages/archive.php index 71a251d..024d3b5 100755 --- a/pages/archive.php +++ b/pages/archive.php | |||
@@ -87,7 +87,7 @@ while ($getposts3[$i] = mysql_fetch_array($getposts2)) | |||
87 | 87 | ||
88 | $template->adds_ref_sub($curID, 'SMALL',array( 'DATE' => date('m-d-Y',strtotime($getposts3[$i]['pubDate'])), | 88 | $template->adds_ref_sub($curID, 'SMALL',array( 'DATE' => date('m-d-Y',strtotime($getposts3[$i]['pubDate'])), |
89 | 'CODED' => $getposts3[$i]['slug'], | 89 | 'CODED' => $getposts3[$i]['slug'], |
90 | 'TITLE' => htmlentities(stripslashes($getposts3[$i]['title'])))); | 90 | 'TITLE' => doAprilFoolsDay(htmlentities(stripslashes($getposts3[$i]['title']))))); |
91 | $i++; | 91 | $i++; |
92 | } | 92 | } |
93 | if ($i==0) | 93 | if ($i==0) |
diff --git a/pages/blog.php b/pages/blog.php index af5ddbf..ae10756 100755 --- a/pages/blog.php +++ b/pages/blog.php | |||
@@ -54,7 +54,7 @@ if (isset($_GET['post'])) | |||
54 | if (isset($getback3['title'])) | 54 | if (isset($getback3['title'])) |
55 | { | 55 | { |
56 | $template->adds_block('BACK', array( 'CODED' => $getback3['slug'], | 56 | $template->adds_block('BACK', array( 'CODED' => $getback3['slug'], |
57 | 'TITLE' => htmlentities(stripslashes($getback3['title'])))); | 57 | 'TITLE' => doAprilFoolsDay(htmlentities(stripslashes($getback3['title']))))); |
58 | } | 58 | } |
59 | 59 | ||
60 | $getnext = "SELECT * FROM updates WHERE id > " . $getpost3['id'] . " ORDER BY id ASC LIMIT 0,1"; | 60 | $getnext = "SELECT * FROM updates WHERE id > " . $getpost3['id'] . " ORDER BY id ASC LIMIT 0,1"; |
@@ -63,7 +63,7 @@ if (isset($_GET['post'])) | |||
63 | if (isset($getnext3['title'])) | 63 | if (isset($getnext3['title'])) |
64 | { | 64 | { |
65 | $template->adds_block('NEXT', array( 'CODED' => $getnext3['slug'], | 65 | $template->adds_block('NEXT', array( 'CODED' => $getnext3['slug'], |
66 | 'TITLE' => htmlentities(stripslashes($getnext3['title'])))); | 66 | 'TITLE' => doAprilFoolsDay(htmlentities(stripslashes($getnext3['title']))))); |
67 | } | 67 | } |
68 | 68 | ||
69 | $template->add_ref(0, 'POST', array( 'ID' => $getpost3['id'], | 69 | $template->add_ref(0, 'POST', array( 'ID' => $getpost3['id'], |
@@ -72,7 +72,7 @@ if (isset($_GET['post'])) | |||
72 | 'MONTH' => date('M',strtotime($getpost3['pubDate'])), | 72 | 'MONTH' => date('M',strtotime($getpost3['pubDate'])), |
73 | 'DAY' => date('d',strtotime($getpost3['pubDate'])), | 73 | 'DAY' => date('d',strtotime($getpost3['pubDate'])), |
74 | 'CODED' => $getpost3['slug'], | 74 | 'CODED' => $getpost3['slug'], |
75 | 'TITLE' => htmlentities(stripslashes($getpost3['title'])), | 75 | 'TITLE' => doAprilFoolsDay(htmlentities(stripslashes($getpost3['title']))), |
76 | 'AUTHOR' => $getpost3['author'], | 76 | 'AUTHOR' => $getpost3['author'], |
77 | 'RATING' => $getpost3['rating'], | 77 | 'RATING' => $getpost3['rating'], |
78 | 'TEXT' => parseText(stripslashes($getpost3['text'])))); | 78 | 'TEXT' => parseText(stripslashes($getpost3['text'])))); |
@@ -171,7 +171,7 @@ if (isset($_GET['post'])) | |||
171 | 'MONTH' => date('M',strtotime($getpost3['pubDate'])), | 171 | 'MONTH' => date('M',strtotime($getpost3['pubDate'])), |
172 | 'DAY' => date('d',strtotime($getpost3['pubDate'])), | 172 | 'DAY' => date('d',strtotime($getpost3['pubDate'])), |
173 | 'CODED' => $getpost3['slug'], | 173 | 'CODED' => $getpost3['slug'], |
174 | 'TITLE' => htmlentities(stripslashes($getpost3['title'])), | 174 | 'TITLE' => doAprilFoolsDay(htmlentities(stripslashes($getpost3['title']))), |
175 | 'AUTHOR' => $getpost3['author'], | 175 | 'AUTHOR' => $getpost3['author'], |
176 | 'PLURALCOMMENT' => (isset($plural) ? $plural : ''), | 176 | 'PLURALCOMMENT' => (isset($plural) ? $plural : ''), |
177 | 'COMMENTS' => $comText, | 177 | 'COMMENTS' => $comText, |
diff --git a/pages/poll.php b/pages/poll.php index 3099e32..e228712 100755 --- a/pages/poll.php +++ b/pages/poll.php | |||
@@ -53,7 +53,7 @@ if (!isset($_GET['id'])) | |||
53 | $question .= '....'; | 53 | $question .= '....'; |
54 | } | 54 | } |
55 | $template->adds_block('POLL', array( 'ID' => $getpolls3[$i]['id'], | 55 | $template->adds_block('POLL', array( 'ID' => $getpolls3[$i]['id'], |
56 | 'QUESTION' => htmlentities(stripslashes($question)), | 56 | 'QUESTION' => doAprilFoolsDay(htmlentities(stripslashes($question))), |
57 | 'WEEK' => date('F jS Y', strtotime($getpolls3[$i]['week'])), | 57 | 'WEEK' => date('F jS Y', strtotime($getpolls3[$i]['week'])), |
58 | 'EVEN' => (($i % 2 == 1) ? ' class="even"' : ''))); | 58 | 'EVEN' => (($i % 2 == 1) ? ' class="even"' : ''))); |
59 | $i++; | 59 | $i++; |
@@ -97,10 +97,10 @@ if (!isset($_GET['id'])) | |||
97 | $template->adds_block('COMPLETE', array( 'RSS' => parseText(stripslashes($getpoll3['text'])), | 97 | $template->adds_block('COMPLETE', array( 'RSS' => parseText(stripslashes($getpoll3['text'])), |
98 | 'AUTHOR' => $getrss3['author'], | 98 | 'AUTHOR' => $getrss3['author'], |
99 | 'DATE' => date("F jS Y \a\\t g:i:s a",strtotime($getpoll3['week'])), | 99 | 'DATE' => date("F jS Y \a\\t g:i:s a",strtotime($getpoll3['week'])), |
100 | 'OPTION1' => stripslashes($getpoll3['option1']), | 100 | 'OPTION1' => doAprilFoolsDay(stripslashes($getpoll3['option1'])), |
101 | 'OPTION2' => stripslashes($getpoll3['option2']), | 101 | 'OPTION2' => doAprilFoolsDay(stripslashes($getpoll3['option2'])), |
102 | 'OPTION3' => stripslashes($getpoll3['option3']), | 102 | 'OPTION3' => doAprilFoolsDay(stripslashes($getpoll3['option3'])), |
103 | 'OPTION4' => stripslashes($getpoll3['option4']), | 103 | 'OPTION4' => doAprilFoolsDay(stripslashes($getpoll3['option4'])), |
104 | 'CLICKS1' => $getpoll3['clicks1'], | 104 | 'CLICKS1' => $getpoll3['clicks1'], |
105 | 'CLICKS2' => $getpoll3['clicks2'], | 105 | 'CLICKS2' => $getpoll3['clicks2'], |
106 | 'CLICKS3' => $getpoll3['clicks3'], | 106 | 'CLICKS3' => $getpoll3['clicks3'], |
diff --git a/pages/quotes.php b/pages/quotes.php index 4fce952..1d380bb 100755 --- a/pages/quotes.php +++ b/pages/quotes.php | |||
@@ -236,7 +236,7 @@ function quote_generation($query, $origin, $page = 1, $quote_limit = 50, $page_l | |||
236 | $template->add_ref($curID,'QUOTES',array( 'NUMBER' => $getquotes3[$i]['id'], | 236 | $template->add_ref($curID,'QUOTES',array( 'NUMBER' => $getquotes3[$i]['id'], |
237 | 'RATING' => $getquotes3[$i]['rating'], | 237 | 'RATING' => $getquotes3[$i]['rating'], |
238 | 'DATE' => ($getquotes3[$i]['date'] != 0 ? date('F jS Y \a\\t g:i:s a', $getquotes3[$i]['date']) : ''), | 238 | 'DATE' => ($getquotes3[$i]['date'] != 0 ? date('F jS Y \a\\t g:i:s a', $getquotes3[$i]['date']) : ''), |
239 | 'QUOTE' => str_replace("\n","<br />",htmlentities(stripslashes($getquotes3[$i]['quote']))), | 239 | 'QUOTE' => doAprilFoolsDay(str_replace("\n","<br />",htmlentities(stripslashes($getquotes3[$i]['quote'])))), |
240 | 'COMMENTS' => $comments)); | 240 | 'COMMENTS' => $comments)); |
241 | 241 | ||
242 | if (($gettrack3['ip'] != $_SERVER['REMOTE_ADDR']) || (array_search($getquotes3[$i]['id'],$trackArr) === FALSE)) | 242 | if (($gettrack3['ip'] != $_SERVER['REMOTE_ADDR']) || (array_search($getquotes3[$i]['id'],$trackArr) === FALSE)) |
diff --git a/theme/images/afd-l7.png b/theme/images/afd-l7.png new file mode 100644 index 0000000..4d61fc5 --- /dev/null +++ b/theme/images/afd-l7.png | |||
Binary files differ | |||
diff --git a/theme/layouts/4.5/layout.tpl b/theme/layouts/4.5/layout.tpl index 6155d57..ea5884e 100755 --- a/theme/layouts/4.5/layout.tpl +++ b/theme/layouts/4.5/layout.tpl | |||
@@ -35,7 +35,7 @@ | |||
35 | <DIV ID="banner-nav"> | 35 | <DIV ID="banner-nav"> |
36 | <UL ID="bannernav"> | 36 | <UL ID="bannernav"> |
37 | <LI id="bannernav-home"><A HREF="/" REL="home"><B><SPAN>Home</SPAN></B></A></LI> | 37 | <LI id="bannernav-home"><A HREF="/" REL="home"><B><SPAN>Home</SPAN></B></A></LI> |
38 | <LI id="bannernav-projects"><A HREF="http://projects.fourisland.com"><B><SPAN>Projects</SPAN></B></A></LI> | 38 | <LI id="bannernav-projects"><A HREF="http://projects.fourisland.com/"><B><SPAN>Projects</SPAN></B></A></LI> |
39 | <LI id="bannernav-fourm"><A HREF="/fourm/"><B><SPAN>Fourm</SPAN></B></A></LI> | 39 | <LI id="bannernav-fourm"><A HREF="/fourm/"><B><SPAN>Fourm</SPAN></B></A></LI> |
40 | <LI id="bannernav-wiki"><A HREF="/wiki/"><B><SPAN>Wiki</SPAN></B></A></LI> | 40 | <LI id="bannernav-wiki"><A HREF="/wiki/"><B><SPAN>Wiki</SPAN></B></A></LI> |
41 | <LI id="bannernav-poll"><A HREF="/poll/"><B><SPAN>Poll</SPAN></B></A></LI> | 41 | <LI id="bannernav-poll"><A HREF="/poll/"><B><SPAN>Poll</SPAN></B></A></LI> |
diff --git a/theme/layouts/6.2/style.php b/theme/layouts/6.2/style.php index 7dff742..5cea4f8 100755 --- a/theme/layouts/6.2/style.php +++ b/theme/layouts/6.2/style.php | |||
@@ -22,9 +22,11 @@ if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);} | |||
22 | 22 | ||
23 | require('headerproc.php'); | 23 | require('headerproc.php'); |
24 | 24 | ||
25 | include_once('../includes/specialdates.php'); | ||
26 | |||
25 | include('layouts/6.2/style.css'); | 27 | include('layouts/6.2/style.css'); |
26 | 28 | ||
27 | if (((date('G') >= 20) || (date('G') <= 6)) || isset($_GET['night']) && !isset($_GET['day'])) | 29 | if ((((date('G') >= 20) || (date('G') <= 6)) || (isset($_GET['night']) && !isset($_GET['day']))) && sd_ifNoSpecialDay()) |
28 | { | 30 | { |
29 | include('layouts/6.2/night.css'); | 31 | include('layouts/6.2/night.css'); |
30 | } else { | 32 | } else { |
diff --git a/theme/layouts/7/holiday.php b/theme/layouts/7/holiday.php index d9a9c10..54499a9 100755 --- a/theme/layouts/7/holiday.php +++ b/theme/layouts/7/holiday.php | |||
@@ -100,6 +100,17 @@ if (sd_isSpecialDay('Four Island A')) | |||
100 | $bgimgm = 'island6'; | 100 | $bgimgm = 'island6'; |
101 | } | 101 | } |
102 | 102 | ||
103 | if (sd_isSpecialDay('April Fools Day')) | ||
104 | { | ||
105 | ?> | ||
106 | |||
107 | div#banner { | ||
108 | background-image: url(/theme/images/afd-l7.png); | ||
109 | } | ||
110 | |||
111 | <?php | ||
112 | } | ||
113 | |||
103 | ?> | 114 | ?> |
104 | 115 | ||
105 | div#window { | 116 | div#window { |