From 224f9ee5014ae5c5399188afd8d38e3b620e2856 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Thu, 26 Nov 2009 14:21:20 -0500 Subject: Added Fouripedia compatibility Made many strutural changes to Four Island allowing for the reinclusion of Fouripedia. --- pages/blog.php | 4 ++-- pages/poll.php | 14 +++++++------- pages/quotes.php | 2 +- pages/welcome.php | 4 ++-- 4 files changed, 12 insertions(+), 12 deletions(-) (limited to 'pages') diff --git a/pages/blog.php b/pages/blog.php index 28fa759..31978f2 100755 --- a/pages/blog.php +++ b/pages/blog.php @@ -67,10 +67,10 @@ if (isset($_GET['post'])) 'MONTH' => date('M',strtotime($getpost3['pubDate'])), 'DAY' => date('d',strtotime($getpost3['pubDate'])), 'CODED' => $getpost3['slug'], - 'TITLE' => htmlentities($getpost3['title']), + 'TITLE' => htmlentities(stripslashes($getpost3['title'])), 'AUTHOR' => $getpost3['author'], 'RATING' => $getpost3['rating'], - 'TEXT' => parseText($getpost3['text']))); + 'TEXT' => parseText(stripslashes($getpost3['text'])))); $tags = getTags($getpost3['id']); foreach ($tags as $tag) diff --git a/pages/poll.php b/pages/poll.php index a9ab19f..3099e32 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($question), + 'QUESTION' => htmlentities(stripslashes($question)), 'WEEK' => date('F jS Y', strtotime($getpolls3[$i]['week'])), 'EVEN' => (($i % 2 == 1) ? ' class="even"' : ''))); $i++; @@ -90,17 +90,17 @@ if (!isset($_GET['id'])) if ($getpoll3['id'] == $_GET['id']) { - $template->add('QUESTION', htmlentities($getpoll3['question'])); + $template->add('QUESTION', htmlentities(stripslashes($getpoll3['question']))); if ($getpoll3['text'] != '') { - $template->adds_block('COMPLETE', array( 'RSS' => parseText($getpoll3['text']), + $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' => $getpoll3['option1'], - 'OPTION2' => $getpoll3['option2'], - 'OPTION3' => $getpoll3['option3'], - 'OPTION4' => $getpoll3['option4'], + 'OPTION1' => stripslashes($getpoll3['option1']), + 'OPTION2' => stripslashes($getpoll3['option2']), + 'OPTION3' => stripslashes($getpoll3['option3']), + 'OPTION4' => stripslashes($getpoll3['option4']), 'CLICKS1' => $getpoll3['clicks1'], 'CLICKS2' => $getpoll3['clicks2'], 'CLICKS3' => $getpoll3['clicks3'], diff --git a/pages/quotes.php b/pages/quotes.php index 8c6958d..17057c2 100755 --- a/pages/quotes.php +++ b/pages/quotes.php @@ -70,7 +70,7 @@ if (isset($_GET['id']) && !(is_numeric($_GET['id']))) $template = new FITemplate('quotes/add'); if (isset($_GET['submit'])) { - $template->adds_block('SUBMITTED',array('QUOTE' => str_replace("\n","
",htmlentities($_POST['rash_quote'])))); + $template->adds_block('SUBMITTED',array('QUOTE' => str_replace("\n","
",htmlentities(stripslashes($_POST['rash_quote']))))); if (!isLoggedIn()) { $insquote = "INSERT INTO rash_queue (quote) VALUES(\"" . mysql_real_escape_string(htmlspecialchars($_POST['rash_quote'])) . "\")"; diff --git a/pages/welcome.php b/pages/welcome.php index 833af8a..819420b 100755 --- a/pages/welcome.php +++ b/pages/welcome.php @@ -77,12 +77,12 @@ while ($getpost3 = mysql_fetch_array($getpost2)) 'MONTH' => date('M',strtotime($getpost3['pubDate'])), 'DAY' => date('d',strtotime($getpost3['pubDate'])), 'CODED' => $getpost3['slug'], - 'TITLE' => htmlentities($getpost3['title']), + 'TITLE' => htmlentities(stripslashes($getpost3['title'])), 'AUTHOR' => $getpost3['author'], 'PLURALCOMMENT' => (isset($plural) ? $plural : ''), 'COMMENTS' => $comText, 'RATING' => $getpost3['rating'], - 'TEXT' => parseText($getpost3['text']))); + 'TEXT' => parseText(stripslashes($getpost3['text'])))); $tags = getTags($getpost3['id']); foreach ($tags as $tag) -- cgit 1.4.1