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 --- pages/archive.php | 2 +- pages/blog.php | 8 ++++---- pages/poll.php | 10 +++++----- pages/quotes.php | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) (limited to 'pages') 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)) $template->adds_ref_sub($curID, 'SMALL',array( 'DATE' => date('m-d-Y',strtotime($getposts3[$i]['pubDate'])), 'CODED' => $getposts3[$i]['slug'], - 'TITLE' => htmlentities(stripslashes($getposts3[$i]['title'])))); + 'TITLE' => doAprilFoolsDay(htmlentities(stripslashes($getposts3[$i]['title']))))); $i++; } 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'])) if (isset($getback3['title'])) { $template->adds_block('BACK', array( 'CODED' => $getback3['slug'], - 'TITLE' => htmlentities(stripslashes($getback3['title'])))); + 'TITLE' => doAprilFoolsDay(htmlentities(stripslashes($getback3['title']))))); } $getnext = "SELECT * FROM updates WHERE id > " . $getpost3['id'] . " ORDER BY id ASC LIMIT 0,1"; @@ -63,7 +63,7 @@ if (isset($_GET['post'])) if (isset($getnext3['title'])) { $template->adds_block('NEXT', array( 'CODED' => $getnext3['slug'], - 'TITLE' => htmlentities(stripslashes($getnext3['title'])))); + 'TITLE' => doAprilFoolsDay(htmlentities(stripslashes($getnext3['title']))))); } $template->add_ref(0, 'POST', array( 'ID' => $getpost3['id'], @@ -72,7 +72,7 @@ if (isset($_GET['post'])) 'MONTH' => date('M',strtotime($getpost3['pubDate'])), 'DAY' => date('d',strtotime($getpost3['pubDate'])), 'CODED' => $getpost3['slug'], - 'TITLE' => htmlentities(stripslashes($getpost3['title'])), + 'TITLE' => doAprilFoolsDay(htmlentities(stripslashes($getpost3['title']))), 'AUTHOR' => $getpost3['author'], 'RATING' => $getpost3['rating'], 'TEXT' => parseText(stripslashes($getpost3['text'])))); @@ -171,7 +171,7 @@ if (isset($_GET['post'])) 'MONTH' => date('M',strtotime($getpost3['pubDate'])), 'DAY' => date('d',strtotime($getpost3['pubDate'])), 'CODED' => $getpost3['slug'], - 'TITLE' => htmlentities(stripslashes($getpost3['title'])), + 'TITLE' => doAprilFoolsDay(htmlentities(stripslashes($getpost3['title']))), 'AUTHOR' => $getpost3['author'], 'PLURALCOMMENT' => (isset($plural) ? $plural : ''), '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'])) $question .= '....'; } $template->adds_block('POLL', array( 'ID' => $getpolls3[$i]['id'], - 'QUESTION' => htmlentities(stripslashes($question)), + 'QUESTION' => doAprilFoolsDay(htmlentities(stripslashes($question))), 'WEEK' => date('F jS Y', strtotime($getpolls3[$i]['week'])), 'EVEN' => (($i % 2 == 1) ? ' class="even"' : ''))); $i++; @@ -97,10 +97,10 @@ if (!isset($_GET['id'])) $template->adds_block('COMPLETE', array( 'RSS' => parseText(stripslashes($getpoll3['text'])), 'AUTHOR' => $getrss3['author'], 'DATE' => date("F jS Y \a\\t g:i:s a",strtotime($getpoll3['week'])), - 'OPTION1' => stripslashes($getpoll3['option1']), - 'OPTION2' => stripslashes($getpoll3['option2']), - 'OPTION3' => stripslashes($getpoll3['option3']), - 'OPTION4' => stripslashes($getpoll3['option4']), + 'OPTION1' => doAprilFoolsDay(stripslashes($getpoll3['option1'])), + 'OPTION2' => doAprilFoolsDay(stripslashes($getpoll3['option2'])), + 'OPTION3' => doAprilFoolsDay(stripslashes($getpoll3['option3'])), + 'OPTION4' => doAprilFoolsDay(stripslashes($getpoll3['option4'])), 'CLICKS1' => $getpoll3['clicks1'], 'CLICKS2' => $getpoll3['clicks2'], '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 $template->add_ref($curID,'QUOTES',array( 'NUMBER' => $getquotes3[$i]['id'], 'RATING' => $getquotes3[$i]['rating'], 'DATE' => ($getquotes3[$i]['date'] != 0 ? date('F jS Y \a\\t g:i:s a', $getquotes3[$i]['date']) : ''), - 'QUOTE' => str_replace("\n","
",htmlentities(stripslashes($getquotes3[$i]['quote']))), + 'QUOTE' => doAprilFoolsDay(str_replace("\n","
",htmlentities(stripslashes($getquotes3[$i]['quote'])))), 'COMMENTS' => $comments)); if (($gettrack3['ip'] != $_SERVER['REMOTE_ADDR']) || (array_search($getquotes3[$i]['id'],$trackArr) === FALSE)) -- cgit 1.4.1