diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2010-03-28 09:42:25 -0400 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2010-03-28 09:42:25 -0400 |
commit | ec5b2499fff7cd30e1c221dbd63b37ef507d41b8 (patch) | |
tree | 33155a39a545717958a45593c84cbbca4051bd4e /pages | |
parent | 93d3209110d435d43cc9016aa6cf4acff6028011 (diff) | |
download | fourisland-ec5b2499fff7cd30e1c221dbd63b37ef507d41b8.tar.gz fourisland-ec5b2499fff7cd30e1c221dbd63b37ef507d41b8.tar.bz2 fourisland-ec5b2499fff7cd30e1c221dbd63b37ef507d41b8.zip |
Added April Fools Day joke
Diffstat (limited to 'pages')
-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 |
4 files changed, 11 insertions, 11 deletions
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)) |