summary refs log tree commit diff stats
path: root/pages/poll.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/poll.php')
-rwxr-xr-xpages/poll.php14
1 files changed, 7 insertions, 7 deletions
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']))
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($question), 56 'QUESTION' => 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++;
@@ -90,17 +90,17 @@ if (!isset($_GET['id']))
90 90
91 if ($getpoll3['id'] == $_GET['id']) 91 if ($getpoll3['id'] == $_GET['id'])
92 { 92 {
93 $template->add('QUESTION', htmlentities($getpoll3['question'])); 93 $template->add('QUESTION', htmlentities(stripslashes($getpoll3['question'])));
94 94
95 if ($getpoll3['text'] != '') 95 if ($getpoll3['text'] != '')
96 { 96 {
97 $template->adds_block('COMPLETE', array( 'RSS' => parseText($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' => $getpoll3['option1'], 100 'OPTION1' => stripslashes($getpoll3['option1']),
101 'OPTION2' => $getpoll3['option2'], 101 'OPTION2' => stripslashes($getpoll3['option2']),
102 'OPTION3' => $getpoll3['option3'], 102 'OPTION3' => stripslashes($getpoll3['option3']),
103 'OPTION4' => $getpoll3['option4'], 103 'OPTION4' => 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'],