summary refs log tree commit diff stats
path: root/includes/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/functions.php')
-rwxr-xr-xincludes/functions.php12
1 files changed, 6 insertions, 6 deletions
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);