diff options
Diffstat (limited to 'pages')
| -rwxr-xr-x | pages/archive.php | 2 | ||||
| -rwxr-xr-x | pages/blog.php | 12 | ||||
| -rwxr-xr-x | pages/poll.php | 10 | ||||
| -rwxr-xr-x | pages/post.php | 1 | ||||
| -rwxr-xr-x | pages/quotes.php | 18 |
5 files changed, 21 insertions, 22 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 1024ebb..ef147d5 100755 --- a/pages/blog.php +++ b/pages/blog.php | |||
| @@ -26,7 +26,7 @@ $pageCategory = 'blog'; | |||
| 26 | $pageAID = 'archive'; | 26 | $pageAID = 'archive'; |
| 27 | 27 | ||
| 28 | $hatNav = array( array( 'title' => 'Archive', | 28 | $hatNav = array( array( 'title' => 'Archive', |
| 29 | 'url' => 'http://fourisland.com/blog/', | 29 | 'url' => '/blog/', |
| 30 | 'icon' => '16-file-archive')); | 30 | 'icon' => '16-file-archive')); |
| 31 | 31 | ||
| 32 | $template = new FITemplate('post'); | 32 | $template = new FITemplate('post'); |
| @@ -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'])))); |
| @@ -137,7 +137,7 @@ if (isset($_GET['post'])) | |||
| 137 | 137 | ||
| 138 | $trackArr = explode(',',$gettrack3['rating']); | 138 | $trackArr = explode(',',$gettrack3['rating']); |
| 139 | 139 | ||
| 140 | $getpost = "SELECT * FROM updates ORDER BY id DESC LIMIT 0,4"; | 140 | $getpost = "SELECT * FROM updates ORDER BY id DESC LIMIT 0,10"; |
| 141 | $getpost2 = mysql_query($getpost); | 141 | $getpost2 = mysql_query($getpost); |
| 142 | while ($getpost3 = mysql_fetch_array($getpost2)) | 142 | while ($getpost3 = mysql_fetch_array($getpost2)) |
| 143 | { | 143 | { |
| @@ -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/post.php b/pages/post.php index 121435a..3f728c8 100755 --- a/pages/post.php +++ b/pages/post.php | |||
| @@ -23,7 +23,6 @@ if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);} | |||
| 23 | require('headerproc.php'); | 23 | require('headerproc.php'); |
| 24 | 24 | ||
| 25 | include('includes/recaptchalib.php'); | 25 | include('includes/recaptchalib.php'); |
| 26 | $privatekey = "6LfgvgEAAAAAAD0_UVLp57MU7tqcypsbZPS9qTnr"; | ||
| 27 | 26 | ||
| 28 | if (!isset($_POST['id'])) | 27 | if (!isset($_POST['id'])) |
| 29 | { | 28 | { |
| diff --git a/pages/quotes.php b/pages/quotes.php index 17057c2..3b00878 100755 --- a/pages/quotes.php +++ b/pages/quotes.php | |||
| @@ -25,31 +25,31 @@ require('headerproc.php'); | |||
| 25 | $pageCategory = 'quotes'; | 25 | $pageCategory = 'quotes'; |
| 26 | 26 | ||
| 27 | $hatNav = array( array( 'title' => 'Latest', | 27 | $hatNav = array( array( 'title' => 'Latest', |
| 28 | 'url' => 'http://fourisland.com/quotes/latest.php', | 28 | 'url' => '/quotes/latest.php', |
| 29 | 'icon' => '16-star-hot' | 29 | 'icon' => '16-star-hot' |
| 30 | ), | 30 | ), |
| 31 | array( 'title' => 'Best', | 31 | array( 'title' => 'Best', |
| 32 | 'url' => 'http://fourisland.com/quotes/top.php', | 32 | 'url' => '/quotes/top.php', |
| 33 | 'icon' => 'medal_gold_1' | 33 | 'icon' => 'medal_gold_1' |
| 34 | ), | 34 | ), |
| 35 | array( 'title' => 'Worst', | 35 | array( 'title' => 'Worst', |
| 36 | 'url' => 'http://fourisland.com/quotes/bottom.php', | 36 | 'url' => '/quotes/bottom.php', |
| 37 | 'icon' => '16-message-warn' | 37 | 'icon' => '16-message-warn' |
| 38 | ), | 38 | ), |
| 39 | array( 'title' => 'Browse All', | 39 | array( 'title' => 'Browse All', |
| 40 | 'url' => 'http://fourisland.com/quotes/browse.php', | 40 | 'url' => '/quotes/browse.php', |
| 41 | 'icon' => '16-file-archive' | 41 | 'icon' => '16-file-archive' |
| 42 | ), | 42 | ), |
| 43 | array( 'title' => 'Random', | 43 | array( 'title' => 'Random', |
| 44 | 'url' => 'http://fourisland.com/quotes/random.php', | 44 | 'url' => '/quotes/random.php', |
| 45 | 'icon' => '16-clock' | 45 | 'icon' => '16-clock' |
| 46 | ), | 46 | ), |
| 47 | array( 'title' => 'Add', | 47 | array( 'title' => 'Add', |
| 48 | 'url' => 'http://fourisland.com/quotes/add.php', | 48 | 'url' => '/quotes/add.php', |
| 49 | 'icon' => '16-em-pencil' | 49 | 'icon' => '16-em-pencil' |
| 50 | ), | 50 | ), |
| 51 | array( 'title' => 'Search', | 51 | array( 'title' => 'Search', |
| 52 | 'url' => 'http://fourisland.com/quotes/search.php', | 52 | 'url' => '/quotes/search.php', |
| 53 | 'icon' => 'book_open' | 53 | 'icon' => 'book_open' |
| 54 | )); | 54 | )); |
| 55 | 55 | ||
| @@ -70,7 +70,7 @@ if (isset($_GET['id']) && !(is_numeric($_GET['id']))) | |||
| 70 | $template = new FITemplate('quotes/add'); | 70 | $template = new FITemplate('quotes/add'); |
| 71 | if (isset($_GET['submit'])) | 71 | if (isset($_GET['submit'])) |
| 72 | { | 72 | { |
| 73 | $template->adds_block('SUBMITTED',array('QUOTE' => str_replace("\n","<br />",htmlentities(stripslashes($_POST['rash_quote']))))); | 73 | $template->adds_block('SUBMITTED',array('QUOTE' => str_replace("\n","<br />",htmlspecialchars(stripslashes($_POST['rash_quote']))))); |
| 74 | if (!isLoggedIn()) | 74 | if (!isLoggedIn()) |
| 75 | { | 75 | { |
| 76 | $insquote = "INSERT INTO rash_queue (quote) VALUES(\"" . mysql_real_escape_string(htmlspecialchars($_POST['rash_quote'])) . "\")"; | 76 | $insquote = "INSERT INTO rash_queue (quote) VALUES(\"" . mysql_real_escape_string(htmlspecialchars($_POST['rash_quote'])) . "\")"; |
| @@ -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 />",htmlspecialchars(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)) |
