diff options
32 files changed, 38 insertions, 242 deletions
diff --git a/.htaccess b/.htaccess index 7304983..1369b66 100755 --- a/.htaccess +++ b/.htaccess | |||
@@ -19,9 +19,6 @@ RewriteCond %{REQUEST_FILENAME} !-f | |||
19 | RewriteCond %{REQUEST_FILENAME} !-d | 19 | RewriteCond %{REQUEST_FILENAME} !-d |
20 | RewriteRule ^wiki/(.+) /w/index.php?title=$1 [QSA,L] | 20 | RewriteRule ^wiki/(.+) /w/index.php?title=$1 [QSA,L] |
21 | 21 | ||
22 | RewriteRule ^poll/$ /index.php?area=poll [QSA,L] | ||
23 | RewriteRule ^poll/(.+).php /index.php?area=poll&id=$1 [QSA,L] | ||
24 | |||
25 | RewriteRule ^quotes/$ /index.php?area=quotes [QSA,L] | 22 | RewriteRule ^quotes/$ /index.php?area=quotes [QSA,L] |
26 | RewriteRule ^quotes/(.+).php /index.php?area=quotes&act=$1 [QSA,L] | 23 | RewriteRule ^quotes/(.+).php /index.php?area=quotes&act=$1 [QSA,L] |
27 | 24 | ||
diff --git a/admin.php b/admin.php index 6657983..e7d4a8d 100755 --- a/admin.php +++ b/admin.php | |||
@@ -50,8 +50,6 @@ if (file_exists('admin/' . $pageName . '.php')) | |||
50 | $doc = ob_get_contents(); | 50 | $doc = ob_get_contents(); |
51 | ob_end_clean(); | 51 | ob_end_clean(); |
52 | 52 | ||
53 | $doc = stripslashes($doc); | ||
54 | |||
55 | $template = new FITemplate('admin/header'); | 53 | $template = new FITemplate('admin/header'); |
56 | $template->add(strtoupper($category) . 'ACTIVECAT', ' class="active"'); | 54 | $template->add(strtoupper($category) . 'ACTIVECAT', ' class="active"'); |
57 | $template->adds_block(strtoupper($category) . 'ISACTIVECAT', array('exi'=>1)); | 55 | $template->adds_block(strtoupper($category) . 'ISACTIVECAT', array('exi'=>1)); |
diff --git a/admin/drafts.php b/admin/drafts.php index 5f7be1a..bb95b87 100755 --- a/admin/drafts.php +++ b/admin/drafts.php | |||
@@ -82,7 +82,7 @@ foreach ($pager->getPageData() as $post) | |||
82 | { | 82 | { |
83 | if (!empty($post)) | 83 | if (!empty($post)) |
84 | { | 84 | { |
85 | $template->adds_block('POST', array( 'TITLE' => htmlentities($post['title']), | 85 | $template->adds_block('POST', array( 'TITLE' => htmlspecialchars($post['title']), |
86 | 'AUTHOR' => $post['author'], | 86 | 'AUTHOR' => $post['author'], |
87 | 'ID' => $post['id'], | 87 | 'ID' => $post['id'], |
88 | 'CODED' => $post['slug'], | 88 | 'CODED' => $post['slug'], |
diff --git a/admin/editLink.php b/admin/editLink.php index f3ba9cc..2bc86ab 100755 --- a/admin/editLink.php +++ b/admin/editLink.php | |||
@@ -74,10 +74,10 @@ if (isset($_GET['submit'])) | |||
74 | $template->adds_block('FLASH', array('TEXT' => 'Your link has been sucessfully edited.')); | 74 | $template->adds_block('FLASH', array('TEXT' => 'Your link has been sucessfully edited.')); |
75 | } | 75 | } |
76 | 76 | ||
77 | $template->add('TITLEVALUE', htmlentities($_POST['title'])); | 77 | $template->add('TITLEVALUE', htmlspecialchars($_POST['title'])); |
78 | $template->add('URLVALUE', $_POST['url']); | 78 | $template->add('URLVALUE', $_POST['url']); |
79 | } else { | 79 | } else { |
80 | $template->add('TITLEVALUE', htmlentities($getlink3['title'])); | 80 | $template->add('TITLEVALUE', htmlspecialchars($getlink3['title'])); |
81 | $template->add('URLVALUE', $getlink3['url']); | 81 | $template->add('URLVALUE', $getlink3['url']); |
82 | } | 82 | } |
83 | 83 | ||
diff --git a/admin/editPost.php b/admin/editPost.php index b87f895..6044431 100755 --- a/admin/editPost.php +++ b/admin/editPost.php | |||
@@ -201,13 +201,13 @@ if (!isset($_GET['type']) || !isset($_GET['id']) || !is_numeric($_GET['id'])) | |||
201 | $template->add('ACTION', '/admin/editPost.php?type=' . $type . '&id=' . $id . '&submit='); | 201 | $template->add('ACTION', '/admin/editPost.php?type=' . $type . '&id=' . $id . '&submit='); |
202 | } | 202 | } |
203 | 203 | ||
204 | $template->add('TITLEVALUE', htmlentities($_POST['title'])); | 204 | $template->add('TITLEVALUE', htmlspecialchars($_POST['title'])); |
205 | $template->add('TEXTVALUE', $_POST['text']); | 205 | $template->add('TEXTVALUE', $_POST['text']); |
206 | $template->add('TAGSVALUE', $_POST['tags']); | 206 | $template->add('TAGSVALUE', $_POST['tags']); |
207 | $template->add(strtoupper($_POST['type']) . 'SELECTED', ' checked="checked"'); | 207 | $template->add(strtoupper($_POST['type']) . 'SELECTED', ' checked="checked"'); |
208 | if ($_POST['type'] != 'draft') $template->add('TAGSDISABLED', ' readonly="readonly"'); | 208 | if ($_POST['type'] != 'draft') $template->add('TAGSDISABLED', ' readonly="readonly"'); |
209 | } else { | 209 | } else { |
210 | $template->add('TITLEVALUE', htmlentities($getpost3['title'])); | 210 | $template->add('TITLEVALUE', htmlspecialchars($getpost3['title'])); |
211 | $template->add('TEXTVALUE', $getpost3['text']); | 211 | $template->add('TEXTVALUE', $getpost3['text']); |
212 | $template->add('TAGSVALUE', implode(',', getTags($_GET['id'], $tableToTags[$_GET['type']]))); | 212 | $template->add('TAGSVALUE', implode(',', getTags($_GET['id'], $tableToTags[$_GET['type']]))); |
213 | $template->add(strtoupper($tableToForm[$_GET['type']]) . 'SELECTED', ' checked="checked"'); | 213 | $template->add(strtoupper($tableToForm[$_GET['type']]) . 'SELECTED', ' checked="checked"'); |
diff --git a/admin/links.php b/admin/links.php index fc1c813..da3fe5c 100755 --- a/admin/links.php +++ b/admin/links.php | |||
@@ -97,7 +97,7 @@ foreach ($pager->getPageData() as $link) | |||
97 | { | 97 | { |
98 | if (!empty($link)) | 98 | if (!empty($link)) |
99 | { | 99 | { |
100 | $template->adds_block('LINK', array( 'TITLE' => htmlentities($link['title']), | 100 | $template->adds_block('LINK', array( 'TITLE' => htmlspecialchars($link['title']), |
101 | 'URL' => $link['url'], | 101 | 'URL' => $link['url'], |
102 | 'ID' => $link['id'], | 102 | 'ID' => $link['id'], |
103 | 'ODD' => ($j % 2 ? '' : ' class="odd"'))); | 103 | 'ODD' => ($j % 2 ? '' : ' class="odd"'))); |
diff --git a/admin/modquotes.php b/admin/modquotes.php index 8340fd1..9ec6013 100755 --- a/admin/modquotes.php +++ b/admin/modquotes.php | |||
@@ -120,7 +120,7 @@ foreach ($pager->getPageData() as $quote) | |||
120 | { | 120 | { |
121 | if (!empty($quote)) | 121 | if (!empty($quote)) |
122 | { | 122 | { |
123 | $template->adds_block('QUOTE', array( 'TEXT' => str_replace("\n","<br />",htmlentities(stripslashes($quote['quote']))), | 123 | $template->adds_block('QUOTE', array( 'TEXT' => str_replace("\n","<br />",htmlspecialchars($quote['quote'])), |
124 | 'ID' => $quote['id'], | 124 | 'ID' => $quote['id'], |
125 | 'ODD' => ($j % 2 ? '' : ' class="odd"'))); | 125 | 'ODD' => ($j % 2 ? '' : ' class="odd"'))); |
126 | } | 126 | } |
diff --git a/admin/newLink.php b/admin/newLink.php index 90313bd..abedb81 100755 --- a/admin/newLink.php +++ b/admin/newLink.php | |||
@@ -80,7 +80,7 @@ if (isset($_GET['submit'])) | |||
80 | $template->add('TYPEDISABLED', ' readonly="readonly"'); | 80 | $template->add('TYPEDISABLED', ' readonly="readonly"'); |
81 | } | 81 | } |
82 | 82 | ||
83 | $template->add('TITLEVALUE', htmlentities($_POST['title'])); | 83 | $template->add('TITLEVALUE', htmlspecialchars($_POST['title'])); |
84 | $template->add('URLVALUE', $_POST['url']); | 84 | $template->add('URLVALUE', $_POST['url']); |
85 | $template->add(strtoupper($_POST['type']) . 'SELECTED', ' checked="checked"'); | 85 | $template->add(strtoupper($_POST['type']) . 'SELECTED', ' checked="checked"'); |
86 | } else { | 86 | } else { |
diff --git a/admin/newPost.php b/admin/newPost.php index 32e7aa2..60819b9 100755 --- a/admin/newPost.php +++ b/admin/newPost.php | |||
@@ -145,7 +145,7 @@ if (isset($_GET['submit'])) | |||
145 | if ($type != 'drafts') $template->add('TAGSDISABLED', ' readonly="readonly"'); | 145 | if ($type != 'drafts') $template->add('TAGSDISABLED', ' readonly="readonly"'); |
146 | } | 146 | } |
147 | 147 | ||
148 | $template->add('TITLEVALUE', htmlentities($_POST['title'])); | 148 | $template->add('TITLEVALUE', htmlspecialchars($_POST['title'])); |
149 | $template->add('TEXTVALUE', $_POST['text']); | 149 | $template->add('TEXTVALUE', $_POST['text']); |
150 | $template->add('TAGSVALUE', $_POST['tags']); | 150 | $template->add('TAGSVALUE', $_POST['tags']); |
151 | $template->add(strtoupper($_POST['type']) . 'SELECTED', ' checked="checked"'); | 151 | $template->add(strtoupper($_POST['type']) . 'SELECTED', ' checked="checked"'); |
diff --git a/admin/pending.php b/admin/pending.php index 6f1cfaf..39295d6 100755 --- a/admin/pending.php +++ b/admin/pending.php | |||
@@ -148,7 +148,7 @@ foreach ($pager->getPageData() as $post) | |||
148 | { | 148 | { |
149 | if (!empty($post)) | 149 | if (!empty($post)) |
150 | { | 150 | { |
151 | $template->add_ref($j, 'POST', array( 'TITLE' => htmlentities($post['title']), | 151 | $template->add_ref($j, 'POST', array( 'TITLE' => htmlspecialchars($post['title']), |
152 | 'AUTHOR' => $post['author'], | 152 | 'AUTHOR' => $post['author'], |
153 | 'ID' => $post['id'], | 153 | 'ID' => $post['id'], |
154 | 'CODED' => $post['slug'], | 154 | 'CODED' => $post['slug'], |
diff --git a/admin/posts.php b/admin/posts.php index d2e34c5..228a039 100755 --- a/admin/posts.php +++ b/admin/posts.php | |||
@@ -82,7 +82,7 @@ foreach ($pager->getPageData() as $post) | |||
82 | { | 82 | { |
83 | if (!empty($post)) | 83 | if (!empty($post)) |
84 | { | 84 | { |
85 | $template->adds_block('POST', array( 'TITLE' => htmlentities($post['title']), | 85 | $template->adds_block('POST', array( 'TITLE' => htmlspecialchars($post['title']), |
86 | 'AUTHOR' => $post['author'], | 86 | 'AUTHOR' => $post['author'], |
87 | 'ID' => $post['id'], | 87 | 'ID' => $post['id'], |
88 | 'CODED' => $post['slug'], | 88 | 'CODED' => $post['slug'], |
diff --git a/admin/welcome.php b/admin/welcome.php index 76b42b1..9ca13ce 100755 --- a/admin/welcome.php +++ b/admin/welcome.php | |||
@@ -46,11 +46,6 @@ $cntcomments2 = mysql_query($cntcomments); | |||
46 | $cntcomments3 = mysql_fetch_array($cntcomments2); | 46 | $cntcomments3 = mysql_fetch_array($cntcomments2); |
47 | $template->add('COMMENTS', $cntcomments3['COUNT(*)']); | 47 | $template->add('COMMENTS', $cntcomments3['COUNT(*)']); |
48 | 48 | ||
49 | $cntpolls = "SELECT COUNT(*) FROM polloftheweek"; | ||
50 | $cntpolls2 = mysql_query($cntpolls); | ||
51 | $cntpolls3 = mysql_fetch_array($cntpolls2); | ||
52 | $template->add('POLLS', $cntpolls3['COUNT(*)']); | ||
53 | |||
54 | $cntquotes = "SELECT COUNT(*) FROM rash_quotes"; | 49 | $cntquotes = "SELECT COUNT(*) FROM rash_quotes"; |
55 | $cntquotes2 = mysql_query($cntquotes); | 50 | $cntquotes2 = mysql_query($cntquotes); |
56 | $cntquotes3 = mysql_fetch_array($cntquotes2); | 51 | $cntquotes3 = mysql_fetch_array($cntquotes2); |
diff --git a/includes/comments.php b/includes/comments.php index be48c02..5aa8993 100755 --- a/includes/comments.php +++ b/includes/comments.php | |||
@@ -71,7 +71,7 @@ while ($getcomments3[$i] = mysql_fetch_array($getcomments2)) | |||
71 | 'USERNAME' => (($website != '') ? '<a href="' . $website . '">' . $username . '</a>' : $username), | 71 | 'USERNAME' => (($website != '') ? '<a href="' . $website . '">' . $username . '</a>' : $username), |
72 | 'DATE' => date("F jS Y \a\\t g:i:s a",strtotime($getcomments3[$i]['posttime'])), | 72 | 'DATE' => date("F jS Y \a\\t g:i:s a",strtotime($getcomments3[$i]['posttime'])), |
73 | 'ID' => $getcomments3[$i]['id'], | 73 | 'ID' => $getcomments3[$i]['id'], |
74 | 'TEXT' => parseText(stripslashes($getcomments3[$i]['comment'])))); | 74 | 'TEXT' => parseText($getcomments3[$i]['comment']))); |
75 | 75 | ||
76 | if (isLoggedIn()) | 76 | if (isLoggedIn()) |
77 | { | 77 | { |
diff --git a/includes/common.php b/includes/common.php index 8ca6958..7442a18 100755 --- a/includes/common.php +++ b/includes/common.php | |||
@@ -22,6 +22,9 @@ if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);} | |||
22 | 22 | ||
23 | require('headerproc.php'); | 23 | require('headerproc.php'); |
24 | 24 | ||
25 | $result = mysql_query('SET NAMES utf8'); | ||
26 | $result = mysql_query('SET CHARACTER SET utf8'); | ||
27 | |||
25 | include('includes/template.php'); | 28 | include('includes/template.php'); |
26 | include('includes/session.php'); | 29 | include('includes/session.php'); |
27 | include('includes/maintenance.php'); | 30 | include('includes/maintenance.php'); |
diff --git a/includes/functions.php b/includes/functions.php index aed4516..b42ca7d 100755 --- a/includes/functions.php +++ b/includes/functions.php | |||
@@ -62,20 +62,6 @@ function dispIfNotOld($datTim) | |||
62 | } | 62 | } |
63 | } | 63 | } |
64 | 64 | ||
65 | function getpercent($getpoll3,$num) | ||
66 | { | ||
67 | $maxper = ($getpoll3['clicks1'] + $getpoll3['clicks2'] + $getpoll3['clicks3'] + $getpoll3['clicks4']); | ||
68 | |||
69 | if ($maxper == 0) | ||
70 | { | ||
71 | return 0; | ||
72 | } else { | ||
73 | $percent = round(($getpoll3['clicks' . $num] / $maxper) * 100); | ||
74 | } | ||
75 | |||
76 | return($percent); | ||
77 | } | ||
78 | |||
79 | function generateSlug($title,$table) | 65 | function generateSlug($title,$table) |
80 | { | 66 | { |
81 | $title = preg_replace('/[^A-Za-z0-9]/','-',$title); | 67 | $title = preg_replace('/[^A-Za-z0-9]/','-',$title); |
@@ -110,7 +96,7 @@ function postBlogPost($title,$author,$tags,$content) | |||
110 | { | 96 | { |
111 | $slug = generateSlug($title,'updates'); | 97 | $slug = generateSlug($title,'updates'); |
112 | 98 | ||
113 | $inspost = "INSERT INTO updates (title,slug,author,text) VALUES (\"" . $title . "\",\"" . $slug . "\",\"" . $author . "\",\"" . mysql_real_escape_string($content) . "\")"; | 99 | $inspost = "INSERT INTO updates (title,slug,author,text) VALUES (\"" . mysql_real_escape_string($title) . "\",\"" . $slug . "\",\"" . $author . "\",\"" . mysql_real_escape_string($content) . "\")"; |
114 | $inspost2 = mysql_query($inspost); | 100 | $inspost2 = mysql_query($inspost); |
115 | 101 | ||
116 | $id = mysql_insert_id(); | 102 | $id = mysql_insert_id(); |
@@ -269,31 +255,6 @@ if (!function_exists('unique_id')) | |||
269 | } | 255 | } |
270 | } | 256 | } |
271 | 257 | ||
272 | function displayRelated($title, $avoid = 0) | ||
273 | { | ||
274 | $getrelated = "SELECT *, MATCH (title, text) AGAINST (\"" . mysql_real_escape_string($title) . "\") AS score FROM updates WHERE MATCH (title, text) AGAINST (\"" . mysql_real_escape_string($title) . "\") AND id <> " . $avoid . " LIMIT 0,5"; | ||
275 | $getrelated2 = mysql_query($getrelated); | ||
276 | $i=0; | ||
277 | while ($getrelated3[$i] = mysql_fetch_array($getrelated2)) | ||
278 | { | ||
279 | if ($i==0) | ||
280 | { | ||
281 | $template = new FITemplate('related'); | ||
282 | } | ||
283 | |||
284 | $template->adds_block('POST', array( 'TITLE' => doAprilFoolsDay(htmlentities(stripslashes($getrelated3[$i]['title']))), | ||
285 | 'CODED' => $getrelated3[$i]['slug'], | ||
286 | 'AUTHOR' => $getrelated3[$i]['author'], | ||
287 | 'DATE' => date('F jS Y',strtotime($getrelated3[$i]['pubDate'])))); | ||
288 | $i++; | ||
289 | } | ||
290 | |||
291 | if ($i > 0) | ||
292 | { | ||
293 | $template->display(); | ||
294 | } | ||
295 | } | ||
296 | |||
297 | function getCommentUrl($getcomment3) | 258 | function getCommentUrl($getcomment3) |
298 | { | 259 | { |
299 | $page_id = $getcomment3['page_id']; | 260 | $page_id = $getcomment3['page_id']; |
@@ -307,62 +268,12 @@ function getCommentUrl($getcomment3) | |||
307 | $getupdate3 = mysql_fetch_array($getupdate2); | 268 | $getupdate3 = mysql_fetch_array($getupdate2); |
308 | 269 | ||
309 | return '/blog/' . $getupdate3['slug'] . '/'; | 270 | return '/blog/' . $getupdate3['slug'] . '/'; |
310 | } else if ($comType == 'polloftheweek') | ||
311 | { | ||
312 | return '/poll/' . $comID . '.php'; | ||
313 | } else if ($comType == 'quote') | 271 | } else if ($comType == 'quote') |
314 | { | 272 | { |
315 | return '/quotes/' . $comID . '.php'; | 273 | return '/quotes/' . $comID . '.php'; |
316 | } | 274 | } |
317 | } | 275 | } |
318 | 276 | ||
319 | function getPollOfTheWeek($id = -1) | ||
320 | { | ||
321 | static $showed_form = false; | ||
322 | |||
323 | $potw = new FITemplate('polloftheweek'); | ||
324 | |||
325 | if ($id == -1) | ||
326 | { | ||
327 | $getpoll = "SELECT * FROM polloftheweek ORDER BY id DESC LIMIT 0,1"; | ||
328 | } else { | ||
329 | $getpoll = "SELECT * FROM polloftheweek WHERE id = " . $id; | ||
330 | } | ||
331 | $getpoll2 = mysql_query($getpoll); | ||
332 | $getpoll3 = mysql_fetch_array($getpoll2); | ||
333 | |||
334 | $potw->add('ID', $getpoll3['id']); | ||
335 | $potw->add('QUESTION', doAprilFoolsDay(stripslashes(htmlentities($getpoll3['question'])))); | ||
336 | $potw->add('OPTION1', doAprilFoolsDay(stripslashes(htmlentities($getpoll3['option1'])))); | ||
337 | $potw->add('OPTION2', doAprilFoolsDay(stripslashes(htmlentities($getpoll3['option2'])))); | ||
338 | $potw->add('OPTION3', doAprilFoolsDay(stripslashes(htmlentities($getpoll3['option3'])))); | ||
339 | $potw->add('OPTION4', doAprilFoolsDay(stripslashes(htmlentities($getpoll3['option4'])))); | ||
340 | |||
341 | $getip = "SELECT * FROM didpollalready WHERE ip = \"" . $_SERVER['REMOTE_ADDR'] . "\""; | ||
342 | $getip2 = mysql_query($getip); | ||
343 | $getip3 = mysql_fetch_array($getip2); | ||
344 | |||
345 | if (($getip3['ip'] != $_SERVER['REMOTE_ADDR']) && ($id == -1) && ($showed_form == false)) | ||
346 | { | ||
347 | $potw->adds_block('FORM',array('exi'=>1)); | ||
348 | $showed_form = true; | ||
349 | } else { | ||
350 | $potw->adds_block('DISPLAY',array('exi'=>1)); | ||
351 | |||
352 | $potw->add('PERCENT1', getpercent($getpoll3,'1')); | ||
353 | $potw->add('PERCENT2', getpercent($getpoll3,'2')); | ||
354 | $potw->add('PERCENT3', getpercent($getpoll3,'3')); | ||
355 | $potw->add('PERCENT4', getpercent($getpoll3,'4')); | ||
356 | } | ||
357 | |||
358 | ob_start(); | ||
359 | $potw->display(); | ||
360 | $result = ob_get_contents(); | ||
361 | ob_end_clean(); | ||
362 | |||
363 | return $result; | ||
364 | } | ||
365 | |||
366 | function getTagColor($i) | 277 | function getTagColor($i) |
367 | { | 278 | { |
368 | switch ($i % 7) | 279 | switch ($i % 7) |
@@ -417,14 +328,6 @@ function getRewriteURL() | |||
417 | } else { | 328 | } else { |
418 | return '/blog/'; | 329 | return '/blog/'; |
419 | } | 330 | } |
420 | } else if ($_GET['area'] == 'poll') | ||
421 | { | ||
422 | if (isset($_GET['id'])) | ||
423 | { | ||
424 | return '/poll/' . $_GET['id'] . '.php'; | ||
425 | } else { | ||
426 | return '/poll/'; | ||
427 | } | ||
428 | } else if ($_GET['area'] == 'quotes') | 331 | } else if ($_GET['area'] == 'quotes') |
429 | { | 332 | { |
430 | if (isset($_GET['act'])) | 333 | if (isset($_GET['act'])) |
diff --git a/includes/layout.php b/includes/layout.php index 9e94b69..22b87ea 100755 --- a/includes/layout.php +++ b/includes/layout.php | |||
@@ -74,7 +74,7 @@ $i=0; | |||
74 | while ($getaffs3 = mysql_fetch_array($getaffs2)) | 74 | while ($getaffs3 = mysql_fetch_array($getaffs2)) |
75 | { | 75 | { |
76 | $template->adds_block('AFFILIATES', array( 'COLOR' => getTagColor($i++), | 76 | $template->adds_block('AFFILIATES', array( 'COLOR' => getTagColor($i++), |
77 | 'TITLE' => doAprilFoolsDay(htmlentities(stripslashes($getaffs3['title']))), | 77 | 'TITLE' => doAprilFoolsDay(htmlspecialchars($getaffs3['title'])), |
78 | 'URL' => $getaffs3['url'])); | 78 | 'URL' => $getaffs3['url'])); |
79 | } | 79 | } |
80 | 80 | ||
@@ -84,7 +84,7 @@ $i=0; | |||
84 | while ($getwebps3 = mysql_fetch_array($getwebps2)) | 84 | while ($getwebps3 = mysql_fetch_array($getwebps2)) |
85 | { | 85 | { |
86 | $template->adds_block('WEBPROJS', array( 'COLOR' => getTagColor($i++), | 86 | $template->adds_block('WEBPROJS', array( 'COLOR' => getTagColor($i++), |
87 | 'TITLE' => doAprilFoolsDay(htmlentities(stripslashes($getwebps3['title']))), | 87 | 'TITLE' => doAprilFoolsDay(htmlspecialchars($getwebps3['title'])), |
88 | 'URL' => $getwebps3['url'])); | 88 | 'URL' => $getwebps3['url'])); |
89 | } | 89 | } |
90 | 90 | ||
@@ -129,7 +129,7 @@ while ($getcomments3[$i] = mysql_fetch_array($getcomments2)) | |||
129 | 'AREA' => 'blog', | 129 | 'AREA' => 'blog', |
130 | 'CODED' => $getpost3['slug'], | 130 | 'CODED' => $getpost3['slug'], |
131 | 'ENDING' => '/', | 131 | 'ENDING' => '/', |
132 | 'TITLE' => stripslashes(htmlentities($getpost3['title'])), | 132 | 'TITLE' => htmlspecialchars($getpost3['title']), |
133 | 'AUTHOR' => (($website != '') ? '<a href="' . $website . '">' . $username . '</a>' : $username))); | 133 | 'AUTHOR' => (($website != '') ? '<a href="' . $website . '">' . $username . '</a>' : $username))); |
134 | $i++; | 134 | $i++; |
135 | } else if (strpos($getcomments3[$i]['page_id'], 'quote') !== FALSE) | 135 | } else if (strpos($getcomments3[$i]['page_id'], 'quote') !== FALSE) |
@@ -143,20 +143,7 @@ while ($getcomments3[$i] = mysql_fetch_array($getcomments2)) | |||
143 | 'TITLE' => 'Quote #' . $num, | 143 | 'TITLE' => 'Quote #' . $num, |
144 | 'AUTHOR' => (($website != '') ? '<a href="' . $website . '">' . $username . '</a>' : $username))); | 144 | 'AUTHOR' => (($website != '') ? '<a href="' . $website . '">' . $username . '</a>' : $username))); |
145 | $i++; | 145 | $i++; |
146 | } else if (strpos($getcomments3[$i]['page_id'], 'polloftheweek') !== FALSE) | 146 | } |
147 | { | ||
148 | $getpotw = "SELECT * FROM polloftheweek WHERE id = " . substr($getcomments3[$i]['page_id'],strpos($getcomments3[$i]['page_id'],'-')+1); | ||
149 | $getpotw2 = mysql_query($getpotw); | ||
150 | $getpotw3 = mysql_fetch_array($getpotw2); | ||
151 | |||
152 | $template->adds_block('COMMENTS', array( 'ID' => $getcomments3[$i]['id'], | ||
153 | 'AREA' => 'poll', | ||
154 | 'CODED' => $getpotw3['id'], | ||
155 | 'ENDING' => '.php', | ||
156 | 'TITLE' => 'Poll "' . htmlentities($getpotw3['question']) . '"', | ||
157 | 'AUTHOR' => (($website != '') ? '<a href="' . $website . '">' . $username . '</a>' : $username))); | ||
158 | $i++; | ||
159 | } | ||
160 | } | 147 | } |
161 | 148 | ||
162 | $users = array(); | 149 | $users = array(); |
@@ -233,7 +220,7 @@ $i=0; | |||
233 | while ($getpopular3[$i] = mysql_fetch_array($getpopular2)) | 220 | while ($getpopular3[$i] = mysql_fetch_array($getpopular2)) |
234 | { | 221 | { |
235 | $template->adds_block('POPULAR', array( 'CODED' => $getpopular3[$i]['slug'], | 222 | $template->adds_block('POPULAR', array( 'CODED' => $getpopular3[$i]['slug'], |
236 | 'TITLE' => doAprilFoolsDay(stripslashes(htmlentities($getpopular3[$i]['title']))))); | 223 | 'TITLE' => doAprilFoolsDay(htmlspecialchars($getpopular3[$i]['title'])))); |
237 | $i++; | 224 | $i++; |
238 | } | 225 | } |
239 | 226 | ||
diff --git a/pages/archive.php b/pages/archive.php index 024d3b5..73d0162 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' => doAprilFoolsDay(htmlentities(stripslashes($getposts3[$i]['title']))))); | 90 | 'TITLE' => doAprilFoolsDay(htmlspecialchars($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 e7163ce..72e96bf 100755 --- a/pages/blog.php +++ b/pages/blog.php | |||
@@ -46,7 +46,7 @@ if (isset($_GET['post'])) | |||
46 | { | 46 | { |
47 | updatePop($getpost3['id'],'views'); | 47 | updatePop($getpost3['id'],'views'); |
48 | 48 | ||
49 | $title = stripslashes(htmlentities($getpost3['title'])) . ' - Blog Archive'; | 49 | $title = htmlspecialchars($getpost3['title']) . ' - Blog Archive'; |
50 | 50 | ||
51 | $getback = "SELECT * FROM updates WHERE id < " . $getpost3['id'] . " ORDER BY id DESC LIMIT 0,1"; | 51 | $getback = "SELECT * FROM updates WHERE id < " . $getpost3['id'] . " ORDER BY id DESC LIMIT 0,1"; |
52 | $getback2 = mysql_query($getback); | 52 | $getback2 = mysql_query($getback); |
@@ -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' => doAprilFoolsDay(htmlentities(stripslashes($getback3['title']))))); | 57 | 'TITLE' => doAprilFoolsDay(htmlspecialchars($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' => doAprilFoolsDay(htmlentities(stripslashes($getnext3['title']))))); | 66 | 'TITLE' => doAprilFoolsDay(htmlspecialchars($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,10 +72,10 @@ 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' => doAprilFoolsDay(htmlentities(stripslashes($getpost3['title']))), | 75 | 'TITLE' => doAprilFoolsDay(htmlspecialchars($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($getpost3['text']))); |
79 | 79 | ||
80 | $tags = getTags($getpost3['id']); | 80 | $tags = getTags($getpost3['id']); |
81 | foreach ($tags as $tag) | 81 | foreach ($tags as $tag) |
@@ -121,8 +121,6 @@ if (isset($_GET['post'])) | |||
121 | 121 | ||
122 | $page_id = 'updates-' . $getpost3['id']; | 122 | $page_id = 'updates-' . $getpost3['id']; |
123 | include('includes/comments.php'); | 123 | include('includes/comments.php'); |
124 | |||
125 | displayRelated($getpost3['title'], $getpost3['id']); | ||
126 | } else { | 124 | } else { |
127 | generateError('404'); | 125 | generateError('404'); |
128 | } | 126 | } |
@@ -171,12 +169,12 @@ if (isset($_GET['post'])) | |||
171 | 'MONTH' => date('M',strtotime($getpost3['pubDate'])), | 169 | 'MONTH' => date('M',strtotime($getpost3['pubDate'])), |
172 | 'DAY' => date('d',strtotime($getpost3['pubDate'])), | 170 | 'DAY' => date('d',strtotime($getpost3['pubDate'])), |
173 | 'CODED' => $getpost3['slug'], | 171 | 'CODED' => $getpost3['slug'], |
174 | 'TITLE' => doAprilFoolsDay(htmlentities(stripslashes($getpost3['title']))), | 172 | 'TITLE' => doAprilFoolsDay(htmlspecialchars($getpost3['title'])), |
175 | 'AUTHOR' => $getpost3['author'], | 173 | 'AUTHOR' => $getpost3['author'], |
176 | 'PLURALCOMMENT' => (isset($plural) ? $plural : ''), | 174 | 'PLURALCOMMENT' => (isset($plural) ? $plural : ''), |
177 | 'COMMENTS' => $comText, | 175 | 'COMMENTS' => $comText, |
178 | 'RATING' => $getpost3['rating'], | 176 | 'RATING' => $getpost3['rating'], |
179 | 'TEXT' => parseText(stripslashes($getpost3['text'])))); | 177 | 'TEXT' => parseText($getpost3['text']))); |
180 | 178 | ||
181 | $tags = getTags($getpost3['id']); | 179 | $tags = getTags($getpost3['id']); |
182 | foreach ($tags as $tag) | 180 | foreach ($tags as $tag) |
diff --git a/pages/post.php b/pages/post.php index 3f728c8..a5435c9 100755 --- a/pages/post.php +++ b/pages/post.php | |||
@@ -68,7 +68,7 @@ if (!isset($_POST['id'])) | |||
68 | $template = new FITemplate('new-comment'); | 68 | $template = new FITemplate('new-comment'); |
69 | $template->add('ID', $cid); | 69 | $template->add('ID', $cid); |
70 | $template->add('CODEDEMAIL', md5(strtolower($getanon3['email']))); | 70 | $template->add('CODEDEMAIL', md5(strtolower($getanon3['email']))); |
71 | $template->add('TEXT', stripslashes($_POST['comment'])); | 71 | $template->add('TEXT', $_POST['comment']); |
72 | $template->add('USERNAME', $getanon3['username']); | 72 | $template->add('USERNAME', $getanon3['username']); |
73 | $template->add('DATE', date("F jS Y \a\\t g:i:s a")); | 73 | $template->add('DATE', date("F jS Y \a\\t g:i:s a")); |
74 | $template->display(); | 74 | $template->display(); |
@@ -108,7 +108,7 @@ if (!isset($_POST['id'])) | |||
108 | $template = new FITemplate('new-comment'); | 108 | $template = new FITemplate('new-comment'); |
109 | $template->add('ID', $cid); | 109 | $template->add('ID', $cid); |
110 | $template->add('CODEDEMAIL', md5(strtolower($getuser3['user_email']))); | 110 | $template->add('CODEDEMAIL', md5(strtolower($getuser3['user_email']))); |
111 | $template->add('TEXT', stripslashes($_POST['comment'])); | 111 | $template->add('TEXT', $_POST['comment']); |
112 | $template->add('USERNAME', getSessionUsername()); | 112 | $template->add('USERNAME', getSessionUsername()); |
113 | $template->add('DATE', date("F jS Y \a\\t g:i:s a")); | 113 | $template->add('DATE', date("F jS Y \a\\t g:i:s a")); |
114 | $template->display(); | 114 | $template->display(); |
diff --git a/pages/quotes.php b/pages/quotes.php index 3b00878..f47dbd3 100755 --- a/pages/quotes.php +++ b/pages/quotes.php | |||
@@ -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 />",htmlspecialchars(stripslashes($_POST['rash_quote']))))); | 73 | $template->adds_block('SUBMITTED',array('QUOTE' => str_replace("\n","<br />",htmlspecialchars($_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' => doAprilFoolsDay(str_replace("\n","<br />",htmlspecialchars(stripslashes($getquotes3[$i]['quote'])))), | 239 | 'QUOTE' => doAprilFoolsDay(str_replace("\n","<br />",htmlspecialchars($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)) |
diff --git a/pages/viewPost.php b/pages/viewPost.php index 0d84df7..fa371cf 100755 --- a/pages/viewPost.php +++ b/pages/viewPost.php | |||
@@ -44,7 +44,7 @@ if (!isAdmin()) | |||
44 | 'TITLE' => $getpost3['title'], | 44 | 'TITLE' => $getpost3['title'], |
45 | 'AUTHOR' => $getpost3['author'], | 45 | 'AUTHOR' => $getpost3['author'], |
46 | 'RATING' => $getpost3['rating'], | 46 | 'RATING' => $getpost3['rating'], |
47 | 'TEXT' => parseText(stripslashes($getpost3['text'])))); | 47 | 'TEXT' => parseText($getpost3['text']))); |
48 | 48 | ||
49 | $tags = getTags($getpost3['id']); | 49 | $tags = getTags($getpost3['id']); |
50 | foreach ($tags as $tag) | 50 | foreach ($tags as $tag) |
diff --git a/rss.php b/rss.php index 2a72d8a..fddd631 100755 --- a/rss.php +++ b/rss.php | |||
@@ -59,9 +59,6 @@ if (isset($_GET['mode'])) | |||
59 | case 'quotes': | 59 | case 'quotes': |
60 | ?> Quotes<?php | 60 | ?> Quotes<?php |
61 | break; | 61 | break; |
62 | case 'poll': | ||
63 | ?> Polls<?php | ||
64 | break; | ||
65 | case 'comments': | 62 | case 'comments': |
66 | ?> Comments<?php | 63 | ?> Comments<?php |
67 | break; | 64 | break; |
@@ -95,9 +92,6 @@ if (isset($_GET['mode'])) | |||
95 | case 'quotes': | 92 | case 'quotes': |
96 | ?>An archive of all Four Island quotes<?php | 93 | ?>An archive of all Four Island quotes<?php |
97 | break; | 94 | break; |
98 | case 'poll': | ||
99 | ?>An archive of all of the Four Island POTWs<?php | ||
100 | break; | ||
101 | case 'comments': | 95 | case 'comments': |
102 | ?>An archive of all of the comments people have left on Four Island<?php | 96 | ?>An archive of all of the comments people have left on Four Island<?php |
103 | break; | 97 | break; |
@@ -149,18 +143,6 @@ if (!isset($_GET['mode']) || ($_GET['mode'] == 'quotes')) | |||
149 | } | 143 | } |
150 | } | 144 | } |
151 | 145 | ||
152 | if ($_GET['mode'] == 'poll') | ||
153 | { | ||
154 | $getpolls = "SELECT * FROM polloftheweek"; | ||
155 | $getpolls2 = mysql_query($getpolls); | ||
156 | while (($items[$i] = mysql_fetch_array($getpolls2)) && ($i < ($si+10))) | ||
157 | { | ||
158 | $items[$i]['sortDate'] = strtotime($items[$i]['week']); | ||
159 | $items[$i]['itemType'] = 'poll'; | ||
160 | $i++; | ||
161 | } | ||
162 | } | ||
163 | |||
164 | if (!isset($_GET['mode']) || ($_GET['mode'] == 'comments')) | 146 | if (!isset($_GET['mode']) || ($_GET['mode'] == 'comments')) |
165 | { | 147 | { |
166 | $getcomments = "SELECT * FROM comments ORDER BY id DESC LIMIT 0,10"; | 148 | $getcomments = "SELECT * FROM comments ORDER BY id DESC LIMIT 0,10"; |
@@ -204,14 +186,6 @@ if (!isset($_GET['mode']) || ($_GET['mode'] == 'comments')) | |||
204 | $items[$i]['title'] = '"' . $getpost3['title'] . '"'; | 186 | $items[$i]['title'] = '"' . $getpost3['title'] . '"'; |
205 | $items[$i]['url'] = 'blog/' . $getpost3['slug'] . '/'; | 187 | $items[$i]['url'] = 'blog/' . $getpost3['slug'] . '/'; |
206 | break; | 188 | break; |
207 | case 'polloftheweek': | ||
208 | $getpoll = "SELECT * FROM polloftheweek WHERE id = " . $comID; | ||
209 | $getpoll2 = mysql_query($getpoll); | ||
210 | $getpoll3 = mysql_fetch_array($getpoll2); | ||
211 | |||
212 | $items[$i]['title'] = '"' . $getpoll3['question'] . '"'; | ||
213 | $items[$i]['url'] = 'poll/' . $getpoll3['id'] . '.php'; | ||
214 | break; | ||
215 | case 'quote': | 189 | case 'quote': |
216 | $getquote = "SELECT * FROM rash_quotes WHERE id = " . $comID; | 190 | $getquote = "SELECT * FROM rash_quotes WHERE id = " . $comID; |
217 | $getquote2 = mysql_query($getquote); | 191 | $getquote2 = mysql_query($getquote); |
@@ -253,7 +227,7 @@ foreach ($items as $key => $value) | |||
253 | 227 | ||
254 | <link>http://fourisland.com/blog/<?php echo($value['slug']); ?>/</link> | 228 | <link>http://fourisland.com/blog/<?php echo($value['slug']); ?>/</link> |
255 | 229 | ||
256 | <description><?php echo(stripslashes(htmlentities(parseText($value['text'])))); ?></description> | 230 | <description><?php echo(htmlspecialchars(parseText($value['text']))); ?></description> |
257 | 231 | ||
258 | <pubDate><?php echo(date('D, d M Y H:i:s O',$value['sortDate'])); ?></pubDate> | 232 | <pubDate><?php echo(date('D, d M Y H:i:s O',$value['sortDate'])); ?></pubDate> |
259 | </item> | 233 | </item> |
@@ -266,14 +240,12 @@ foreach ($items as $key => $value) | |||
266 | 240 | ||
267 | <link>http://fourisland.com/quotes/<?php echo(urlencode($value['id'])); ?>.php</link> | 241 | <link>http://fourisland.com/quotes/<?php echo(urlencode($value['id'])); ?>.php</link> |
268 | 242 | ||
269 | <description><?php echo(htmlentities(nl2br($value['quote']))); ?></description> | 243 | <description><?php echo(htmlspecialchars(nl2br($value['quote']))); ?></description> |
270 | 244 | ||
271 | <pubDate><?php echo(date('D, d M Y H:i:s O',$value['sortDate'])); ?></pubDate> | 245 | <pubDate><?php echo(date('D, d M Y H:i:s O',$value['sortDate'])); ?></pubDate> |
272 | </item> | 246 | </item> |
273 | <?php | 247 | <?php |
274 | break; | 248 | break; |
275 | case 'poll': | ||
276 | break; | ||
277 | case 'comment': | 249 | case 'comment': |
278 | ?> | 250 | ?> |
279 | <item> | 251 | <item> |
@@ -281,7 +253,7 @@ foreach ($items as $key => $value) | |||
281 | 253 | ||
282 | <link>http://fourisland.com/<?php echo($value['url']); ?>#comment-<?php echo($value['id']); ?></link> | 254 | <link>http://fourisland.com/<?php echo($value['url']); ?>#comment-<?php echo($value['id']); ?></link> |
283 | 255 | ||
284 | <description><?php echo(stripslashes(htmlentities(parseText($value['comment'])))); ?></description> | 256 | <description><?php echo(htmlspecialchars(parseText($value['comment']))); ?></description> |
285 | 257 | ||
286 | <pubDate><?php echo(date('D, d M Y H:i:s O',$value['sortDate'])); ?></pubDate> | 258 | <pubDate><?php echo(date('D, d M Y H:i:s O',$value['sortDate'])); ?></pubDate> |
287 | </item> | 259 | </item> |
diff --git a/theme/admin/header.tpl b/theme/admin/header.tpl index 62beb89..6def3fe 100755 --- a/theme/admin/header.tpl +++ b/theme/admin/header.tpl | |||
@@ -22,7 +22,6 @@ | |||
22 | <ul id="mainNav"> | 22 | <ul id="mainNav"> |
23 | <li><a href="/admin/"<!--HOMEACTIVECAT-->>DASHBOARD</a></li> | 23 | <li><a href="/admin/"<!--HOMEACTIVECAT-->>DASHBOARD</a></li> |
24 | <li><a href="/admin/posts.php"<!--POSTSACTIVECAT-->>POSTS</a></li> | 24 | <li><a href="/admin/posts.php"<!--POSTSACTIVECAT-->>POSTS</a></li> |
25 | <li><a href="/admin/polls.php"<!--POLLSACTIVECAT-->>POLLS</a></li> | ||
26 | <li><a href="/admin/quotes.php"<!--QUOTESACTIVECAT-->>QUOTES</a></li> | 25 | <li><a href="/admin/quotes.php"<!--QUOTESACTIVECAT-->>QUOTES</a></li> |
27 | <li><a href="/admin/links.php"<!--LINKSACTIVECAT-->>LINKS</a></li> | 26 | <li><a href="/admin/links.php"<!--LINKSACTIVECAT-->>LINKS</a></li> |
28 | <li class="logout"><a href="/">FOUR ISLAND</a></li> | 27 | <li class="logout"><a href="/">FOUR ISLAND</a></li> |
@@ -43,10 +42,6 @@ | |||
43 | <li><a href="/admin/pending.php"<!--PENDINGACTIVE-->>Manage Pending Posts</a></li> | 42 | <li><a href="/admin/pending.php"<!--PENDINGACTIVE-->>Manage Pending Posts</a></li> |
44 | <li><a href="/admin/comments.php"<!--COMMENTSACTIVE-->>Moderate Comments</a></li> | 43 | <li><a href="/admin/comments.php"<!--COMMENTSACTIVE-->>Moderate Comments</a></li> |
45 | <!--END POSTSISACTIVECAT--> | 44 | <!--END POSTSISACTIVECAT--> |
46 | <!--BEGIN POLLSISACTIVECAT--> | ||
47 | <li><a href="/admin/newPoll.php"<!--NEWPOLLACTIVE-->>Write a new poll</a></li> | ||
48 | <li><a href="/admin/polls.php"<!--POLLSACTIVE-->>Manage Polls</a></li> | ||
49 | <!--END POLLSISACTIVECAT--> | ||
50 | <!--BEGIN QUOTESISACTIVECAT--> | 45 | <!--BEGIN QUOTESISACTIVECAT--> |
51 | <li><a href="/admin/quotes.php"<!--QUOTESACTIVE-->>Manage Quotes</a></li> | 46 | <li><a href="/admin/quotes.php"<!--QUOTESACTIVE-->>Manage Quotes</a></li> |
52 | <li><a href="/admin/modquotes.php"<!--MODQUOTESACTIVE-->>Moderate Quotes</a></li> | 47 | <li><a href="/admin/modquotes.php"<!--MODQUOTESACTIVE-->>Moderate Quotes</a></li> |
diff --git a/theme/admin/welcome.tpl b/theme/admin/welcome.tpl index dc4e246..6c37c93 100755 --- a/theme/admin/welcome.tpl +++ b/theme/admin/welcome.tpl | |||
@@ -9,9 +9,5 @@ | |||
9 | </p> | 9 | </p> |
10 | 10 | ||
11 | <p> | 11 | <p> |
12 | There are <!--POLLS--> polls. | ||
13 | </p> | ||
14 | |||
15 | <p> | ||
16 | There are <!--QUOTES--> quotes, including <!--FLAGGED--> flagged quotes. There are also <!--MODCOM--> unmoderated quotes. | 12 | There are <!--QUOTES--> quotes, including <!--FLAGGED--> flagged quotes. There are also <!--MODCOM--> unmoderated quotes. |
17 | </p> | 13 | </p> |
diff --git a/theme/header.tpl b/theme/header.tpl index 014e34b..bd1df91 100755 --- a/theme/header.tpl +++ b/theme/header.tpl | |||
@@ -53,12 +53,6 @@ | |||
53 | <!--BEGIN CREATE_HATNAV--> | 53 | <!--BEGIN CREATE_HATNAV--> |
54 | </ul> | 54 | </ul> |
55 | <!--END CREATE_HATNAV--> | 55 | <!--END CREATE_HATNAV--> |
56 | |||
57 | <div class="module rounded sidebar"> | ||
58 | <h3>Poll of the Week</h3> | ||
59 | |||
60 | <!--POTW--> | ||
61 | </div> | ||
62 | 56 | ||
63 | <div class="module rounded sidebar"> | 57 | <div class="module rounded sidebar"> |
64 | <h3>Affiliates</h3> | 58 | <h3>Affiliates</h3> |
@@ -125,13 +119,6 @@ | |||
125 | </a> | 119 | </a> |
126 | </li> | 120 | </li> |
127 | 121 | ||
128 | <li<!--POLLACTIVE-->> | ||
129 | <a href="/poll/"> | ||
130 | <img src="/theme/images/icons/overlays.png" alt="Polls" /> | ||
131 | <span>Polls</span> | ||
132 | </a> | ||
133 | </li> | ||
134 | |||
135 | <li<!--QUOTESACTIVE-->> | 122 | <li<!--QUOTESACTIVE-->> |
136 | <a href="/quotes/"> | 123 | <a href="/quotes/"> |
137 | <img src="/theme/images/icons/16-file-page.png" alt="Quotes" /> | 124 | <img src="/theme/images/icons/16-file-page.png" alt="Quotes" /> |
diff --git a/theme/layouts/4.5/headers.php b/theme/layouts/4.5/headers.php index bb5a179..ee84e2d 100755 --- a/theme/layouts/4.5/headers.php +++ b/theme/layouts/4.5/headers.php | |||
@@ -73,9 +73,6 @@ body.webs div#banner { | |||
73 | body.quotes div#banner { | 73 | body.quotes div#banner { |
74 | background-image: url("/theme/images/headers/quotes.png"); | 74 | background-image: url("/theme/images/headers/quotes.png"); |
75 | } | 75 | } |
76 | body.poll div#banner { | ||
77 | background-image: url("/theme/images/headers/potw.png"); | ||
78 | } | ||
79 | /* AID-Based Headers */ | 76 | /* AID-Based Headers */ |
80 | <?php | 77 | <?php |
81 | } | 78 | } |
diff --git a/theme/layouts/4.5/layout.tpl b/theme/layouts/4.5/layout.tpl index 27abd83..bb43e95 100755 --- a/theme/layouts/4.5/layout.tpl +++ b/theme/layouts/4.5/layout.tpl | |||
@@ -45,7 +45,6 @@ AudioPlayer.setup("http://fourisland.com/theme/js/audio-player/player.swf", { | |||
45 | <LI id="bannernav-projects"><A HREF="http://projects.fourisland.com/"><B><SPAN>Projects</SPAN></B></A></LI> | 45 | <LI id="bannernav-projects"><A HREF="http://projects.fourisland.com/"><B><SPAN>Projects</SPAN></B></A></LI> |
46 | <LI id="bannernav-fourm"><A HREF="/fourm/"><B><SPAN>Fourm</SPAN></B></A></LI> | 46 | <LI id="bannernav-fourm"><A HREF="/fourm/"><B><SPAN>Fourm</SPAN></B></A></LI> |
47 | <LI id="bannernav-wiki"><A HREF="/wiki/"><B><SPAN>Wiki</SPAN></B></A></LI> | 47 | <LI id="bannernav-wiki"><A HREF="/wiki/"><B><SPAN>Wiki</SPAN></B></A></LI> |
48 | <LI id="bannernav-poll"><A HREF="/poll/"><B><SPAN>Poll</SPAN></B></A></LI> | ||
49 | <LI id="bannernav-quotes"><A HREF="/quotes/"><B><SPAN>Quotes</SPAN></B></A></LI> | 48 | <LI id="bannernav-quotes"><A HREF="/quotes/"><B><SPAN>Quotes</SPAN></B></A></LI> |
50 | <LI id="bannernav-<!--LOWERLOGDATA-->"><A HREF="/fourm/ucp.php?mode=log<!--LOGDATA-->&redirect=<!--REDIRPAGE-->&sid=<!--SID-->"><B><SPAN>Log<!--LOGDATA--></SPAN></B></A></LI> | 49 | <LI id="bannernav-<!--LOWERLOGDATA-->"><A HREF="/fourm/ucp.php?mode=log<!--LOGDATA-->&redirect=<!--REDIRPAGE-->&sid=<!--SID-->"><B><SPAN>Log<!--LOGDATA--></SPAN></B></A></LI> |
51 | <!--BEGIN PANEL--> | 50 | <!--BEGIN PANEL--> |
diff --git a/theme/layouts/4.5/navigation.css b/theme/layouts/4.5/navigation.css index 4d3156b..386ac26 100755 --- a/theme/layouts/4.5/navigation.css +++ b/theme/layouts/4.5/navigation.css | |||
@@ -89,15 +89,6 @@ ul#bannernav li#bannernav-webs a:hover { | |||
89 | background-image: url("/theme/images/Links_ro.gif"); | 89 | background-image: url("/theme/images/Links_ro.gif"); |
90 | } | 90 | } |
91 | 91 | ||
92 | ul#bannernav li#bannernav-poll a { | ||
93 | background-image: url("/theme/images/Poll.gif"); | ||
94 | } | ||
95 | |||
96 | body.poll ul#bannernav li#bannernav-poll a, | ||
97 | ul#bannernav li#bannernav-poll a:hover { | ||
98 | background-image: url("/theme/images/Poll_ro.gif"); | ||
99 | } | ||
100 | |||
101 | ul#bannernav li#bannernav-quotes a { | 92 | ul#bannernav li#bannernav-quotes a { |
102 | background-image: url("/theme/images/Quotes.gif"); | 93 | background-image: url("/theme/images/Quotes.gif"); |
103 | } | 94 | } |
@@ -170,4 +161,4 @@ body.fourm ul#bannernav li#bannernav-search input { | |||
170 | margin-top: 0px; | 161 | margin-top: 0px; |
171 | font-size: 1.1em !important; | 162 | font-size: 1.1em !important; |
172 | margin-left: 28px; | 163 | margin-left: 28px; |
173 | } | 164 | } |
diff --git a/theme/layouts/4.5/style.css b/theme/layouts/4.5/style.css index a8b9306..7e8c2c4 100755 --- a/theme/layouts/4.5/style.css +++ b/theme/layouts/4.5/style.css | |||
@@ -17,7 +17,6 @@ body.fourm div#content { | |||
17 | } | 17 | } |
18 | 18 | ||
19 | body.fourm div#wrap, | 19 | body.fourm div#wrap, |
20 | body.poll div#wrap, | ||
21 | body.quotes div#wrap, | 20 | body.quotes div#wrap, |
22 | body.admin div#wrap { | 21 | body.admin div#wrap { |
23 | background-image: url(/theme/images/bg_body.gif); | 22 | background-image: url(/theme/images/bg_body.gif); |
diff --git a/theme/layouts/6.2/layout.tpl b/theme/layouts/6.2/layout.tpl index 6ba1d1e..d0991ff 100755 --- a/theme/layouts/6.2/layout.tpl +++ b/theme/layouts/6.2/layout.tpl | |||
@@ -66,13 +66,6 @@ AudioPlayer.setup("http://fourisland.com/theme/js/audio-player/player.swf", { | |||
66 | </A> | 66 | </A> |
67 | </LI> | 67 | </LI> |
68 | 68 | ||
69 | <LI<!--POLLACTIVE-->> | ||
70 | <A HREF="/poll/"> | ||
71 | <IMG SRC="/theme/images/icons/overlays.png" ALT="Polls"> | ||
72 | <SPAN>Polls</SPAN> | ||
73 | </A> | ||
74 | </LI> | ||
75 | |||
76 | <LI<!--QUOTESACTIVE-->> | 69 | <LI<!--QUOTESACTIVE-->> |
77 | <A HREF="/quotes/"> | 70 | <A HREF="/quotes/"> |
78 | <IMG SRC="/theme/images/icons/16-file-page.png" ALT="Quotes"> | 71 | <IMG SRC="/theme/images/icons/16-file-page.png" ALT="Quotes"> |
diff --git a/theme/layouts/7/layout.tpl b/theme/layouts/7/layout.tpl index 2cacae5..5f722a3 100755 --- a/theme/layouts/7/layout.tpl +++ b/theme/layouts/7/layout.tpl | |||
@@ -146,13 +146,6 @@ AudioPlayer.setup("http://fourisland.com/theme/js/audio-player/player.swf", { | |||
146 | </a> | 146 | </a> |
147 | </li> | 147 | </li> |
148 | 148 | ||
149 | <li<!--POLLACTIVE-->> | ||
150 | <a href="/poll/"> | ||
151 | <img src="/theme/images/icons/overlays.png" alt="Polls" /> | ||
152 | <span>Polls</span> | ||
153 | </a> | ||
154 | </li> | ||
155 | |||
156 | <li<!--QUOTESACTIVE-->> | 149 | <li<!--QUOTESACTIVE-->> |
157 | <a href="/quotes/"> | 150 | <a href="/quotes/"> |
158 | <img src="/theme/images/icons/16-file-page.png" alt="Quotes" /> | 151 | <img src="/theme/images/icons/16-file-page.png" alt="Quotes" /> |
diff --git a/theme/layouts/subtle/layout.tpl b/theme/layouts/subtle/layout.tpl index ac57aa7..227c87b 100755 --- a/theme/layouts/subtle/layout.tpl +++ b/theme/layouts/subtle/layout.tpl | |||
@@ -58,13 +58,6 @@ AudioPlayer.setup("http://fourisland.com/theme/js/audio-player/player.swf", { | |||
58 | </a> | 58 | </a> |
59 | </li> | 59 | </li> |
60 | 60 | ||
61 | <li<!--POLLACTIVE-->> | ||
62 | <a href="/poll/"> | ||
63 | <img src="/theme/images/icons/overlays.png" alt="Polls" /> | ||
64 | <span>Polls</span> | ||
65 | </a> | ||
66 | </li> | ||
67 | |||
68 | <li<!--QUOTESACTIVE-->> | 61 | <li<!--QUOTESACTIVE-->> |
69 | <a href="/quotes/"> | 62 | <a href="/quotes/"> |
70 | <img src="/theme/images/icons/16-file-page.png" alt="Quotes" /> | 63 | <img src="/theme/images/icons/16-file-page.png" alt="Quotes" /> |