summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2009-08-09 09:14:58 -0400
committerStarla Insigna <hatkirby@fourisland.com>2009-08-09 09:14:58 -0400
commit893957c41481a0cd5eb624096337762ffa54ff28 (patch)
tree09d2487f8add5a6281e3482a471abf21faa4f819
parentd27a3784c81f0c582e43655509e806978b7e65e4 (diff)
downloadfourisland-893957c41481a0cd5eb624096337762ffa54ff28.tar.gz
fourisland-893957c41481a0cd5eb624096337762ffa54ff28.tar.bz2
fourisland-893957c41481a0cd5eb624096337762ffa54ff28.zip
Created layout 7
The following changes were also made in this revision:

* All HTML was changed to XHTML and a !DOCTYPE was included to reflect this
* Rewrote quotes tracking system to be much less complicated and actually working
* Changed quotes rendering to look more like Chirpy than Rash
* Fixed comment textarea bug
* Rewrote a ton of CSS so it's not as bloated
* Added a JavaScript confirmation when deleting a comment
* AJAXified voting on the POTW
* AJAXified voting and flagging quotes
* AJAXified commenting
* AJAXified voting on posts
* Added DateFinder back after it was accidentally deleted in Layout 4.5

The following database changes must be performed as soon as possible:

* Fix title of NO <!DOCTYPE> post (the &lt; is missing the semicolon)
* Restore post Frasty Tha Snaman from a backup
* Reset "flag" field of all rows in "rash_quotes" to 0
* Remove the "vote" and "flag" columns of "rash_tracking"
* Rename the "quote_id" column of "rash_tracking" to "vote"

The following external code changes must also be performed as soon as possible:

* Add the following line to the end of the // Four Island block in The Fourm's functions.php:
  require('/svr/www/hatkirby/fourisland/main/includes/specialdates.php');
-rw-r--r--.hgignore1
-rwxr-xr-x.htaccess2
-rwxr-xr-xincludes/bbcode.php66
-rwxr-xr-xincludes/comments.php6
-rwxr-xr-xincludes/footer.php322
-rwxr-xr-xincludes/functions.php48
-rwxr-xr-xincludes/header.php47
-rwxr-xr-xincludes/smilies.php2
-rwxr-xr-xincludes/specialdates.php52
-rwxr-xr-xindex.php1
-rwxr-xr-xpages/admin.php13
-rwxr-xr-xpages/blog.php23
-rwxr-xr-xpages/holidates.php35
-rw-r--r--pages/poll-results.php54
-rwxr-xr-xpages/poll.php29
-rwxr-xr-xpages/post.php103
-rwxr-xr-xpages/quotes.php261
-rwxr-xr-xpages/vote.php42
-rwxr-xr-xpages/welcome.php22
-rwxr-xr-xtheme/addresses.tpl8
-rwxr-xr-xtheme/admin/deleteDraft.tpl8
-rwxr-xr-xtheme/admin/deletePending.tpl8
-rwxr-xr-xtheme/admin/deletePost.tpl8
-rwxr-xr-xtheme/admin/deletedDraft.tpl8
-rwxr-xr-xtheme/admin/deletedPending.tpl8
-rwxr-xr-xtheme/admin/deletedPost.tpl8
-rwxr-xr-xtheme/admin/draftSuccess.tpl12
-rwxr-xr-xtheme/admin/editDraft.tpl26
-rwxr-xr-xtheme/admin/editPending.tpl14
-rwxr-xr-xtheme/admin/editPost.tpl14
-rwxr-xr-xtheme/admin/index.tpl46
-rw-r--r--theme/admin/maintenanceMode.tpl24
-rwxr-xr-xtheme/admin/manageDrafts.tpl36
-rwxr-xr-xtheme/admin/managePending.tpl40
-rwxr-xr-xtheme/admin/managePendingQuotes.tpl30
-rwxr-xr-xtheme/admin/managePosts.tpl36
-rwxr-xr-xtheme/admin/moderateComments.tpl36
-rwxr-xr-xtheme/admin/newPoll.tpl18
-rwxr-xr-xtheme/admin/pendingSuccess.tpl12
-rwxr-xr-xtheme/admin/pollrss.tpl10
-rwxr-xr-xtheme/admin/postSuccess.tpl12
-rwxr-xr-xtheme/admin/viewComment.tpl20
-rwxr-xr-xtheme/admin/write.tpl26
-rwxr-xr-xtheme/archive.tpl6
-rwxr-xr-xtheme/comments.tpl130
-rw-r--r--[-rwxr-xr-x]theme/css.php32
-rw-r--r--theme/css/blog.php18
-rwxr-xr-xtheme/css/bubbles.css91
-rwxr-xr-xtheme/css/day.css4
-rwxr-xr-xtheme/css/holiday.php43
-rw-r--r--theme/css/ie.css44
-rwxr-xr-xtheme/css/night.css25
-rwxr-xr-xtheme/css/print.css38
-rw-r--r--theme/css/quotes.css61
-rw-r--r--[-rwxr-xr-x]theme/css/website.css458
-rwxr-xr-xtheme/datefinder.tpl0
-rwxr-xr-xtheme/errors/404.tpl202
-rw-r--r--[-rwxr-xr-x]theme/footer.tpl91
-rw-r--r--theme/fuhsdiufgsadiufgaisfioas.tpl4
-rw-r--r--[-rwxr-xr-x]theme/header.tpl293
-rw-r--r--theme/holidates.tpl15
-rwxr-xr-xtheme/images/fourisland_header.pngbin24124 -> 0 bytes
-rw-r--r--theme/images/fourisland_header_night.pngbin19678 -> 0 bytes
-rw-r--r--theme/images/header-repeat.pngbin0 -> 218 bytes
-rw-r--r--theme/images/header.pngbin0 -> 16617 bytes
-rw-r--r--theme/images/icons/xhtml_valid.pngbin0 -> 718 bytes
-rwxr-xr-xtheme/images/no-ie6.pngbin18666 -> 0 bytes
-rwxr-xr-xtheme/login.tpl17
-rwxr-xr-xtheme/maintenance.tpl8
-rwxr-xr-xtheme/msg.tpl2
-rwxr-xr-xtheme/msg2.tpl2
-rw-r--r--theme/new-comment.tpl8
-rwxr-xr-xtheme/pingbacks.tpl21
-rwxr-xr-xtheme/poll.tpl64
-rwxr-xr-xtheme/pollIndex.tpl43
-rwxr-xr-xtheme/polloftheweek.tpl86
-rwxr-xr-xtheme/post.tpl135
-rwxr-xr-xtheme/postLogin.tpl16
-rwxr-xr-xtheme/quotes/add.tpl22
-rwxr-xr-xtheme/quotes/browse.tpl92
-rwxr-xr-xtheme/quotes/pagenumbers.tpl24
-rwxr-xr-xtheme/quotes/search.tpl34
-rwxr-xr-xtheme/related.tpl21
83 files changed, 2019 insertions, 1728 deletions
diff --git a/.hgignore b/.hgignore index 9747ba0..c55862b 100644 --- a/.hgignore +++ b/.hgignore
@@ -1 +1,2 @@
1^images 1^images
2~$
diff --git a/.htaccess b/.htaccess index 3fd4fe2..bb11dba 100755 --- a/.htaccess +++ b/.htaccess
@@ -1,4 +1,4 @@
1ErrorDocument 404 http://fourisland.com/error/404.php 1ErrorDocument 404 /error/404.php
2 2
3RewriteEngine On 3RewriteEngine On
4 4
diff --git a/includes/bbcode.php b/includes/bbcode.php index af0b1a4..b116e7a 100755 --- a/includes/bbcode.php +++ b/includes/bbcode.php
@@ -30,30 +30,33 @@ class BBCode
30 30
31 function init() 31 function init()
32 { 32 {
33 $this->bbcodes['b'] = '<B>{CONTENT}</B>'; 33 $this->bbcodes['b'] = '<strong>{CONTENT}</strong>';
34 $this->bbcodes['i'] = '<I>{CONTENT}</I>'; 34 $this->bbcodes['i'] = '<em>{CONTENT}</em>';
35 $this->bbcodes['u'] = '<U>{CONTENT}</U>'; 35 $this->bbcodes['u'] = '<u>{CONTENT}</u>';
36 $this->bbcodes['url'] = '<A HREF="{CONTENT}">{CONTENT}</A>'; 36 $this->bbcodes['url'] = '<a href="{CONTENT}">{CONTENT}</a>';
37 $this->bbcodes2['url'] = '<A HREF="{PARAM}">{CONTENT}</A>'; 37 $this->bbcodes2['url'] = '<a href="{PARAM}">{CONTENT}</a>';
38 $this->bbcodes['img'] = '<IMG SRC="{CONTENT}" ALT="Image">'; 38 $this->bbcodes['img'] = '<img src="{CONTENT}" alt="Image" />';
39 $this->bbcodes2['img'] = '<IMG SRC="{CONTENT}" ALT="{PARAM}" TITLE="{PARAM}">'; 39 $this->bbcodes2['img'] = '<img src="{CONTENT}" alt="{PARAM}" title="{PARAM}" />';
40 $this->bbcodes['big'] = '<BIG>{CONTENT}</BIG>'; 40 $this->bbcodes['big'] = '<big>{CONTENT}</big>';
41 $this->bbcodes['small'] = '<SMALL>{CONTENT}</SMALL>'; 41 $this->bbcodes['small'] = '<small>{CONTENT}</small>';
42 $this->bbcodes['ul'] = '<UL>{CONTENT}</UL>'; 42 $this->bbcodes['ul'] = '<ul>{CONTENT}</ul>';
43 $this->bbcodes['ol'] = '<OL>{CONTENT}</OL>'; 43 $this->bbcodes['ol'] = '<ol>{CONTENT}</ol>';
44 $this->bbcodes['li'] = '<LI>{CONTENT}</LI>'; 44 $this->bbcodes['li'] = '<li>{CONTENT}</li>';
45 $this->bbcodes['code'] = '<CODE>{CONTENT}</CODE>'; 45 $this->bbcodes['code'] = '<code>{CONTENT}</code>';
46 $this->bbcodes['pre'] = '<P><DIV CLASS="autosize"><DIV CLASS="bubble"><DIV CLASS="bquote"><BLOCKQUOTE><DIV><CODE>{CONTENT}</CODE></DIV></BLOCKQUOTE></DIV></DIV></DIV><DIV CLASS="cleardiv"></DIV>'; 46 $this->bbcodes['pre'] = '<pre><code>{CONTENT}</code></pre>';
47 $this->bbcodes2['blog'] = '<A HREF="/blog/{PARAM}/">{CONTENT}</A>'; 47 $this->bbcodes['pref'] = '<pre>{CONTENT}</pre>';
48 $this->bbcodes2['quote'] = '<A HREF="/quotes/{PARAM}.php">{CONTENT}</A>'; 48 $this->bbcodes2['blog'] = '<a href="/blog/{PARAM}/">{CONTENT}</a>';
49 $this->bbcodes['ins'] = '<INS>{CONTENT}</INS>'; 49 $this->bbcodes['quote'] = '<a href="/quotes/{CONTENT}.php">#{CONTENT}</a>';
50 $this->bbcodes['del'] = '<DEL>{CONTENT}</DEL>'; 50 $this->bbcodes2['quote'] = '<a href="/quotes/{PARAM}.php">{CONTENT}</a>';
51 $this->bbcodes['bquote'] = '<P><DIV CLASS="autosize"><DIV CLASS="bubble"><DIV CLASS="bquote"><BLOCKQUOTE><DIV>{CONTENT}</DIV></BLOCKQUOTE></DIV><CITE><STRONG>Anonymous</STRONG></CITE></DIV></DIV><DIV CLASS="cleardiv"></DIV>'; 51 $this->bbcodes['ins'] = '<ins>{CONTENT}</ins>';
52 $this->bbcodes2['bquote'] = '<P><DIV CLASS="autosize"><DIV CLASS="bubble"><DIV CLASS="bquote"><BLOCKQUOTE><DIV>{CONTENT}</DIV></BLOCKQUOTE></DIV><CITE><STRONG>{PARAM}</STRONG></CITE></DIV></DIV><DIV CLASS="cleardiv"></DIV>'; 52 $this->bbcodes['del'] = '<del>{CONTENT}</del>';
53 $this->bbcodes2['abbr'] = '<ABBR TITLE="{PARAM}">{CONTENT}</ABBR>'; 53 $this->bbcodes['bquote'] = '<div class="bquote module unrounded"><blockquote>{CONTENT}</blockquote></div><cite><strong>Anonymous</strong></cite><div class="cleardiv"></div>';
54 $this->bbcodes['hidden'] = '<SPAN STYLE="display: none">{CONTENT}</SPAN>'; 54 $this->bbcodes2['bquote'] = '<div class="bquote module unrounded"><blockquote>{CONTENT}</blockquote></div><cite><strong>{PARAM}</strong></cite><div class="cleardiv"></div>';
55 $this->bbcodes['thumb'] = '<A HREF="/images/{CONTENT}"><IMG SRC="http://fourisland.com/thumb.php?file=images/{CONTENT}&amp;mode=scale&amp;by=521&amp;side=0" ALT="Image"></A>'; 55 $this->bbcodes2['abbr'] = '<abbr title="{PARAM}">{CONTENT}</abbr>';
56 $this->bbcodes['thumb2'] = '<A HREF="/images/{CONTENT}"><IMG SRC="http://fourisland.com/thumb.php?file=images/{CONTENT}&amp;mode=scale&amp;by=260&amp;side=0" ALIGN="right" ALT="Image"></A>'; 56 $this->bbcodes['hidden'] = '<span style="display: none">{CONTENT}</span>';
57 $this->bbcodes['thumb'] = '<a href="/images/{CONTENT}"><img src="http://fourisland.com/thumb.php?file=images/{CONTENT}&amp;mode=scale&amp;by=521&amp;side=0" alt="Image" /></a>';
58 $this->bbcodes['thumb2'] = '<a href="/images/{CONTENT}"><img src="http://fourisland.com/thumb.php?file=images/{CONTENT}&amp;mode=scale&amp;by=260&amp;side=0" align="right" alt="Image" /></a>';
59 $this->bbcodes['project'] = '<a href="http://projects.fourisland.com/projects/show/{CONTENT}">{CONTENT}</a>';
57 60
58 $this->init = true; 61 $this->init = true;
59 } 62 }
@@ -73,8 +76,15 @@ class BBCode
73 { 76 {
74 $bbcode_uid = unique_id(); 77 $bbcode_uid = unique_id();
75 $bbpos = strpos($to_parse, '[' . $name . ']'); 78 $bbpos = strpos($to_parse, '[' . $name . ']');
76 $to_parse = substr_replace($to_parse, '[' . $name . ':' . $bbcode_uid . ']', $bbpos, strlen($name) + 2); 79 $otag = '[' . $name . ':' . $bbcode_uid . ']';
77 $to_parse = substr_replace($to_parse, '[/' . $name . ':' . $bbcode_uid . ']', strpos(substr($to_parse, $bbpos), '[/' . $name . ']') + $bbpos, strlen($name) + 3); 80 $ctag = '[/' . $name . ':' . $bbcode_uid . ']';
81 $to_parse = substr_replace($to_parse, $otag, $bbpos, strlen($name) + 2);
82 $to_parse = substr_replace($to_parse, $ctag, strpos(substr($to_parse, $bbpos), '[/' . $name . ']') + $bbpos, strlen($name) + 3);
83
84 if (strpos($this->bbcodes[$name], '<pre>') !== -1)
85 {
86 $to_parse = substr_replace($to_parse, str_replace('[br]', '', substr($to_parse, strpos($to_parse, $otag) + strlen($otag), strpos($to_parse, $ctag) - (strpos($to_parse, $otag) + strlen($otag)))), strpos($to_parse, $otag) + strlen($otag), strpos($to_parse, $ctag) - (strpos($to_parse, $otag) + strlen($otag)));
87 }
78 88
79 $value = str_replace('{CONTENT}', '\1', $value); 89 $value = str_replace('{CONTENT}', '\1', $value);
80 $to_parse = preg_replace('/\[' . $name . ':' . $bbcode_uid . '\](.*)\[\/' . $name . ':' . $bbcode_uid . '\]/', $value, $to_parse); 90 $to_parse = preg_replace('/\[' . $name . ':' . $bbcode_uid . '\](.*)\[\/' . $name . ':' . $bbcode_uid . '\]/', $value, $to_parse);
@@ -96,13 +106,13 @@ class BBCode
96 } 106 }
97 } 107 }
98 108
99 return str_replace('[br]','<BR>',$to_parse); 109 return str_replace('[br]','<br />',$to_parse);
100 } 110 }
101} 111}
102 112
103function parseBBCode($text) 113function parseBBCode($text)
104{ 114{
105 global $bbcode; 115 static $bbcode;
106 if (!isset($bbcode)) 116 if (!isset($bbcode))
107 { 117 {
108 $bbcode = new BBCode(); 118 $bbcode = new BBCode();
diff --git a/includes/comments.php b/includes/comments.php index e050073..0f48444 100755 --- a/includes/comments.php +++ b/includes/comments.php
@@ -69,8 +69,8 @@ while ($getcomments3[$i] = mysql_fetch_array($getcomments2))
69 if (isset($username)) 69 if (isset($username))
70 { 70 {
71 $template->add_ref($curID, 'COMMENTS', array( 'CODEDEMAIL' => md5(strtolower($email)), 71 $template->add_ref($curID, 'COMMENTS', array( 'CODEDEMAIL' => md5(strtolower($email)),
72 'USERNAME' => (($website != '') ? '<A HREF="' . $website . '">' . $username . '</A>' : $username), 72 'USERNAME' => (($website != '') ? '<a href="' . $website . '">' . $username . '</a>' : $username),
73 'DATE' => date("F dS Y \a\\t g:i:s a",strtotime($getcomments3[$i]['posttime'])), 73 'DATE' => date("F jS Y \a\\t g:i:s a",strtotime($getcomments3[$i]['posttime'])),
74 'ID' => $getcomments3[$i]['id'], 74 'ID' => $getcomments3[$i]['id'],
75 'TEXT' => parseText($getcomments3[$i]['comment']))); 75 'TEXT' => parseText($getcomments3[$i]['comment'])));
76 76
@@ -78,7 +78,7 @@ while ($getcomments3[$i] = mysql_fetch_array($getcomments2))
78 { 78 {
79 if ((isAdmin()) || (($getcomments3[$i]['is_anon'] == 0) && (getSessionUserID() === $getcomments3[$i]['user_id']))) 79 if ((isAdmin()) || (($getcomments3[$i]['is_anon'] == 0) && (getSessionUserID() === $getcomments3[$i]['user_id'])))
80 { 80 {
81 $template->adds_ref_sub($curID, 'EDITOR', array('BEFORE' => $getcomments3[$i]['comment'])); 81 $template->adds_ref_sub($curID, 'EDITOR', array('BEFORE' => htmlspecialchars($getcomments3[$i]['comment'])));
82 } 82 }
83 } 83 }
84 } 84 }
diff --git a/includes/footer.php b/includes/footer.php index 6713db0..19cc341 100755 --- a/includes/footer.php +++ b/includes/footer.php
@@ -24,244 +24,156 @@ require('headerproc.php');
24 24
25$template = new FITemplate('footer'); 25$template = new FITemplate('footer');
26 26
27if (isset($extraSidebars))
28{
29 $template->adds_block('EXTRA', array('SIDEBARS' => $extraSidebars));
30}
31
32if (isset($onFourm)) 27if (isset($onFourm))
33{ 28{
34 $template->adds_block('ONFOURM',array('exi'=>1)); 29 $template->adds_block('ONFOURM',array('exi'=>1));
35} 30}
36 31
37if (!isset($noRightbar)) 32$getcomments = "SELECT * FROM comments ORDER BY id DESC LIMIT 0,5";
33$getcomments2 = mysql_query($getcomments);
34$i=0;
35while ($getcomments3[$i] = mysql_fetch_array($getcomments2))
38{ 36{
39 $template->adds_block('RIGHTBAR',array('exi'=>1)); 37 if ($getcomments3[$i]['is_anon'] == 0)
40 38 {
41 if (!isset($noHatNav)) 39 $getuser = "SELECT * FROM phpbb_users WHERE user_id = " . $getcomments3[$i]['user_id'];
42 { 40 $getuser2 = mysql_query($getuser);
43 $cnthatnav = "SELECT COUNT(*) FROM hatnav WHERE category = \"" . $pageCategory . "\""; 41 $getuser3 = mysql_fetch_array($getuser2);
44 $cnthatnav2 = mysql_query($cnthatnav);
45 $cnthatnav3 = mysql_fetch_array($cnthatnav2);
46 42
47 if ($cnthatnav3['COUNT(*)'] > 0) 43 $username = $getuser3['username'];
44 $website = $getuser3['user_website'];
45 } else if ($getcomments3[$i]['is_anon'] == 1)
48 { 46 {
49 $template->adds_block('USEHATNAV', array('exi'=>1)); 47 $getanon = "SELECT * FROM anon_commenters WHERE id = " . $getcomments3[$i]['user_id'];
50 if (!isset($genHatNav)) 48 $getanon2 = mysql_query($getanon);
51 { 49 $getanon3 = mysql_fetch_array($getanon2);
52 $gethnis = 'SELECT * FROM hatnav WHERE category = "' . $pageCategory . '"'; 50
53 $gethnis2 = mysql_query($gethnis); 51 if ($getanon3['id'] == $getcomments3[$i]['user_id'])
54 $i=0;
55 while ($gethnis3[$i] = mysql_fetch_array($gethnis2))
56 {
57 $template->adds_block('HATNAV', array( 'AID' => $gethnis3[$i]['AID'],
58 'HREF' => $gethnis3[$i]['href'],
59 'IMAGE' => '/theme/images/icons/' . $gethnis3[$i]['image'] . '.png',
60 'TEXT' => $gethnis3[$i]['text'],
61 'NEW' => dispIfNotOld($gethnis3[$i]['lastEdit'])));
62 $i++;
63 }
64 } else {
65 $i=0;
66 while ($i < $genHatNavNum)
67 { 52 {
68 $template->adds_block('HATNAV', array( 'AID' => 'post', 53 $username = $getanon3['username'] . ' (Guest)';
69 'HREF' => $genHatNav[$i]['href'], 54 $website = $getanon3['website'];
70 'IMAGE' => '/theme/images/blue.PNG',
71 'TEXT' => $genHatNav[$i]['text'],
72 'NEW' => ''));
73 $i++;
74 } 55 }
75 }
76 } 56 }
77 }
78 57
79 include('pages/polloftheweek.php'); 58 if (strpos($getcomments3[$i]['page_id'], 'updates') !== FALSE)
80
81 $getpopular = "SELECT * FROM updates ORDER BY popularity DESC LIMIT 0,5";
82 $getpopular2 = mysql_query($getpopular);
83 $i=0;
84 while ($getpopular3[$i] = mysql_fetch_array($getpopular2))
85 { 59 {
86 $template->adds_block('POPULAR', array( 'CODED' => $getpopular3[$i]['slug'], 60 $getpost = "SELECT * FROM updates WHERE id = " . substr($getcomments3[$i]['page_id'],strpos($getcomments3[$i]['page_id'],'-')+1);
87 'TITLE' => stripslashes($getpopular3[$i]['title']))); 61 $getpost2 = mysql_query($getpost);
62 $getpost3 = mysql_fetch_array($getpost2);
63
64 $template->adds_block('COMMENTS', array( 'ID' => $getcomments3[$i]['id'],
65 'AREA' => 'blog',
66 'CODED' => $getpost3['slug'],
67 'ENDING' => '/',
68 'TITLE' => stripslashes($getpost3['title']),
69 'AUTHOR' => (($website != '') ? '<a href="' . $website . '">' . $username . '</a>' : $username)));
88 $i++; 70 $i++;
89 } 71 } else if (strpos($getcomments3[$i]['page_id'], 'quote') !== FALSE)
90
91 $getcomments = "SELECT * FROM comments ORDER BY id DESC LIMIT 0,5";
92 $getcomments2 = mysql_query($getcomments);
93 $i=0;
94 while ($getcomments3[$i] = mysql_fetch_array($getcomments2))
95 { 72 {
96 if ($getcomments3[$i]['is_anon'] == 0) 73 $num = substr($getcomments3[$i]['page_id'],strpos($getcomments3[$i]['page_id'],'-')+1);
97 { 74
98 $getuser = "SELECT * FROM phpbb_users WHERE user_id = " . $getcomments3[$i]['user_id']; 75 $template->adds_block('COMMENTS', array( 'ID' => $getcomments3[$i]['id'],
99 $getuser2 = mysql_query($getuser); 76 'AREA' => 'quotes',
100 $getuser3 = mysql_fetch_array($getuser2); 77 'CODED' => $num,
101 78 'ENDING' => '.php',
102 $username = $getuser3['username']; 79 'TITLE' => 'Quote #' . $num,
103 $website = $getuser3['user_website']; 80 'AUTHOR' => (($website != '') ? '<a href="' . $website . '">' . $username . '</a>' : $username)));
104 } else if ($getcomments3[$i]['is_anon'] == 1) 81 $i++;
105 { 82 } else if (strpos($getcomments3[$i]['page_id'], 'polloftheweek') !== FALSE)
106 $getanon = "SELECT * FROM anon_commenters WHERE id = " . $getcomments3[$i]['user_id'];
107 $getanon2 = mysql_query($getanon);
108 $getanon3 = mysql_fetch_array($getanon2);
109
110 if ($getanon3['id'] == $getcomments3[$i]['user_id'])
111 {
112 $username = $getanon3['username'] . ' (Guest)';
113 $website = $getanon3['website'];
114 }
115 }
116
117 if (strpos($getcomments3[$i]['page_id'], 'updates') !== FALSE)
118 {
119 $getpost = "SELECT * FROM updates WHERE id = " . substr($getcomments3[$i]['page_id'],strpos($getcomments3[$i]['page_id'],'-')+1);
120 $getpost2 = mysql_query($getpost);
121 $getpost3 = mysql_fetch_array($getpost2);
122
123 $template->adds_block('COMMENTS', array( 'ID' => $getcomments3[$i]['id'],
124 'AREA' => 'blog',
125 'CODED' => $getpost3['slug'],
126 'ENDING' => '/',
127 'TITLE' => stripslashes($getpost3['title']),
128 'AUTHOR' => (($website != '') ? '<A HREF="' . $website . '">' . $username . '</A>' : $username)));
129 $i++;
130 } else if (strpos($getcomments3[$i]['page_id'], 'quote') !== FALSE)
131 {
132 $num = substr($getcomments3[$i]['page_id'],strpos($getcomments3[$i]['page_id'],'-')+1);
133
134 $template->adds_block('COMMENTS', array( 'ID' => $getcomments3[$i]['id'],
135 'AREA' => 'quotes',
136 'CODED' => $num,
137 'ENDING' => '.php',
138 'TITLE' => 'Quote #' . $num,
139 'AUTHOR' => (($website != '') ? '<A HREF="' . $website . '">' . $username . '</A>' : $username)));
140 $i++;
141 } else if (strpos($getcomments3[$i]['page_id'], 'polloftheweek') !== FALSE)
142 {
143 $getpotw = "SELECT * FROM polloftheweek WHERE id = " . substr($getcomments3[$i]['page_id'],strpos($getcomments3[$i]['page_id'],'-')+1);
144 $getpotw2 = mysql_query($getpotw);
145 $getpotw3 = mysql_fetch_array($getpotw2);
146
147 $template->adds_block('COMMENTS', array( 'ID' => $getcomments3[$i]['id'],
148 'AREA' => 'poll',
149 'CODED' => $getpotw3['id'],
150 'ENDING' => '.php',
151 'TITLE' => 'Poll "' . $getpotw3['question'] . '"',
152 'AUTHOR' => (($website != '') ? '<A HREF="' . $website . '">' . $username . '</A>' : $username)));
153 $i++;
154 }
155 }
156
157 $users = array();
158 $getusers = "SELECT DISTINCT user_id FROM comments WHERE is_anon = 0";
159 $getusers2 = mysql_query($getusers);
160 $i=0;
161 while ($getusers3[$i] = mysql_fetch_array($getusers2))
162 { 83 {
163 $getcount = "SELECT COUNT(*) FROM comments WHERE user_id = " . $getusers3[$i]['user_id']; 84 $getpotw = "SELECT * FROM polloftheweek WHERE id = " . substr($getcomments3[$i]['page_id'],strpos($getcomments3[$i]['page_id'],'-')+1);
164 $getcount2 = mysql_query($getcount); 85 $getpotw2 = mysql_query($getpotw);
165 $getcount3 = mysql_fetch_array($getcount2); 86 $getpotw3 = mysql_fetch_array($getpotw2);
166 87
167 $getuser = "SELECT * FROM phpbb_users WHERE user_id = " . $getusers3[$i]['user_id']; 88 $template->adds_block('COMMENTS', array( 'ID' => $getcomments3[$i]['id'],
168 $getuser2 = mysql_query($getuser); 89 'AREA' => 'poll',
169 $getuser3 = mysql_fetch_array($getuser2); 90 'CODED' => $getpotw3['id'],
170 91 'ENDING' => '.php',
171 $username = $getuser3['username']; 92 'TITLE' => 'Poll "' . $getpotw3['question'] . '"',
172 $website = $getuser3['user_website']; 93 'AUTHOR' => (($website != '') ? '<a href="' . $website . '">' . $username . '</a>' : $username)));
173 94 $i++;
174 $name = (($website != '') ? '<A HREF="' . $website . '">' . $username . '</A>' : $username);
175 $users[] = array('name' => $name, 'count' => $getcount3['COUNT(*)']);
176
177 $i++;
178 } 95 }
96}
179 97
180 function count_sort($a, $b) 98$users = array();
181 { 99$getusers = "SELECT DISTINCT user_id FROM comments WHERE is_anon = 0";
182 $a = $a['count']; 100$getusers2 = mysql_query($getusers);
183 $b = $b['count']; 101$i=0;
102while ($getusers3[$i] = mysql_fetch_array($getusers2))
103{
104 $getcount = "SELECT COUNT(*) FROM comments WHERE user_id = " . $getusers3[$i]['user_id'];
105 $getcount2 = mysql_query($getcount);
106 $getcount3 = mysql_fetch_array($getcount2);
184 107
185 if ($a > $b) 108 $getuser = "SELECT * FROM phpbb_users WHERE user_id = " . $getusers3[$i]['user_id'];
186 { 109 $getuser2 = mysql_query($getuser);
187 return -1; 110 $getuser3 = mysql_fetch_array($getuser2);
188 } else if ($a < $b)
189 {
190 return 1;
191 } else {
192 return 0;
193 }
194 }
195 111
196 usort($users, 'count_sort'); 112 $username = $getuser3['username'];
197 $i=0; 113 $website = $getuser3['user_website'];
198 foreach ($users as $value)
199 {
200 if ($i == 5)
201 {
202 break;
203 }
204 114
205 $template->adds_block('TOP', array( 'USERNAME' => $value['name'], 115 $name = (($website != '') ? '<a href="' . $website . '">' . $username . '</a>' : $username);
206 'COUNT' => $value['count'])); 116 $users[] = array('name' => $name, 'count' => $getcount3['COUNT(*)']);
207 $i++;
208 }
209 117
210 $gethits = "SELECT * FROM config WHERE name = \"hits\""; 118 $i++;
211 $gethits2 = mysql_query($gethits); 119}
212 $gethits3 = mysql_fetch_array($gethits2);
213 $template->add('HITS', $gethits3['value']);
214 120
215 $gethits = "SELECT * FROM config WHERE name = \"todayHits\""; 121function count_sort($a, $b)
216 $gethits2 = mysql_query($gethits); 122{
217 $gethits3 = mysql_fetch_array($gethits2); 123 $a = $a['count'];
218 $template->add('TODAY', $gethits3['value']); 124 $b = $b['count'];
219 125
220 $getpost = "SELECT * FROM phpbb_posts ORDER BY post_id DESC LIMIT 0,5"; 126 if ($a > $b)
221 $getpost2 = mysql_query($getpost) or die($getpost);
222 $i=0;
223 while ($getpost3[$i] = mysql_fetch_array($getpost2))
224 { 127 {
225 $getuser = "SELECT * FROM phpbb_users WHERE user_id = " . $getpost3[$i]['poster_id']; 128 return -1;
226 $getuser2 = mysql_query($getuser) or die($getuser); 129 } else if ($a < $b)
227 $getuser3 = mysql_fetch_array($getuser2); 130 {
228 131 return 1;
229 $template->adds_block('FOURM', array( 'SUBJECT' => $getpost3[$i]['post_subject'], 132 } else {
230 'TOPIC' => $getpost3[$i]['topic_id'], 133 return 0;
231 'POST' => $getpost3[$i]['post_id'],
232 'USERNAME' => $getuser3['username']));
233 } 134 }
135}
234 136
235 $gettags = "SELECT DISTINCT tag FROM tags WHERE post_type = \"published\""; 137usort($users, 'count_sort');
236 $gettags2 = mysql_query($gettags); 138$i=0;
237 $i=0; 139foreach ($users as $value)
238 while ($gettags3[$i] = mysql_fetch_array($gettags2)) 140{
141 if ($i == 5)
239 { 142 {
240 $cnttag = "SELECT COUNT(*) FROM tags WHERE tag = \"" . $gettags3[$i]['tag'] . "\" AND post_type = \"published\""; 143 break;
241 $cnttag2 = mysql_query($cnttag); 144 }
242 $cnttag3 = mysql_fetch_array($cnttag2);
243 145
244 $counts[$gettags3[$i]['tag']] = $cnttag3[0]; 146 $template->adds_block('TOP', array( 'USERNAME' => $value['name'],
147 'COUNT' => $value['count']));
148 $i++;
149}
245 150
246 $i++; 151$getpost = "SELECT * FROM phpbb_posts ORDER BY post_id DESC LIMIT 0,5";
247 } 152$getpost2 = mysql_query($getpost) or die($getpost);
153$i=0;
154while ($getpost3[$i] = mysql_fetch_array($getpost2))
155{
156 $getuser = "SELECT * FROM phpbb_users WHERE user_id = " . $getpost3[$i]['poster_id'];
157 $getuser2 = mysql_query($getuser) or die($getuser);
158 $getuser3 = mysql_fetch_array($getuser2);
159
160 $template->adds_block('FOURM', array( 'SUBJECT' => $getpost3[$i]['post_subject'],
161 'TOPIC' => $getpost3[$i]['topic_id'],
162 'POST' => $getpost3[$i]['post_id'],
163 'USERNAME' => $getuser3['username']));
164}
248 165
249 $min_count = min($counts); 166$getpopular = "SELECT * FROM updates ORDER BY popularity DESC LIMIT 0,5";
250 $spread = max($counts) - $min_count; 167$getpopular2 = mysql_query($getpopular);
251 $spread = ($spread <= 0) ? 1 : $spread; 168$i=0;
252 $font_step = 8 / $spread; 169while ($getpopular3[$i] = mysql_fetch_array($getpopular2))
253 foreach ($counts as $tag => $count) 170{
254 { 171 $template->adds_block('POPULAR', array( 'CODED' => $getpopular3[$i]['slug'],
255 if ($count != $min_count) 172 'TITLE' => stripslashes($getpopular3[$i]['title'])));
256 { 173 $i++;
257 $template->adds_block('TAGCLOUD', array( 'TAG' => $tag,
258 'SIZE' => (8 + (($count - $min_count) * $font_step)),
259 'COUNT' => $count));
260 }
261 }
262} 174}
263 175
264$template->add('REVISION', exec('hg tip --template {rev}')); 176$template->add('REVISION', exec('hg -R "' . $_SERVER['DOCUMENT_ROOT'] . '" tip --template {rev}'));
265 177
266$template->display(); 178$template->display();
267 179
diff --git a/includes/functions.php b/includes/functions.php index 9eb1634..090e9d0 100755 --- a/includes/functions.php +++ b/includes/functions.php
@@ -272,7 +272,7 @@ function displayRelated($title, $avoid = 0)
272 $template->adds_block('POST', array( 'TITLE' => $getrelated3[$i]['title'], 272 $template->adds_block('POST', array( 'TITLE' => $getrelated3[$i]['title'],
273 'CODED' => $getrelated3[$i]['slug'], 273 'CODED' => $getrelated3[$i]['slug'],
274 'AUTHOR' => $getrelated3[$i]['author'], 274 'AUTHOR' => $getrelated3[$i]['author'],
275 'DATE' => date('F d<\S\U\P>S</\S\U\P> Y',strtotime($getrelated3[$i]['pubDate'])))); 275 'DATE' => date('F jS Y',strtotime($getrelated3[$i]['pubDate']))));
276 $i++; 276 $i++;
277 } 277 }
278 278
@@ -304,4 +304,50 @@ function getCommentUrl($getcomment3)
304 } 304 }
305} 305}
306 306
307function getPollOfTheWeek($id = -1)
308{
309 static $showed_form = false;
310
311 $potw = new FITemplate('polloftheweek');
312
313 if ($id == -1)
314 {
315 $getpoll = "SELECT * FROM polloftheweek ORDER BY id DESC LIMIT 0,1";
316 } else {
317 $getpoll = "SELECT * FROM polloftheweek WHERE id = " . $id;
318 }
319 $getpoll2 = mysql_query($getpoll);
320 $getpoll3 = mysql_fetch_array($getpoll2);
321
322 $potw->add('QUESTION', $getpoll3['question']);
323 $potw->add('OPTION1', $getpoll3['option1']);
324 $potw->add('OPTION2', $getpoll3['option2']);
325 $potw->add('OPTION3', $getpoll3['option3']);
326 $potw->add('OPTION4', $getpoll3['option4']);
327
328 $getip = "SELECT * FROM didpollalready WHERE ip = \"" . $_SERVER['REMOTE_ADDR'] . "\"";
329 $getip2 = mysql_query($getip);
330 $getip3 = mysql_fetch_array($getip2);
331
332 if (($getip3['ip'] != $_SERVER['REMOTE_ADDR']) && ($id == -1) && ($showed_form == false))
333 {
334 $potw->adds_block('FORM',array('exi'=>1));
335 $showed_form = true;
336 } else {
337 $potw->adds_block('DISPLAY',array('exi'=>1));
338
339 $potw->add('PERCENT1', getpercent($getpoll3,'1'));
340 $potw->add('PERCENT2', getpercent($getpoll3,'2'));
341 $potw->add('PERCENT3', getpercent($getpoll3,'3'));
342 $potw->add('PERCENT4', getpercent($getpoll3,'4'));
343 }
344
345 ob_start();
346 $potw->display();
347 $result = ob_get_contents();
348 ob_end_clean();
349
350 return $result;
351}
352
307?> 353?>
diff --git a/includes/header.php b/includes/header.php index 427ad93..5a6b8e2 100755 --- a/includes/header.php +++ b/includes/header.php
@@ -24,31 +24,10 @@ require('headerproc.php');
24 24
25$headerTemp = new FITemplate('header'); 25$headerTemp = new FITemplate('header');
26 26
27if (!isset($_GET['emulateTime']))
28{
29 if ((date('G') >= 20) || (date('G') <= 6))
30 {
31 $bodyID = 'night';
32 } else {
33 $bodyID = 'day';
34 }
35} else {
36 $bodyID = $_GET['emulateTime'];
37}
38
39$headerTemp->add('BODYID',$bodyID);
40$headerTemp->add('CATEGORY',(isset($pageCategory)) ? $pageCategory : 'none'); 27$headerTemp->add('CATEGORY',(isset($pageCategory)) ? $pageCategory : 'none');
41$headerTemp->add('AID',(isset($pageAID)) ? $pageAID : 'none'); 28$headerTemp->add('AID',(isset($pageAID)) ? $pageAID : 'none');
42$headerTemp->add('BODYTAGS',(isset($bodyTags)) ? $bodyTags : '');
43$headerTemp->add('HEADTAGS',isset($headtags) ? $headtags : '');
44$headerTemp->add('EXTRATITLE',isset($title) ? ($title . ' - ') : ''); 29$headerTemp->add('EXTRATITLE',isset($title) ? ($title . ' - ') : '');
45$headerTemp->add('PAGEID',(isset($pageID)) ? $pageID : 'none'); 30$headerTemp->add(strtoupper($pageCategory) . 'ACTIVE', ' class="active"');
46$headerTemp->add(strtoupper($pageCategory) . 'ACTIVE', ' CLASS="active"');
47
48if (isset($_POST['message']))
49{
50 $headerTemp->adds_block('MESSAGE',array('MSG' => $_POST['message']));
51}
52 31
53if (($pageCategory != 'fourm') && ($pageCategory != 'wiki')) 32if (($pageCategory != 'fourm') && ($pageCategory != 'wiki'))
54{ 33{
@@ -63,6 +42,30 @@ if (($pageCategory != 'fourm') && ($pageCategory != 'wiki'))
63 } 42 }
64} 43}
65 44
45if (isset($hatNav) && is_array($hatNav))
46{
47 $headerTemp->adds_block('CREATE_HATNAV', array('exi'=>1));
48
49 foreach ($hatNav as $item)
50 {
51 $headerTemp->adds_block('HATNAV',array('TITLE' => $item['title'], 'URL' => $item['url'], 'ICON' => $item['icon']));
52 }
53}
54
55$headerTemp->add('POTW', getPollOfTheWeek());
56
57$gethits = "SELECT * FROM config WHERE name = \"hits\"";
58$gethits2 = mysql_query($gethits);
59$gethits3 = mysql_fetch_array($gethits2);
60$headerTemp->add('HITS', $gethits3['value']);
61
62$gethits = "SELECT * FROM config WHERE name = \"todayHits\"";
63$gethits2 = mysql_query($gethits);
64$gethits3 = mysql_fetch_array($gethits2);
65$headerTemp->add('TODAY', $gethits3['value']);
66
67$headerTemp->add('DATEFINDER', sd_dateFinder());
68
66$headerTemp->display(); 69$headerTemp->display();
67 70
68?> 71?>
diff --git a/includes/smilies.php b/includes/smilies.php index e7579a6..fbadc57 100755 --- a/includes/smilies.php +++ b/includes/smilies.php
@@ -45,7 +45,7 @@ class Smilies
45 45
46 foreach ($this->smilies as $name => $value) 46 foreach ($this->smilies as $name => $value)
47 { 47 {
48 $text = str_replace($name, '<IMG SRC="http://fourisland.com/theme/images/smilies/' . $value . '" ALT="' . $name . '">', $text); 48 $text = str_replace($name, '<img src="http://fourisland.com/theme/images/smilies/' . $value . '" alt="' . $name . '" />', $text);
49 } 49 }
50 50
51 return $text; 51 return $text;
diff --git a/includes/specialdates.php b/includes/specialdates.php index 4c774a7..067de6d 100755 --- a/includes/specialdates.php +++ b/includes/specialdates.php
@@ -48,10 +48,10 @@ sd_solar_annual('WCA Day',5,5); //DateFinder
48sd_lunar_annual('Mothers Day',5,7,2); //BG Pic; DateFinder; Header Pic 48sd_lunar_annual('Mothers Day',5,7,2); //BG Pic; DateFinder; Header Pic
49sd_lunar_annual('Memorial Day',5,1,4); //BG Pic; DateFinder; Header Pic 49sd_lunar_annual('Memorial Day',5,1,4); //BG Pic; DateFinder; Header Pic
50sd_easter(); //BG Pic; DateFinder 50sd_easter(); //BG Pic; DateFinder
51sd_solar_annual('Hatkirbys B-Day',6,7); //BG Pic; DateFinder; Header Pic
52sd_solar_annual('Flag Day',6,14); //BG Pic; DateFinder 51sd_solar_annual('Flag Day',6,14); //BG Pic; DateFinder
52sd_solar_annual('Hatkirbys B-Day',6,17); //BG Pic; DateFinder; Header Pic
53sd_lunar_annual('Fathers Day',6,7,3); //BG Pic; DateFinder 53sd_lunar_annual('Fathers Day',6,7,3); //BG Pic; DateFinder
54sd_solar_annual('CTNH',6,17); //Header Pic 54sd_solar_annual('CTNH',6,17); //Header Pic; DateFinder
55sd_solar_annual('Independance Day',7,4); //BG Pic; DateFinder 55sd_solar_annual('Independance Day',7,4); //BG Pic; DateFinder
56sd_lunar_annual('SysAdminDay',7,5,4); //DateFinder 56sd_lunar_annual('SysAdminDay',7,5,4); //DateFinder
57sd_lunar_annual('Labor Day',9,1,1); //Yet to be implemented 57sd_lunar_annual('Labor Day',9,1,1); //Yet to be implemented
@@ -308,4 +308,52 @@ function sd_addDateIn($id,$dateid)
308 $specialdates[$dateid] = $id; 308 $specialdates[$dateid] = $id;
309} 309}
310 310
311function sd_dateFinder()
312{
313 if (sd_ifNoSpecialDay())
314 {
315 $did = sd_getMonthStart(date('n')-1);
316 $did += (date('j')-1);
317 $did = sd_findNextDay() - $did;
318 return ($did . ' more days until the next holiday!');
319 } else {
320 switch (sd_getCurrentDay())
321 {
322 case 'New Years Day': return 'Happy new years!';
323 case 'Martin Luther King Day': return 'Happy Martin Luther King Day!';
324 case 'Groundhog Day': return 'It\'s groundhog day? Will he see his shadow?';
325 case 'Presidents Day': return 'Happy President\'s Day!';
326 case 'Valentines Day': return 'Happy Valentines Day! Will you be mine?';
327 case 'St Patricks Day': return 'Happy St. Patrick\'s Day! If you\'re not wearing green, I\'ll pinch you!';
328 case 'Mothers Day': return 'Happy Mothers Day!';
329 case 'Memorial Day': return 'Remember...';
330 case 'Easter': return 'Happy Easter! Where are those eggs?';
331 case 'Mardi Gras': return 'Happy Mardi Gras! Time to get fat!';
332 case 'Ash Wednesday': return 'Happy Ash Wednesday! Did you get your ashes?';
333 case 'Palm Sunday': return 'Happy Palm Sunday!';
334 case 'Holy Thursday': return 'Happy Holy Thursday!';
335 case 'Hatkirbys B-Day': return 'Happy Birthday to me! Happy Birthday to me! Happy Birthday dear Hatkirby! Happy Birthday to me!';
336 case 'Flag Day': return 'Happy Flag Day!';
337 case 'Fathers Day': return 'Happy Fathers Day!';
338 case 'Independance Day': return 'Happy 4th of July!';
339 case 'Labor Day': return 'Happy Labor Day!';
340 case 'Four Island A': return ('Happy birthday Four Island! Four Island is ' . (date('Y')-2007) . ' years old!');
341 case 'Columbus Day': return 'Happy Columbus Day!';
342 case 'Halloween': return 'Happy Halloween!';
343 case 'Veterans Day': return 'Only 2 minutes of silence. Remember... remember...';
344 case 'Thanksgiving': return 'Happy Thanksgiving! Gobble gobble gobble gobble!';
345 case 'Kirby Week': return 'It\'s Kirby Week! Not only is it a time of celebreation and fun on Four Island, it\'s only a week before Christmas!';
346 case 'Christmas Eve': return '"1 Day Left" says Fourie!';
347 case 'Christmas Day': return 'Merry Christmas! Time for presents!';
348 case 'New Years Eve': return '5... 4... 3... 2...';
349 case 'SysAdminDay': return '<A HREF="http://www.sysadminday.com">If you can read this, thank your <I><B>sysadmin</B></I></A>';
350 case 'WCA Day': return '<A HREF="http://wca2001.keenspace.com">Webcomic Appreciation Day!</A> Stare in wonder at all of your favorite webcomics! Like Pillowcase, for instance!';
351 case 'Leap Day': return 'What day is it? LEAP DAY? This only happens once every four years! LET\'S LEAP IN JOY!';
352 case 'Tris CIEday': return 'This is the day that shei came.';
353 case 'Silence Day': return 'Support LGBT people by keeping the silence until 5 PM.';
354 case 'CTNH': return '<A HREF="/fuhsdiufgsadiufgaisfioas.php">It never happened.</A>';
355 }
356 }
357}
358
311?> 359?>
diff --git a/index.php b/index.php index 53edd33..58b66d2 100755 --- a/index.php +++ b/index.php
@@ -20,6 +20,7 @@
20 20
21require('headerproc.php'); 21require('headerproc.php');
22 22
23header('Content-type: application/xhtml+xml');
23header('X-Pingback: http://fourisland.com/xmlrpc.php'); 24header('X-Pingback: http://fourisland.com/xmlrpc.php');
24 25
25include('../security/config.php'); 26include('../security/config.php');
diff --git a/pages/admin.php b/pages/admin.php index 12a2d01..326cbdd 100755 --- a/pages/admin.php +++ b/pages/admin.php
@@ -233,7 +233,7 @@ if (isLoggedIn())
233 $template->adds_block('INTERNAL',array('exi'=>1)); 233 $template->adds_block('INTERNAL',array('exi'=>1));
234 $template->add_ref(0, 'POST', array( 'ID' => $getdraft3['id'], 234 $template->add_ref(0, 'POST', array( 'ID' => $getdraft3['id'],
235 'YEARID' => ((date('Y')-2006) % 4), 235 'YEARID' => ((date('Y')-2006) % 4),
236 'DATE' => date('F dS Y \a\\t g:i:s a'), 236 'DATE' => date('F jS Y \a\\t g:i:s a'),
237 'MONTH' => date('M'), 237 'MONTH' => date('M'),
238 'DAY' => date('d'), 238 'DAY' => date('d'),
239 'CODED' => $getdraft3['slug'], 239 'CODED' => $getdraft3['slug'],
@@ -335,7 +335,7 @@ if (isLoggedIn())
335 $template->adds_block('INTERNAL',array('exi'=>1)); 335 $template->adds_block('INTERNAL',array('exi'=>1));
336 $template->add_ref(0, 'POST', array( 'ID' => $getpending3['id'], 336 $template->add_ref(0, 'POST', array( 'ID' => $getpending3['id'],
337 'YEARID' => ((date('Y')-2006) % 4), 337 'YEARID' => ((date('Y')-2006) % 4),
338 'DATE' => date('F dS Y \a\\t g:i:s a'), 338 'DATE' => date('F jS Y \a\\t g:i:s a'),
339 'MONTH' => date('M'), 339 'MONTH' => date('M'),
340 'DAY' => date('d'), 340 'DAY' => date('d'),
341 'CODED' => $getpending3['slug'], 341 'CODED' => $getpending3['slug'],
@@ -544,7 +544,7 @@ if (isLoggedIn())
544 $template->add('USERNAME', $getcomment3['author']); 544 $template->add('USERNAME', $getcomment3['author']);
545 $template->add('CODEDEMAIL', md5(strtolower($getcomment3['email']))); 545 $template->add('CODEDEMAIL', md5(strtolower($getcomment3['email'])));
546 $template->add('TEXT', parseText($getcomment3['comment'])); 546 $template->add('TEXT', parseText($getcomment3['comment']));
547 $template->add('DATE', date("F dS Y \a\\t g:i:s a",strtotime($getcomment3['pubDate']))); 547 $template->add('DATE', date("F jS Y \a\\t g:i:s a",strtotime($getcomment3['pubDate'])));
548 } else { 548 } else {
549 $template = new FITemplate('msg'); 549 $template = new FITemplate('msg');
550 $template->add('BACK', 'the previous page'); 550 $template->add('BACK', 'the previous page');
@@ -649,8 +649,7 @@ if (isLoggedIn())
649 { 649 {
650 if (isset($_GET['approve'])) 650 if (isset($_GET['approve']))
651 { 651 {
652 $today = mktime(date('G'),date('i'),date('s'),date('m'),date('d'),date('Y')); 652 $insquote = "INSERT INTO rash_quotes (quote,date) VALUES (\"" . mysql_real_escape_string($getpending3['quote']) . "\",\"" . time() . "\")";
653 $insquote = "INSERT INTO rash_quotes (quote,date) VALUES (\"" . mysql_real_escape_string($getpending3['quote']) . "\",\"" . $today . "\")";
654 $insquote2 = mysql_query($insquote); 653 $insquote2 = mysql_query($insquote);
655 654
656 $delpending = "DELETE FROM rash_queue WHERE id = " . $_GET['id']; 655 $delpending = "DELETE FROM rash_queue WHERE id = " . $_GET['id'];
@@ -721,9 +720,9 @@ if (isLoggedIn())
721 $getconfig3 = mysql_fetch_array($getconfig2); 720 $getconfig3 = mysql_fetch_array($getconfig2);
722 if ($getconfig3['value'] == '1') 721 if ($getconfig3['value'] == '1')
723 { 722 {
724 $template->add('ON', ' CHECKED="CHECKED"'); 723 $template->add('ON', ' checked="checked"');
725 } else { 724 } else {
726 $template->add('OFF', ' CHECKED="CHECKED"'); 725 $template->add('OFF', ' checked="checked"');
727 } 726 }
728 } 727 }
729 } else { 728 } else {
diff --git a/pages/blog.php b/pages/blog.php index a03d3b1..c9781ee 100755 --- a/pages/blog.php +++ b/pages/blog.php
@@ -27,7 +27,7 @@ if ((strpos($_SERVER['REQUEST_URI'],'index.php')) && (isset($_GET['post'])))
27 header('Location: /blog/' . $_GET['post'] . '/'); 27 header('Location: /blog/' . $_GET['post'] . '/');
28} 28}
29 29
30$pageCategory = 'home'; 30$pageCategory = 'blog';
31$pageAID = 'archive'; 31$pageAID = 'archive';
32 32
33if (isset($_GET['post'])) 33if (isset($_GET['post']))
@@ -65,7 +65,7 @@ if (isset($_GET['post']))
65 65
66 $template->add_ref(0, 'POST', array( 'ID' => $getpost3['id'], 66 $template->add_ref(0, 'POST', array( 'ID' => $getpost3['id'],
67 'YEARID' => ((date('Y',strtotime($getpost3['pubDate']))-2006) % 4), 67 'YEARID' => ((date('Y',strtotime($getpost3['pubDate']))-2006) % 4),
68 'DATE' => date('F dS Y \a\\t g:i:s a',strtotime($getpost3['pubDate'])), 68 'DATE' => date('F jS Y \a\\t g:i:s a',strtotime($getpost3['pubDate'])),
69 'MONTH' => date('M',strtotime($getpost3['pubDate'])), 69 'MONTH' => date('M',strtotime($getpost3['pubDate'])),
70 'DAY' => date('d',strtotime($getpost3['pubDate'])), 70 'DAY' => date('d',strtotime($getpost3['pubDate'])),
71 'CODED' => $getpost3['slug'], 71 'CODED' => $getpost3['slug'],
@@ -80,6 +80,19 @@ if (isset($_GET['post']))
80 $template->adds_ref_sub(0, 'TAGS', array('TAG' => $tag)); 80 $template->adds_ref_sub(0, 'TAGS', array('TAG' => $tag));
81 } 81 }
82 82
83 $gettrack = "SELECT * FROM tracking WHERE ip = \"" . $_SERVER['REMOTE_ADDR'] . "\"";
84 $gettrack2 = mysql_query($gettrack);
85 $gettrack3 = mysql_fetch_array($gettrack2);
86
87 $trackArr = explode(',',$gettrack3['rating']);
88
89 if (($gettrack3['ip'] != $_SERVER['REMOTE_ADDR']) || (array_search($getpost3['id'],$trackArr) === FALSE))
90 {
91 $template->adds_ref_sub(0, 'CANVOTE', array('exi'=>1));
92 } else {
93 $template->adds_ref_sub(0, 'NOVOTE', array('exi'=>1));
94 }
95
83 $template->display(); 96 $template->display();
84 97
85 $getpings = "SELECT * FROM pingbacks WHERE post_id = " . $getpost3['id']; 98 $getpings = "SELECT * FROM pingbacks WHERE post_id = " . $getpost3['id'];
@@ -93,8 +106,8 @@ if (isset($_GET['post']))
93 } 106 }
94 107
95 $template->adds_block('PINGBACK', array( 'TITLE' => $getpings3[$i]['title'], 108 $template->adds_block('PINGBACK', array( 'TITLE' => $getpings3[$i]['title'],
96 'URL' => $getpings3[$i]['url'], 109 'URL' => htmlspecialchars($getpings3[$i]['url']),
97 'DATE' => date('F d<\S\U\P>S</\S\U\P> Y', strtotime($getpings3[$i]['pubDate'])))); 110 'DATE' => date('F jS Y', strtotime($getpings3[$i]['pubDate']))));
98 $i++; 111 $i++;
99 } 112 }
100 113
@@ -124,7 +137,7 @@ if (isset($_GET['post']))
124 { 137 {
125 $template->adds_block('BIO', array( 'TEXT' => $getbio3['text'], 138 $template->adds_block('BIO', array( 'TEXT' => $getbio3['text'],
126 'USERNAME' => $getbio3['username'], 139 'USERNAME' => $getbio3['username'],
127 'DATE' => date('F dS Y \a\\t g:i:s a',strtotime($getbio3['lastUpdated'])))); 140 'DATE' => date('F jS Y \a\\t g:i:s a',strtotime($getbio3['lastUpdated']))));
128 } 141 }
129 } elseif (isset($_GET['tag'])) 142 } elseif (isset($_GET['tag']))
130 { 143 {
diff --git a/pages/holidates.php b/pages/holidates.php index 29b0ca4..e5d8860 100755 --- a/pages/holidates.php +++ b/pages/holidates.php
@@ -1,10 +1,39 @@
1<TABLE WIDTH="100%" CLASS="webmail"><TR><TH>ID</TH><TH>Date</TH><TH>Holidate</TH></TR><?php 1<?php
2/*
3 444444444
4 4::::::::4
5 4:::::::::4
6 4::::44::::4
7 4::::4 4::::4 Four Island
8 4::::4 4::::4
9 4::::4 4::::4 Written and maintained by Starla Insigna
104::::444444::::444
114::::::::::::::::4 header.inc
124444444444:::::444
13 4::::4 Please do not use, reproduce or steal the
14 4::::4 contents of this file without explicit
15 4::::4 permission from Hatkirby.
16 44::::::44
17 4::::::::4
18 4444444444
19*/
20
21if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);}
22
23require('headerproc.php');
24
25$template = new FITemplate('holidates');
2 26
3foreach ($specialdates as $num => $val) 27foreach ($specialdates as $num => $val)
4{ 28{
5 $date = sd_clearDate(); 29 $date = sd_clearDate();
6 $date += ($num*60*60*24); 30 $date += ($num*60*60*24);
7 echo('<TR' . (($num % 2 == 0) ? ' CLASS="even"' : '') . '><TD>' . $num . '</TD><TD>' . date('F jS',$date) . '</TD><TD>' . $val . '</TD></TR>'); 31 $template->adds_block('DATE', array( 'EVEN' => (($num % 2 == 0) ? ' CLASS="even"' : ''),
32 'NUM' => $num,
33 'DATE' => date('F jS', $date),
34 'TEXT' => $val));
8} 35}
9 36
10?></TABLE> 37$template->display();
38
39?>
diff --git a/pages/poll-results.php b/pages/poll-results.php new file mode 100644 index 0000000..e829e53 --- /dev/null +++ b/pages/poll-results.php
@@ -0,0 +1,54 @@
1<?php
2/*
3 444444444
4 4::::::::4
5 4:::::::::4
6 4::::44::::4
7 4::::4 4::::4 Four Island
8 4::::4 4::::4
9 4::::4 4::::4 Written and maintained by Starla Insigna
104::::444444::::444
114::::::::::::::::4 pages/poll-results.php
124444444444:::::444
13 4::::4 Please do not use, reproduce or steal the
14 4::::4 contents of this file without explicit
15 4::::4 permission from Hatkirby.
16 44::::::44
17 4::::::::4
18 4444444444
19*/
20
21if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);}
22
23require('headerproc.php');
24
25if ((isset($_GET['id'])) && (is_numeric($_GET['id'])) && ($_GET['id'] >= 1) && ($_GET['id'] <= 4))
26{
27 if (isLoggedIn())
28 {
29 $getip = "SELECT * FROM didpollalready WHERE ip = \"" . $_SERVER['REMOTE_ADDR'] . "\"";
30 $getip2 = mysql_query($getip);
31 $getip3 = mysql_fetch_array($getip2);
32
33 if ($getip3['ip'] != $_SERVER['REMOTE_ADDR'])
34 {
35 $setip = "INSERT INTO didpollalready SET ip = \"" . $_SERVER['REMOTE_ADDR'] . "\"";
36 $setip2 = mysql_query($setip);
37 $getpoll = "SELECT * FROM polloftheweek ORDER BY id DESC LIMIT 0,1";
38 $getpoll2 = mysql_query($getpoll);
39 $getpoll3 = mysql_fetch_array($getpoll2);
40 $setpoll = "UPDATE polloftheweek SET clicks" . $_GET['id'] . " = " . ($getpoll3['clicks' . $_GET['id']]+1) . " WHERE id = " . $getpoll3['id'];
41 $setpoll2 = mysql_query($setpoll);
42
43 die(getPollOfTheWeek());
44 } else {
45 generateError('404');
46 }
47 } else {
48 generateError('404');
49 }
50} else {
51 generateError('404');
52}
53
54?>
diff --git a/pages/poll.php b/pages/poll.php index d9cce70..6582d90 100755 --- a/pages/poll.php +++ b/pages/poll.php
@@ -24,22 +24,7 @@ require('headerproc.php');
24 24
25$pageCategory = 'poll'; 25$pageCategory = 'poll';
26 26
27if (isset($_GET['submit'])) 27if (!isset($_GET['id']))
28{
29 $setip = "INSERT INTO didpollalready SET ip = \"" . $_SERVER['REMOTE_ADDR'] . "\"";
30 $setip2 = mysql_query($setip);
31 $getpoll = "SELECT * FROM polloftheweek ORDER BY id DESC LIMIT 0,1";
32 $getpoll2 = mysql_query($getpoll);
33 $getpoll3 = mysql_fetch_array($getpoll2);
34 $setpoll = "UPDATE polloftheweek SET clicks" . $_POST['options'] . " = " . ($getpoll3['clicks' . $_POST['options']]+1) . " WHERE id = " . $getpoll3['id'];
35 $setpoll2 = mysql_query($setpoll);
36
37 $template = new FITemplate('msg');
38
39 $template->add('MSG','<H2>' . $getpoll3['question'] . '</H2><P>Thank you for voting on the Poll of the Week!<BR><A HREF="poll.php?id=' . $getpoll3['id'] . '">Click here to visit the page for this poll.');
40
41 $template->display();
42} else if (!isset($_GET['id']))
43{ 28{
44 $template = new FITemplate('pollIndex'); 29 $template = new FITemplate('pollIndex');
45 30
@@ -70,7 +55,7 @@ if (isset($_GET['submit']))
70 $template->adds_block('POLL', array( 'ID' => $getpolls3[$i]['id'], 55 $template->adds_block('POLL', array( 'ID' => $getpolls3[$i]['id'],
71 'QUESTION' => $question, 56 'QUESTION' => $question,
72 'WEEK' => date('F jS Y', strtotime($getpolls3[$i]['week'])), 57 'WEEK' => date('F jS Y', strtotime($getpolls3[$i]['week'])),
73 'EVEN' => (($i % 2 == 1) ? ' CLASS="even"' : ''))); 58 'EVEN' => (($i % 2 == 1) ? ' class="even"' : '')));
74 $i++; 59 $i++;
75 } 60 }
76 61
@@ -94,8 +79,7 @@ if (isset($_GET['submit']))
94 $template->adds_block('NEXT', array('ID' => ($start+1))); 79 $template->adds_block('NEXT', array('ID' => ($start+1)));
95 } 80 }
96 81
97 include('pages/polloftheweek.php'); 82 $template->add('POTW', getPollOfTheWeek());
98
99 $template->display(); 83 $template->display();
100} else { 84} else {
101 $template = new FITemplate('poll'); 85 $template = new FITemplate('poll');
@@ -114,7 +98,7 @@ if (isset($_GET['submit']))
114 { 98 {
115 $template->adds_block('COMPLETE', array( 'RSS' => parseText($getrss3['rss']), 99 $template->adds_block('COMPLETE', array( 'RSS' => parseText($getrss3['rss']),
116 'AUTHOR' => $getrss3['author'], 100 'AUTHOR' => $getrss3['author'],
117 'DATE' => date("F dS Y \a\\t g:i:s a",strtotime($getrss3['date'])), 101 'DATE' => date("F jS Y \a\\t g:i:s a",strtotime($getrss3['date'])),
118 'OPTION1' => $getpoll3['option1'], 102 'OPTION1' => $getpoll3['option1'],
119 'OPTION2' => $getpoll3['option2'], 103 'OPTION2' => $getpoll3['option2'],
120 'OPTION3' => $getpoll3['option3'], 104 'OPTION3' => $getpoll3['option3'],
@@ -127,10 +111,7 @@ if (isset($_GET['submit']))
127 $template->adds_block('INCOMPLETE', array('exi'=>1)); 111 $template->adds_block('INCOMPLETE', array('exi'=>1));
128 } 112 }
129 113
130 $forceDisplay = $_GET['id']; 114 $template->add('POTW', getPollOfTheWeek($_GET['id']));
131 include('pages/polloftheweek.php');
132 unset($forceDisplay);
133
134 $template->display(); 115 $template->display();
135 116
136 $page_id = 'polloftheweek-' . $getpoll3['id']; 117 $page_id = 'polloftheweek-' . $getpoll3['id'];
diff --git a/pages/post.php b/pages/post.php index 87413e8..121435a 100755 --- a/pages/post.php +++ b/pages/post.php
@@ -22,74 +22,79 @@ if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);}
22 22
23require('headerproc.php'); 23require('headerproc.php');
24 24
25$pageCategory = 'home';
26$pageAID = 'archive';
27
28include('includes/recaptchalib.php'); 25include('includes/recaptchalib.php');
29$privatekey = "6LfgvgEAAAAAAD0_UVLp57MU7tqcypsbZPS9qTnr"; 26$privatekey = "6LfgvgEAAAAAAD0_UVLp57MU7tqcypsbZPS9qTnr";
30 27
31$template = new FITemplate('msg'); 28if (!isset($_POST['id']))
32$template->add('BACK','the previous page');
33
34if (!isset($_GET['id']))
35{ 29{
36 $template->add('MSG','I\'m sorry, but there\'s no page-id set here, so sadly you can\'t comment yet. Why not contact the administratior (link on the HatBar) and tell her that you saw this error?'); 30 generateError('404');
37} else { 31} else {
38 if ($_POST['comment'] == "") 32 if ($_POST['comment'] == "")
39 { 33 {
40 $template->add('MSG','I\'m sorry, but you didn\'t enter a comment!'); 34 die('I\'m sorry, but you didn\'t enter a comment!');
41 } else { 35 } else {
42 if (!isLoggedIn()) 36 if (!isLoggedIn())
43 { 37 {
44 $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); 38 if ($_POST['username'] == "")
45 if (!$resp->is_valid)
46 { 39 {
47 $template->add('MSG',"The reCAPTCHA wasn't entered correctly. Go back and try it again. (reCAPTCHA said: " . $resp->error . ")"); 40 die('You forgot to enter a username.');
48 } else { 41 } else {
49 if (preg_match('/^[A-Za-z0-9!#$&\'*+-\/=?^_`{|}~]+@[-A-Za-z0-9]+(\.[-A-Za-z0-9]+)+[A-Za-z]$/', $_POST['email'])) 42 if (preg_match('/^[A-Za-z0-9!#$&\'*+-\/=?^_`{|}~]+@[-A-Za-z0-9]+(\.[-A-Za-z0-9]+)+[A-Za-z]$/', $_POST['email']))
50 { 43 {
51 $getanon = "SELECT * FROM anon_commenters WHERE username = \"" . $_POST['username'] . "\""; 44 $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]);
52 $getanon2 = mysql_query($getanon); 45 if (!$resp->is_valid)
53 $getanon3 = mysql_fetch_array($getanon2);
54
55 if ($getanon3['username'] == $_POST['username'])
56 { 46 {
57 if ($getanon3['email'] == $_POST['email']) 47 die('The reCAPTCHA wasn\'t entered correctly. Go back and try it again.');
58 { 48 } else {
59 $setcomment = "INSERT INTO comments SET page_id = \"" . $_GET['id'] . "\", user_id = " . $getanon3['id'] . ", comment = \"" . $_POST['comment'] . "\", is_anon = 1"; 49 $getanon = "SELECT * FROM anon_commenters WHERE username = \"" . $_POST['username'] . "\"";
60 $setcomment2 = mysql_query($setcomment); 50 $getanon2 = mysql_query($getanon);
51 $getanon3 = mysql_fetch_array($getanon2);
61 52
62 $page_id = $_GET['id']; 53 if ($getanon3['username'] == $_POST['username'])
63 $comType = substr($page_id,0,strpos($page_id,'-')); 54 {
64 $comID = substr($page_id,strpos($page_id,'-')+1); 55 if ($getanon3['email'] == $_POST['email'])
65 if ($comType == 'updates')
66 { 56 {
67 recalcPop($comID); 57 $setcomment = "INSERT INTO comments SET page_id = \"" . $_POST['id'] . "\", user_id = " . $getanon3['id'] . ", comment = \"" . $_POST['comment'] . "\", is_anon = 1";
58 $setcomment2 = mysql_query($setcomment);
59 $cid = mysql_insert_id();
60
61 $page_id = $_POST['id'];
62 $comType = substr($page_id,0,strpos($page_id,'-'));
63 $comID = substr($page_id,strpos($page_id,'-')+1);
64 if ($comType == 'updates')
65 {
66 recalcPop($comID);
67 }
68
69 $template = new FITemplate('new-comment');
70 $template->add('ID', $cid);
71 $template->add('CODEDEMAIL', md5(strtolower($getanon3['email'])));
72 $template->add('TEXT', stripslashes($_POST['comment']));
73 $template->add('USERNAME', $getanon3['username']);
74 $template->add('DATE', date("F jS Y \a\\t g:i:s a"));
75 $template->display();
76
77 exit;
78 } else {
79 die('I\'m sorry, but this anonymous username is already in use. If this is in fact you, please verify that you have entered the same email address that you entered the first time you commented here.');
68 } 80 }
69
70 $template->add('MSG',"Thank you, " . $getanon3['username'] . ", for posting your valuable comment!");
71 } else { 81 } else {
72 $template->add('MSG',"I'm sorry, but this anonymous username is already in use. If this is in fact you, please verify that you have entered the same email address that you entered the first time you commented here."); 82 $setcomment = "INSERT INTO moderation SET page_id = \"" . $_POST['id'] . "\", author = \"" . $_POST['username'] . "\", email = \"" . $_POST['email'] . "\", comment = \"" . $_POST['comment'] . "\", website = \"" . $_POST['website'] . "\"";
73 } 83 $setcomment2 = mysql_query($setcomment);
74 } else {
75 $setcomment = "INSERT INTO moderation SET page_id = \"" . $_GET['id'] . "\", author = \"" . $_POST['username'] . "\", email = \"" . $_POST['email'] . "\", comment = \"" . $_POST['comment'] . "\", website = \"" . $_POST['website'] . "\"";
76 $setcomment2 = mysql_query($setcomment);
77
78 mail('hatkirby@fourisland.com', 'New comment to moderate on Four Island', 'Some one has anonymously left a comment on Four Island and it will require moderation.');
79 84
80 $template->add('MSG',"Thank you for posting your valuable comment!<P>However, as you aren't logged in, your comment will have to be verified by a moderator before it appears. Sorry!"); 85 die('Thank you for posting your valuable comment!<br />However, as you aren\'t logged in, your comment will have to be verified by a moderator before it appears. Sorry!');
86 }
81 } 87 }
82 } else { 88 } else {
83 $template->add('MSG',"I'm sorry, but you've entered an invalid email address."); 89 die('I\'m sorry, but you\'ve entered an invalid email address.');
84 } 90 }
85 } 91 }
86 } else { 92 } else {
87 $setcomment = "INSERT INTO comments SET page_id = \"" . $_GET['id'] . "\", user_id = " . getSessionUserID() . ", comment = \"" . $_POST['comment'] . "\", is_anon = 0"; 93 $setcomment = "INSERT INTO comments SET page_id = \"" . $_POST['id'] . "\", user_id = " . getSessionUserID() . ", comment = \"" . $_POST['comment'] . "\", is_anon = 0";
88 $setcomment2 = mysql_query($setcomment); 94 $setcomment2 = mysql_query($setcomment);
95 $cid = mysql_insert_id();
89 96
90 mail('hatkirby@fourisland.com', 'New comment on Four Island!', getSessionUsername() . ' has posted a comment on Four Island under the "page id" ' . $_GET['id']); 97 $page_id = $_POST['id'];
91
92 $page_id = $_GET['id'];
93 $comType = substr($page_id,0,strpos($page_id,'-')); 98 $comType = substr($page_id,0,strpos($page_id,'-'));
94 $comID = substr($page_id,strpos($page_id,'-')+1); 99 $comID = substr($page_id,strpos($page_id,'-')+1);
95 if ($comType == 'updates') 100 if ($comType == 'updates')
@@ -97,11 +102,21 @@ if (!isset($_GET['id']))
97 recalcPop($comID); 102 recalcPop($comID);
98 } 103 }
99 104
100 $template->add('MSG',"Thank you, " . getSessionUsername() . ", for posting your valuable comment!"); 105 $getuser = "SELECT * FROM phpbb_users WHERE user_id = " . getSessionUserID();
106 $getuser2 = mysql_query($getuser);
107 $getuser3 = mysql_fetch_array($getuser2);
108
109 $template = new FITemplate('new-comment');
110 $template->add('ID', $cid);
111 $template->add('CODEDEMAIL', md5(strtolower($getuser3['user_email'])));
112 $template->add('TEXT', stripslashes($_POST['comment']));
113 $template->add('USERNAME', getSessionUsername());
114 $template->add('DATE', date("F jS Y \a\\t g:i:s a"));
115 $template->display();
116
117 exit;
101 } 118 }
102 } 119 }
103} 120}
104 121
105$template->display();
106
107?> 122?>
diff --git a/pages/quotes.php b/pages/quotes.php index 6db3cb0..4e0332f 100755 --- a/pages/quotes.php +++ b/pages/quotes.php
@@ -24,70 +24,92 @@ require('headerproc.php');
24 24
25$pageCategory = 'quotes'; 25$pageCategory = 'quotes';
26 26
27if (isset($_GET['id'])) 27$hatNav = array( array( 'title' => 'Latest',
28 'url' => 'http://fourisland.com/quotes/latest.php',
29 'icon' => '16-star-hot'
30 ),
31 array( 'title' => 'Best',
32 'url' => 'http://fourisland.com/quotes/top.php',
33 'icon' => 'medal_gold_1'
34 ),
35 array( 'title' => 'Worst',
36 'url' => 'http://fourisland.com/quotes/bottom.php',
37 'icon' => '16-message-warn'
38 ),
39 array( 'title' => 'Browse All',
40 'url' => 'http://fourisland.com/quotes/browse.php',
41 'icon' => '16-file-archive'
42 ),
43 array( 'title' => 'Random',
44 'url' => 'http://fourisland.com/quotes/random.php',
45 'icon' => '16-clock'
46 ),
47 array( 'title' => 'Add',
48 'url' => 'http://fourisland.com/quotes/add.php',
49 'icon' => '16-em-pencil'
50 ),
51 array( 'title' => 'Search',
52 'url' => 'http://fourisland.com/quotes/search.php',
53 'icon' => 'book_open'
54 ));
55
56if (isset($_GET['id']) && is_numeric($_GET['id']))
28{ 57{
29 $quote_num = $_GET['id']; 58 $quote_num = $_GET['id'];
30} 59}
31 60
32if ((!isset($_GET['act'])) || ($_GET['act'] == 'latest')) 61if (isset($_GET['id']) && !(is_numeric($_GET['id'])))
62{
63 generateError('404');
64} else if ((!isset($_GET['act'])) || ($_GET['act'] == 'latest'))
33{ 65{
34 $query = "SELECT id, quote, rating, flag FROM rash_quotes ORDER BY id DESC LIMIT 50"; 66 $query = "SELECT * FROM rash_quotes ORDER BY id DESC LIMIT 50";
35 quote_generation($query, "Latest", -1); 67 quote_generation($query, "Latest", -1);
36} else if ($_GET['act'] == 'add') 68} else if ($_GET['act'] == 'add')
37{ 69{
38 $template = new FITemplate('quotes/add'); 70 $template = new FITemplate('quotes/add');
39 if (isset($_GET['submit'])) 71 if (isset($_GET['submit']))
40 { 72 {
41 $template->adds_block('SUBMITTED',array('QUOTE' => (nl2br(htmlspecialchars($_POST['rash_quote'])) . "\n"))); 73 $template->adds_block('SUBMITTED',array('QUOTE' => str_replace("\n","<br />",htmlentities($_POST['rash_quote']))));
42 if (!isLoggedIn()) 74 if (!isLoggedIn())
43 { 75 {
44 $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'])) . "\")";
45 } else { 77 } else {
46 $today = mktime(date('G'),date('i'),date('s'),date('m'),date('d'),date('Y')); 78 $insquote = "INSERT INTO rash_quotes (quote, rating, flag, date) VALUES (\"" . mysql_real_escape_string($_POST['rash_quote']) . "\", 0, 0, \"" . time() . "\")";
47 $insquote = "INSERT INTO rash_quotes (quote, rating, flag, date) VALUES (\"" . mysql_real_escape_string($_POST['rash_quote']) . "\", 0, 0, \"" . $today . "\")";
48 } 79 }
49 $insquote2 = mysql_query($insquote); 80 $insquote2 = mysql_query($insquote);
50 } 81 }
51 $template->display(); 82 $template->display();
52} elseif ($_GET['act'] == 'bottom') 83} elseif ($_GET['act'] == 'bottom')
53{ 84{
54 $query = "SELECT id, quote, rating, flag FROM rash_quotes WHERE rating < 0 ORDER BY rating ASC LIMIT 50"; 85 $query = "SELECT * FROM rash_quotes WHERE rating < 0 ORDER BY rating ASC LIMIT 50";
55 quote_generation($query, "Bottom", -1); 86 quote_generation($query, "Bottom", -1);
56} elseif ($_GET['act'] == 'browse') 87} elseif ($_GET['act'] == 'browse')
57{ 88{
58 $query = "SELECT id, quote, rating, flag FROM rash_quotes ORDER BY id ASC "; 89 $query = "SELECT * FROM rash_quotes ORDER BY id ASC ";
59 quote_generation($query, "Browse", (isset($_GET['page']) ? $_GET['page'] : 1), 10, 5); 90 quote_generation($query, "Browse", (isset($_GET['page']) ? $_GET['page'] : 1), 10, 5);
60} elseif ($_GET['act'] == 'flag') 91} elseif ($_GET['act'] == 'flag')
61{ 92{
62 $template = new FITemplate('msg'); 93 $getfla = "SELECT * FROM rash_quotes WHERE id = " . $quote_num . " LIMIT 0,1";
63 $tracking_verdict = user_quote_status('flag', $quote_num, $template); 94 $getfla2 = mysql_query($getfla);
64 if ($tracking_verdict < 3) 95 $getfla3 = mysql_fetch_array($getfla2);
96
97 if ($getfla3['flag'] == 2)
65 { 98 {
66 $getfla = "SELECT flag FROM rash_quotes WHERE id = " . $quote_num . " LIMIT 0,1"; 99 die('0');
67 $getfla2 = mysql_query($getfla); 100 } else {
68 $getfla3 = mysql_fetch_array($getfla2); 101 $setfla = "UPDATE rash_quotes SET flag = 1 WHERE id = " . $quote_num;
102 $setfla2 = mysql_query($setfla);
69 103
70 if ($getfla3['flag'] == 2) 104 die('1');
71 {
72 $template->add('MSG',"This quote has been flagged and rechecked by a moderator already.");
73 } elseif ($getfla3['flag'] == 1)
74 {
75 $template->add('MSG',"This quote is currently pending deletion.");
76 } else {
77 $template->add('MSG',"You have marked this quote for deletion.");
78 $setfla = "UPDATE rash_quotes SET flag = 1 WHERE id = " . $quote_num;
79 $setfla2 = mysql_query($setfla);
80 }
81 } 105 }
82 $template->add('BACK','Quote #' . $quote_num);
83 $template->display();
84} elseif ($_GET['act'] == 'random') 106} elseif ($_GET['act'] == 'random')
85{ 107{
86 $query = "SELECT id, quote, rating, flag FROM rash_quotes ORDER BY rand() LIMIT 50"; 108 $query = "SELECT * FROM rash_quotes ORDER BY rand() LIMIT 50";
87 quote_generation($query, "Random", -1); 109 quote_generation($query, "Random", -1);
88} elseif ($_GET['act'] == 'random2') 110} elseif ($_GET['act'] == 'random2')
89{ 111{
90 $query = "SELECT id, quote, rating, flag FROM rash_quotes WHERE rating > 1 ORDER BY rand() LIMIT 50"; 112 $query = "SELECT * FROM rash_quotes WHERE rating > 1 ORDER BY rand() LIMIT 50";
91 quote_generation($query, "Random2", -1); 113 quote_generation($query, "Random2", -1);
92} elseif ($_GET['act'] == 'search') 114} elseif ($_GET['act'] == 'search')
93{ 115{
@@ -99,22 +121,24 @@ if ((!isset($_GET['act'])) || ($_GET['act'] == 'latest'))
99 } else { 121 } else {
100 $how = 'asc'; 122 $how = 'asc';
101 } 123 }
102 $getquotes = "SELECT id, quote, rating, flag FROM rash_quotes WHERE quote LIKE \"%" . $_POST['search'] . "%\" ORDER BY " . $_POST['sortby'] . " " . $how . " LIMIT 0," . $_POST['number']; 124 $getquotes = "SELECT * FROM rash_quotes WHERE quote LIKE \"%" . $_POST['search'] . "%\" ORDER BY " . $_POST['sortby'] . " " . $how . " LIMIT 0," . $_POST['number'];
103 quote_generation($getquotes, "Query Results", -1); 125 quote_generation($getquotes, "Query Results", -1);
104 } 126 }
105 $template = new FITemplate('quotes/search'); 127 $template = new FITemplate('quotes/search');
106 $template->display(); 128 $template->display();
107} elseif ($_GET['act'] == 'top') 129} elseif ($_GET['act'] == 'top')
108{ 130{
109 $query = "SELECT id, quote, rating, flag FROM rash_quotes WHERE rating > 0 ORDER BY rating DESC LIMIT 50"; 131 $query = "SELECT * FROM rash_quotes WHERE rating > 0 ORDER BY rating DESC LIMIT 50";
110 quote_generation($query, "Top", -1); 132 quote_generation($query, "Top", -1);
111} elseif ($_GET['act'] == 'vote') 133} elseif ($_GET['act'] == 'vote')
112{ 134{
113 $template = new FITemplate('msg'); 135 $gettrack = "SELECT * FROM rash_tracking WHERE ip = \"" . $_SERVER['REMOTE_ADDR'] . "\"";
114 $tracking_verdict = user_quote_status('vote', $quote_num,$template); 136 $gettrack2 = mysql_query($gettrack);
115 $template->add('BACK','Quote #' . $quote_num); 137 $gettrack3 = mysql_fetch_array($gettrack2);
116 $template->display(); 138
117 if ($tracking_verdict < 3) 139 $trackArr = explode(',',$gettrack3['vote']);
140
141 if (($gettrack3['ip'] != $_SERVER['REMOTE_ADDR']) || (array_search($quote_num,$trackArr) === FALSE))
118 { 142 {
119 if ($_GET['dir'] == "plus") 143 if ($_GET['dir'] == "plus")
120 { 144 {
@@ -125,18 +149,32 @@ if ((!isset($_GET['act'])) || ($_GET['act'] == 'latest'))
125 $setquote = "UPDATE rash_quotes SET rating = rating-1 WHERE id = " . $quote_num; 149 $setquote = "UPDATE rash_quotes SET rating = rating-1 WHERE id = " . $quote_num;
126 $setquote2 = mysql_query($setquote); 150 $setquote2 = mysql_query($setquote);
127 } 151 }
128 }
129} else {
130 if ((is_int($_GET['act']) || ($_GET['act'] != false)) && (verify_int($_GET['act'])))
131 {
132 $query = "SELECT id, quote, rating, flag FROM rash_quotes WHERE id = " . $_GET['act'];
133 quote_generation($query, "#" . $_GET['act'], -1);
134 152
135 $page_id = 'quote-' . $_GET['act']; 153 if ($gettrack3['ip'] == $_SERVER['REMOTE_ADDR'])
136 include('includes/comments.php'); 154 {
155 $settrack = "UPDATE rash_tracking SET vote = \"" . $gettrack3['vote'] . "," . $quote_num . "\" WHERE id = " . $gettrack3['id'];
156 } else {
157 $settrack = "INSERT INTO tracking (ip,vote) VALUES (\"" . $_SERVER['REMOTE_ADDR'] . "\",\"" . $quote_num . "\")";
158 }
159 $settrack2 = mysql_query($settrack) or die($settrack);
160
161 $getquote = "SELECT * FROM rash_quotes WHERE id = " . $quote_num;
162 $getquote2 = mysql_query($getquote);
163 $getquote3 = mysql_fetch_array($getquote2);
164
165 die($getquote3['rating']);
137 } else { 166 } else {
138 generateError('404'); 167 die;
139 } 168 }
169} else if (is_numeric($_GET['act']))
170{
171 $query = "SELECT * FROM rash_quotes WHERE id = " . $_GET['act'];
172 quote_generation($query, "#" . $_GET['act'], -1);
173
174 $page_id = 'quote-' . $_GET['act'];
175 include('includes/comments.php');
176} else {
177 generateError('404');
140} 178}
141 179
142function quote_generation($query, $origin, $page = 1, $quote_limit = 50, $page_limit = 10) 180function quote_generation($query, $origin, $page = 1, $quote_limit = 50, $page_limit = 10)
@@ -152,13 +190,56 @@ function quote_generation($query, $origin, $page = 1, $quote_limit = 50, $page_l
152 } 190 }
153 $template->add('ORIGIN',$origin); 191 $template->add('ORIGIN',$origin);
154 192
193 $gettrack = "SELECT * FROM rash_tracking WHERE ip = \"" . $_SERVER['REMOTE_ADDR'] . "\"";
194 $gettrack2 = mysql_query($gettrack);
195 $gettrack3 = mysql_fetch_array($gettrack2);
196
197 $trackArr = explode(',',$gettrack3['vote']);
198
155 $getquotes2 = mysql_query($query); 199 $getquotes2 = mysql_query($query);
156 $i=0; 200 $i=0;
157 while ($getquotes3[$i] = mysql_fetch_array($getquotes2)) 201 while ($getquotes3[$i] = mysql_fetch_array($getquotes2))
158 { 202 {
159 $template->adds_block('QUOTES',array( 'NUMBER' => $getquotes3[$i]['id'], 203 if (!isset($curID))
160 'RATING' => $getquotes3[$i]['rating'], 204 {
161 'QUOTE' => parseSmilies(str_replace("\n","<BR>",stripslashes($getquotes3[$i]['quote']))))); 205 $curID = 0;
206 } else {
207 $curID++;
208 }
209
210 $cntcomments = "SELECT COUNT(*) FROM comments WHERE page_id = \"quote-" . $getquotes3[$i]['id'] . "\"";
211 $cntcomments2 = mysql_query($cntcomments);
212 $cntcomments3 = mysql_fetch_array($cntcomments2);
213
214 if ($cntcomments3['COUNT(*)'] == 0)
215 {
216 $comments = '';
217 } else if ($cntcomments3['COUNT(*)'] == 1)
218 {
219 $comments = '1 Comment';
220 } else {
221 $comments = $cntcomments3['COUNT(*)'] . ' Comments';
222 }
223
224 $template->add_ref($curID,'QUOTES',array( 'NUMBER' => $getquotes3[$i]['id'],
225 'RATING' => $getquotes3[$i]['rating'],
226 'DATE' => ($getquotes3[$i]['date'] != 0 ? date('F jS Y \a\\t g:i:s a', $getquotes3[$i]['date']) : ''),
227 'QUOTE' => str_replace("\n","<br />",htmlentities(stripslashes($getquotes3[$i]['quote']))),
228 'COMMENTS' => $comments));
229
230 if (($gettrack3['ip'] != $_SERVER['REMOTE_ADDR']) || (array_search($getquotes3[$i]['id'],$trackArr) === FALSE))
231 {
232 $template->adds_ref_sub($curID, 'CANVOTE', array('exi'=>1));
233 } else {
234 $template->adds_ref_sub($curID, 'NOVOTE', array('exi'=>1));
235 }
236
237 if ($getquotes3[$i]['flag'] == 0)
238 {
239 $template->adds_ref_sub($curID, 'CANFLAG', array('exi'=>1));
240 } else {
241 $template->adds_ref_sub($curID, 'NOFLAG', array('exi'=>1));
242 }
162 243
163 $i++; 244 $i++;
164 } 245 }
@@ -170,7 +251,7 @@ function page_numbers($template, $origin, $quote_limit, $page_default, $page_lim
170{ 251{
171 $numrows = countRows('rash_quotes'); 252 $numrows = countRows('rash_quotes');
172 $testrows = $numrows; 253 $testrows = $numrows;
173 $pagenum = (($testrows + 1) / ($quote_limit > 0 ? $quote_limit : 1)); 254 $pagenum = floor(($testrows + 1) / ($quote_limit > 0 ? $quote_limit : 1));
174 255
175 if (($page_limit % 2)) 256 if (($page_limit % 2))
176 { 257 {
@@ -227,86 +308,4 @@ function page_numbers($template, $origin, $quote_limit, $page_default, $page_lim
227 $template->add('LASTPAGE',$pagenum); 308 $template->add('LASTPAGE',$pagenum);
228} 309}
229 310
230function user_quote_status($where, $quote_num, $template)
231{
232 $tracking_verdict = ip_track($where, $quote_num);
233 if ($where != 'flag')
234 {
235 switch ($tracking_verdict)
236 {
237 case 1:
238 $template->add('TRACKING',"Quote has been modified, and data of your action has been recorded in the database.");
239 break;
240 case 2:
241 $template->add('TRACKING',"Quote has been modified, your IP has been logged, and data of your action has been recorded in the database.");
242 break;
243 case 3:
244 $template->add('TRACKING',"You have already voted on this quote, please try again later.");
245 break;
246 }
247 }
248 return $tracking_verdict;
249}
250
251function ip_track($where, $quote_num)
252{
253 switch ($where)
254 {
255 case 'flag':
256 $where2 = 'vote';
257 break;
258 case 'vote':
259 $where2 = 'flag';
260 break;
261 }
262
263 $getip = "SELECT * FROM rash_tracking WHERE ip = \"" . $_SERVER['REMOTE_ADDR'] . "\"";
264 $getip2 = mysql_query($getip);
265 $getip3 = mysql_fetch_array($getip2);
266
267 if ($getip3['ip'] == $_SERVER['REMOTE_ADDR'])
268 {
269 $quote_array = explode(",", $getip3['quote_id']);
270 $quote_place = array_search($quote_num, $quote_array);
271 if (in_array($quote_num, $quote_array))
272 {
273 $where_result = explode(",", $getip3[$where]);
274 if (!isset($where_result[$quote_place]))
275 {
276 $where_result[$quote_place] = 1;
277 $where_result = implode(",", $where_result);
278 $setip = "UPDATE rash_tracking SET " . $where . " = \"" . $where_result . "\" WHERE ip = \"" . $_SERVER['REMOTE_ADDR'] . "\"";
279 $setip2 = mysql_query($getip);
280 return 1;
281 } else {
282 return 3;
283 }
284 } else {
285 $setip = "UPDATE rash_tracking SET " . $where . " = CONCAT(" . $where . ",\",1\"), " . $where2 . " = CONCAT(" . $where2 . ",\",0\"), quote_id = CONCAT(quote_id,\"," . $quote_num . "\") WHERE ip = \"" . $_SERVER['REMOTE_ADDR'] . "\"";
286 $setip2 = mysql_query($setip);
287 return 1;
288 }
289 } else {
290 $insip = "INSERT INTO rash_tracking (ip, quote_id, " . $where . ", " . $where2 . ") VALUES (\"" . $_SERVER['REMOTE_ADDR'] . "\", \"" . $quote_num . "\", 1, 0)";
291 $insip2 = mysql_query($insip);
292 return 2;
293 }
294}
295
296function verify_int($subject)
297{
298 $ymax = strlen($subject);
299 $y = 0;
300 while($y < $ymax)
301 {
302 if ((is_int((int)($subject{$y})) && (int)($subject{$y})) || (int)($subject{$y}) === 0 )
303 {
304 $y++;
305 } else {
306 return false;
307 }
308 }
309 return true;
310}
311
312?> 311?>
diff --git a/pages/vote.php b/pages/vote.php index 667b5c9..339bbf9 100755 --- a/pages/vote.php +++ b/pages/vote.php
@@ -22,46 +22,34 @@ if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);}
22 22
23require('headerproc.php'); 23require('headerproc.php');
24 24
25$pageCategory = 'home';
26$pageAID = 'archive';
27
28$getpost = "SELECT * FROM updates WHERE id = " . $_GET['id']; 25$getpost = "SELECT * FROM updates WHERE id = " . $_GET['id'];
29$getpost2 = mysql_query($getpost); 26$getpost2 = mysql_query($getpost);
30$getpost3 = mysql_fetch_array($getpost2); 27$getpost3 = mysql_fetch_array($getpost2);
31 28
32if ($getpost3['id'] == $_GET['id']) 29if ($getpost3['id'] == $_GET['id'])
33{ 30{
34 $template = new FITemplate('msg2');
35 $template->add('BACK','Back to ' . stripslashes($getpost3['title']));
36 $template->add('LINK','/blog/' . $getpost3['slug'] . '/');
37
38 if ($_GET['dir'] == 'plus') 31 if ($_GET['dir'] == 'plus')
39 { 32 {
40 if (updatePop($_GET['id'],'rating')) 33 $add = 1;
41 {
42 $template->add('MSG','Thank you for voting!');
43 } else {
44 $template->add('MSG','I\'m sorry, but you\'ve already voted on this post.');
45 }
46 } else if ($_GET['dir'] == 'minus') 34 } else if ($_GET['dir'] == 'minus')
47 { 35 {
48 if (updatePop($_GET['id'],'rating',-1)) 36 $add = -1;
49 { 37 } else {
50 $template->add('MSG','Thank you for voting!'); 38 die;
51 } else { 39 }
52 $template->add('MSG','I\'m sorry, but you\'ve already voted on this post.'); 40
53 } 41 if (updatePop($_GET['id'],'rating',$add))
42 {
43 $getpost = "SELECT * FROM updates WHERE id = " . $_GET['id'];
44 $getpost2 = mysql_query($getpost);
45 $getpost3 = mysql_fetch_array($getpost2);
46
47 die($getpost3['rating']);
54 } else { 48 } else {
55 $template = new FITemplate('msg'); 49 die;
56 $template->add('BACK','the previous page');
57 $template->add('MSG','Um, what on earth are you doing?');
58 } 50 }
59} else { 51} else {
60 $template = new FITemplate('msg'); 52 generateError('404');
61 $template->add('BACK','the previous page');
62 $template->add('MSG','Um, what on earth are you doing?');
63} 53}
64 54
65$template->display();
66
67?> 55?>
diff --git a/pages/welcome.php b/pages/welcome.php index e224c8e..26f9938 100755 --- a/pages/welcome.php +++ b/pages/welcome.php
@@ -22,13 +22,24 @@ if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);}
22 22
23require('headerproc.php'); 23require('headerproc.php');
24 24
25$pageCategory = 'home'; 25$pageCategory = 'blog';
26
27$hatNav = array( array( 'title' => 'Archive',
28 'url' => 'http://fourisland.com/blog/',
29 'icon' => '16-file-archive'));
30
26 31
27$template = new FITemplate('post'); 32$template = new FITemplate('post');
28$template->adds_block('EXTERNAL',array('exi'=>1)); 33$template->adds_block('EXTERNAL',array('exi'=>1));
29 34
30$curID = 0; 35$curID = 0;
31 36
37$gettrack = "SELECT * FROM tracking WHERE ip = \"" . $_SERVER['REMOTE_ADDR'] . "\"";
38$gettrack2 = mysql_query($gettrack);
39$gettrack3 = mysql_fetch_array($gettrack2);
40
41$trackArr = explode(',',$gettrack3['rating']);
42
32$getpost = "SELECT * FROM updates ORDER BY id DESC LIMIT 0,4"; 43$getpost = "SELECT * FROM updates ORDER BY id DESC LIMIT 0,4";
33$getpost2 = mysql_query($getpost); 44$getpost2 = mysql_query($getpost);
34while ($getpost3 = mysql_fetch_array($getpost2)) 45while ($getpost3 = mysql_fetch_array($getpost2))
@@ -59,7 +70,7 @@ while ($getpost3 = mysql_fetch_array($getpost2))
59 70
60 $template->add_ref($curID, 'POST', array( 'ID' => $getpost3['id'], 71 $template->add_ref($curID, 'POST', array( 'ID' => $getpost3['id'],
61 'YEARID' => ((date('Y',strtotime($getpost3['pubDate']))-2006) % 4), 72 'YEARID' => ((date('Y',strtotime($getpost3['pubDate']))-2006) % 4),
62 'DATE' => date('F dS Y \a\\t g:i:s a',strtotime($getpost3['pubDate'])), 73 'DATE' => date('F jS Y \a\\t g:i:s a',strtotime($getpost3['pubDate'])),
63 'MONTH' => date('M',strtotime($getpost3['pubDate'])), 74 'MONTH' => date('M',strtotime($getpost3['pubDate'])),
64 'DAY' => date('d',strtotime($getpost3['pubDate'])), 75 'DAY' => date('d',strtotime($getpost3['pubDate'])),
65 'CODED' => $getpost3['slug'], 76 'CODED' => $getpost3['slug'],
@@ -76,6 +87,13 @@ while ($getpost3 = mysql_fetch_array($getpost2))
76 $template->adds_ref_sub($curID, 'TAGS', array('TAG' => $tag)); 87 $template->adds_ref_sub($curID, 'TAGS', array('TAG' => $tag));
77 } 88 }
78 89
90 if (($gettrack3['ip'] != $_SERVER['REMOTE_ADDR']) || (array_search($getpost3['id'],$trackArr) === FALSE))
91 {
92 $template->adds_ref_sub($curID, 'CANVOTE', array('exi'=>1));
93 } else {
94 $template->adds_ref_sub($curID, 'NOVOTE', array('exi'=>1));
95 }
96
79 $curID++; 97 $curID++;
80} 98}
81 99
diff --git a/theme/addresses.tpl b/theme/addresses.tpl index 5b06a7a..6912405 100755 --- a/theme/addresses.tpl +++ b/theme/addresses.tpl
@@ -1,9 +1,9 @@
1<P>Click <A HREF="http://hackles.org/spam">here</A> for information about this page.</P> 1<p class="light-at-night">Click <a href="http://hackles.org/spam">here</a> for information about this page.</p>
2 2
3<H2>Calling all email-harvesting robots!</H2> 3<h2 class="light-at-night">Calling all email-harvesting robots!</h2>
4 4
5<P>Come fetch 1000 juicy email addresses here:</P> 5<p class="light-at-night">Come fetch 1000 juicy email addresses here:</p>
6 6
7<!--BEGIN ADDRESS--> 7<!--BEGIN ADDRESS-->
8<A HREF="mailto:<!--ADDRESS.ADDY-->"><!--ADDRESS.ADDY--></A><BR> 8<a href="mailto:<!--ADDRESS.ADDY-->"><!--ADDRESS.ADDY--></a><br />
9<!--END ADDRESS--> 9<!--END ADDRESS-->
diff --git a/theme/admin/deleteDraft.tpl b/theme/admin/deleteDraft.tpl index 346604e..0b37a97 100755 --- a/theme/admin/deleteDraft.tpl +++ b/theme/admin/deleteDraft.tpl
@@ -1,6 +1,6 @@
1<H2>Delete a Draft</H2><P> 1<h2>Delete a Draft</h2>
2 2
3Are you ABSOLUTELY SURE that you want to delete this draft?<P> 3<p>Are you ABSOLUTELY SURE that you want to delete this draft?</p>
4 4
5<A HREF="/admin/deleteDraft.php?id=<!--ID-->&submit=">Yes</A><BR> 5<p><a href="/admin/deleteDraft.php?id=<!--ID-->&amp;submit=">Yes</a><br />
6<A HREF="javascript:history.back();window.refresh();">Ummm.... actually I'd rather not</A> 6<a href="javascript:history.back();window.refresh();">Ummm.... actually I'd rather not</a></p>
diff --git a/theme/admin/deletePending.tpl b/theme/admin/deletePending.tpl index 03541f2..6a365c1 100755 --- a/theme/admin/deletePending.tpl +++ b/theme/admin/deletePending.tpl
@@ -1,6 +1,6 @@
1<H2>Delete a Pending Post</H2><P> 1<h2>Delete a Pending Post</h2>
2 2
3Are you ABSOLUTELY SURE that you want to delete this pending post?<P> 3<p>Are you ABSOLUTELY SURE that you want to delete this pending post?</p>
4 4
5<A HREF="/admin/deletePending.php?id=<!--ID-->&submit=">Yes</A><BR> 5<p><a href="/admin/deletePending.php?id=<!--ID-->&amp;submit=">Yes</a><br />
6<A HREF="javascript:history.back();window.refresh();">Ummm.... actually I'd rather not</A> 6<a href="javascript:history.back();window.refresh();">Ummm.... actually I'd rather not</a></p>
diff --git a/theme/admin/deletePost.tpl b/theme/admin/deletePost.tpl index 8c08112..c3ef82b 100755 --- a/theme/admin/deletePost.tpl +++ b/theme/admin/deletePost.tpl
@@ -1,6 +1,6 @@
1<H2>Delete a Post</H2><P> 1<h2>Delete a Post</h2>
2 2
3Are you ABSOLUTELY SURE that you want to delete this post?<P> 3<p>Are you ABSOLUTELY SURE that you want to delete this post?</p>
4 4
5<A HREF="/admin/deletePost.php?id=<!--ID-->&submit=">Yes</A><BR> 5<p><a href="/admin/deletePost.php?id=<!--ID-->&amp;submit=">Yes</a><br />
6<A HREF="javascript:history.back();window.refresh();">Ummm.... actually I'd rather not</A> 6<a href="javascript:history.back();window.refresh();">Ummm.... actually I'd rather not</a></p>
diff --git a/theme/admin/deletedDraft.tpl b/theme/admin/deletedDraft.tpl index dd449f6..edd0b55 100755 --- a/theme/admin/deletedDraft.tpl +++ b/theme/admin/deletedDraft.tpl
@@ -1,6 +1,6 @@
1You've just deleted a draft! 1You've just deleted a draft!
2 2
3<UL> 3<ul>
4 <LI><A HREF="/admin/manageDrafts.php">Manage Drafts</A></LI> 4 <li><a href="/admin/manageDrafts.php">Manage Drafts</a></li>
5 <LI><A HREF="/admin/">Return to the Admin Panel</A></LI> 5 <li><a href="/admin/">Return to the Admin Panel</a></li>
6</UL> 6</ul>
diff --git a/theme/admin/deletedPending.tpl b/theme/admin/deletedPending.tpl index 220aa11..71100d6 100755 --- a/theme/admin/deletedPending.tpl +++ b/theme/admin/deletedPending.tpl
@@ -1,6 +1,6 @@
1You've just deleted a pending post! 1You've just deleted a pending post!
2 2
3<UL> 3<ul>
4 <LI><A HREF="/admin/managePending.php">Manage Pending Posts</A></LI> 4 <li><a href="/admin/managePending.php">Manage Pending Posts</a></li>
5 <LI><A HREF="/admin/">Return to the Admin Panel</A></LI> 5 <li><a href="/admin/">Return to the Admin Panel</a></li>
6</UL> 6</ul>
diff --git a/theme/admin/deletedPost.tpl b/theme/admin/deletedPost.tpl index 12cc68a..a1e77ef 100755 --- a/theme/admin/deletedPost.tpl +++ b/theme/admin/deletedPost.tpl
@@ -1,6 +1,6 @@
1You've just deleted a post! 1You've just deleted a post!
2 2
3<UL> 3<ul>
4 <LI><A HREF="/admin/managePosts.php">Manage Posts</A></LI> 4 <li><a href="/admin/managePosts.php">Manage Posts</a></li>
5 <LI><A HREF="/admin/">Return to the Admin Panel</A></LI> 5 <li><a href="/admin/">Return to the Admin Panel</a></li>
6</UL> 6</ul>
diff --git a/theme/admin/draftSuccess.tpl b/theme/admin/draftSuccess.tpl index 7d76d2a..aa0616e 100755 --- a/theme/admin/draftSuccess.tpl +++ b/theme/admin/draftSuccess.tpl
@@ -1,8 +1,8 @@
1Congradulations, you've just made/edited a draft! 1Congradulations, you've just made/edited a draft!
2 2
3<UL> 3<ul>
4 <LI><A HREF="/admin/editDraft.php?id=<!--ID-->">Edit this draft</A></LI> 4 <li><a href="/admin/editDraft.php?id=<!--ID-->">Edit this draft</a></li>
5 <LI><A HREF="/admin/viewDraft.php?id=<!--ID-->">View this draft</A></LI> 5 <li><a href="/admin/viewDraft.php?id=<!--ID-->">View this draft</a></li>
6 <LI><A HREF="/admin/manageDrafts.php">Manage Drafts</A></LI> 6 <li><a href="/admin/manageDrafts.php">Manage Drafts</a></li>
7 <LI><A HREF="/admin/">Return to the Admin Panel</A></LI> 7 <li><a href="/admin/">Return to the Admin Panel</a></li>
8</UL> 8</ul>
diff --git a/theme/admin/editDraft.tpl b/theme/admin/editDraft.tpl index 29c1fea..1431e79 100755 --- a/theme/admin/editDraft.tpl +++ b/theme/admin/editDraft.tpl
@@ -1,14 +1,14 @@
1<H2>Edit a draft</H2><P> 1<h2>Edit a draft</h2>
2 2
3<FORM ACTION="/admin/editDraft.php?id=<!--ID-->&submit=" METHOD="POST"> 3<p><form action="/admin/editDraft.php?id=<!--ID-->&amp;submit=" method="post">
4 Draft Title: <INPUT TYPE="text" NAME="title" VALUE="<!--TITLE-->"><BR> 4 Draft Title: <input type="text" name="title" value="<!--TITLE-->" /><br />
5 <TEXTAREA NAME="text" COLS="80" ROWS="20"><!--TEXT--></TEXTAREA><P> 5 <textarea name="text" cols="80" rows="20"><!--TEXT--></textarea><br />
6 Tags (comma-seperated): <INPUT TYPE="text" NAME="tags" VALUE="<!--TAGS-->"><BR> 6 Tags (comma-seperated): <input type="text" name="tags" value="<!--TAGS-->" /><br />
7 Post Type: <SELECT NAME="type" SIZE="4"> 7 Post Type: <select name="type" size="4">
8 <OPTION VALUE="draft" SELECTED>Draft</OPTION> 8 <option value="draft" selected="selected">Draft</option>
9 <OPTION VALUE="normal">Normal (Article-style) Post</OPTION> 9 <option value="normal">Normal (Article-style) Post</option>
10 <OPTION VALUE="priority">High-Priority Post</OPTION> 10 <option value="priority">High-Priority Post</option>
11 <OPTION VALUE="instant">Instant Post</OPTION> 11 <option value="instant">Instant Post</option>
12 </SELECT><BR> 12 </select><br />
13 <INPUT TYPE="submit" VALUE="Edit draft"> 13 <input type="submit" value="Edit draft" />
14</FORM> 14</form></p>
diff --git a/theme/admin/editPending.tpl b/theme/admin/editPending.tpl index 355e156..47859a5 100755 --- a/theme/admin/editPending.tpl +++ b/theme/admin/editPending.tpl
@@ -1,8 +1,8 @@
1<H2>Edit a pending post</H2><P> 1<h2>Edit a pending post</h2>
2 2
3<FORM ACTION="/admin/editPending.php?id=<!--ID-->&submit=" METHOD="POST"> 3<form action="/admin/editPending.php?id=<!--ID-->&amp;submit=" method="post">
4 Post Title: <INPUT TYPE="text" NAME="title" VALUE="<!--TITLE-->"><BR> 4 Post Title: <input type="text" name="title" value="<!--TITLE-->" /><br />
5 <TEXTAREA NAME="text" COLS="80" ROWS="20"><!--TEXT--></TEXTAREA><P> 5 <textarea name="text" cols="80" rows="20"><!--TEXT--></textarea><br />
6 Tags (comma-seperated): <INPUT TYPE="text" NAME="tags" VALUE="<!--TAGS-->"><BR> 6 Tags (comma-seperated): <input type="text" name="tags" value="<!--TAGS-->" /><br />
7 <INPUT TYPE="submit" VALUE="Edit post"> 7 <input type="submit" value="Edit post" />
8</FORM> 8</form>
diff --git a/theme/admin/editPost.tpl b/theme/admin/editPost.tpl index f7e44e3..99e90a4 100755 --- a/theme/admin/editPost.tpl +++ b/theme/admin/editPost.tpl
@@ -1,8 +1,8 @@
1<H2>Edit a post</H2><P> 1<h2>Edit a post</h2>
2 2
3<FORM ACTION="/admin/editPost.php?id=<!--ID-->&submit=" METHOD="POST"> 3<form action="/admin/editPost.php?id=<!--ID-->&amp;submit=" method="post">
4 Post Title: <INPUT TYPE="text" NAME="title" VALUE="<!--TITLE-->"><BR> 4 Post Title: <input type="text" name="title" value="<!--TITLE-->" /><br />
5 <TEXTAREA NAME="text" COLS="80" ROWS="20"><!--TEXT--></TEXTAREA><P> 5 <textarea name="text" cols="80" rows="20"><!--TEXT--></textarea><br />
6 Tags (comma-seperated): <INPUT TYPE="text" NAME="tags" VALUE="<!--TAGS-->"><BR> 6 Tags (comma-seperated): <input type="text" name="tags" value="<!--TAGS-->" /><br />
7 <INPUT TYPE="submit" VALUE="Edit post"> 7 <input type="submit" value="Edit post" />
8</FORM> 8</form>
diff --git a/theme/admin/index.tpl b/theme/admin/index.tpl index 866c900..4e57dd9 100755 --- a/theme/admin/index.tpl +++ b/theme/admin/index.tpl
@@ -1,32 +1,32 @@
1<H2>Admin Panel</H2><P> 1<h2>Admin Panel</h2><p>
2 2
3Welcome to the ubiquitous administration panel!<P> 3Welcome to the ubiquitous administration panel!</p>
4 4
5<H3>Blog</H3> 5<h3>Blog</h3>
6 6
7<UL> 7<ul>
8 <LI><A HREF="/admin/writePost.php">Write a post</A></LI> 8 <li><a href="/admin/writePost.php">Write a post</a></li>
9 <LI><A HREF="/admin/manageDrafts.php">Manage Drafts</A></LI> 9 <li><a href="/admin/manageDrafts.php">Manage Drafts</a></li>
10 <LI><A HREF="/admin/managePending.php">Manage Pending Posts</A></LI> 10 <li><a href="/admin/managePending.php">Manage Pending Posts</a></li>
11 <LI><A HREF="/admin/managePosts.php">Manage Published Posts</A></LI> 11 <li><a href="/admin/managePosts.php">Manage Published Posts</a></li>
12 <LI><A HREF="/admin/moderateComments.php">Moderate Comments</A></LI> 12 <li><a href="/admin/moderateComments.php">Moderate Comments</a></li>
13</UL> 13</ul>
14 14
15<H3>Poll</H3> 15<h3>Poll</h3>
16 16
17<UL> 17<ul>
18 <LI><A HREF="/admin/pollProcess.php">Weekly Poll Process</A></LI> 18 <li><a href="/admin/pollProcess.php">Weekly Poll Process</a></li>
19</UL> 19</ul>
20 20
21<H3>Quotes</H3> 21<h3>Quotes</h3>
22 22
23<UL> 23<ul>
24 <LI><A HREF="/admin/managePendingQuotes.php">Manage Pending Quotes</A></LI> 24 <li><a href="/admin/managePendingQuotes.php">Manage Pending Quotes</a></li>
25</UL> 25</ul>
26 26
27<H3>Administration</H3> 27<h3>Administration</h3>
28 28
29<UL> 29<ul>
30 <LI><A HREF="/admin/hgUpdate.php">HG Update</A></LI> 30 <li><a href="/admin/hgUpdate.php">HG Update</a></li>
31 <LI><A HREF="/admin/maintenanceMode.php">Maintenance Mode</A></LI> 31 <li><a href="/admin/maintenanceMode.php">Maintenance Mode</a></li>
32</UL> 32</ul>
diff --git a/theme/admin/maintenanceMode.tpl b/theme/admin/maintenanceMode.tpl index 401d0ab..4247a62 100644 --- a/theme/admin/maintenanceMode.tpl +++ b/theme/admin/maintenanceMode.tpl
@@ -1,15 +1,15 @@
1<H2>Maintenance Mode</H2> 1<h2>Maintenance Mode</h2>
2 2
3<P>Here you can enable/disable Maintenance Mode. When Maintenance Mode is enabled, no one can access Four Island except localhost.</P> 3<p>Here you can enable/disable Maintenance Mode. When Maintenance Mode is enabled, no one can access Four Island except localhost.</p>
4 4
5<FORM ACTION="/admin/maintenanceMode.php?submit=" METHOD="POST"> 5<form action="/admin/maintenanceMode.php?submit=" method="post">
6 <CENTER> 6 <center>
7 <INPUT TYPE="radio" NAME="mode" VALUE="on"<!--ON-->>On</INPUT><BR /> 7 <input type="radio" name="mode" value="on"<!--ON--> />On<br />
8 <INPUT TYPE="radio" NAME="mode" VALUE="off"<!--OFF-->>Off</INPUT><BR /> 8 <input type="radio" name="mode" value="off"<!--OFF--> />Off<br />
9 <INPUT TYPE="submit" /> 9 <input type="submit" />
10 </CENTER> 10 </center>
11</FORM> 11</form>
12 12
13<P> 13<p>
14 <A HREF="/admin/">Back to Admin Panel</A> 14 <a href="/admin/">Back to Admin Panel</a>
15</P> 15</p>
diff --git a/theme/admin/manageDrafts.tpl b/theme/admin/manageDrafts.tpl index 8a498ac..142033a 100755 --- a/theme/admin/manageDrafts.tpl +++ b/theme/admin/manageDrafts.tpl
@@ -1,24 +1,24 @@
1<H2>Manage Drafts</H2> 1<h2>Manage Drafts</h2>
2 2
3<TABLE WIDTH="100%" CLASS="webmail"> 3<table width="100%" class="webmail">
4 <TR> 4 <tr>
5 <TH>Draft Title</TH> 5 <th>Draft Title</th>
6 <TH>Draft Author</TH> 6 <th>Draft Author</th>
7 <TH>Actions</TH> 7 <th>Actions</th>
8 </TR> 8 </tr>
9 9
10 <!--BEGIN DRAFT--> 10 <!--BEGIN DRAFT-->
11 <TR> 11 <tr>
12 <TD><!--DRAFT.TITLE--></TD> 12 <td><!--DRAFT.TITLE--></td>
13 <TD><!--DRAFT.AUTHOR--></TD> 13 <td><!--DRAFT.AUTHOR--></td>
14 14
15 <TD> 15 <td>
16 <A HREF="/admin/editDraft.php?id=<!--DRAFT.ID-->"><IMG SRC="/theme/images/icons/page_edit.png" ALT="Edit"></A> 16 <a href="/admin/editDraft.php?id=<!--DRAFT.ID-->"><img src="/theme/images/icons/page_edit.png" alt="Edit" /></a>
17 <A HREF="/admin/deleteDraft.php?id=<!--DRAFT.ID-->"><IMG SRC="/theme/images/icons/page_delete.png" ALT="Delete"></A> 17 <a href="/admin/deleteDraft.php?id=<!--DRAFT.ID-->"><img src="/theme/images/icons/page_delete.png" alt="Delete" /></a>
18 <A HREF="/admin/viewDraft.php?id=<!--DRAFT.ID-->"><IMG SRC="/theme/images/icons/page_go.png" ALT="View"></A> 18 <a href="/admin/viewDraft.php?id=<!--DRAFT.ID-->"><img src="/theme/images/icons/page_go.png" alt="View" /></a>
19 </TD> 19 </td>
20 </TR> 20 </tr>
21 <!--END DRAFT--> 21 <!--END DRAFT-->
22</TABLE> 22</table>
23 23
24<A HREF="/admin/">Back to Admin Panel</A> 24<a href="/admin/">Back to Admin Panel</a>
diff --git a/theme/admin/managePending.tpl b/theme/admin/managePending.tpl index 8cce14c..6c98bf8 100755 --- a/theme/admin/managePending.tpl +++ b/theme/admin/managePending.tpl
@@ -1,26 +1,26 @@
1<H2>Manage Pending</H2> 1<h2>Manage Pending</h2>
2 2
3<TABLE WIDTH="100%" CLASS="webmail"> 3<table width="100%" class="webmail">
4 <TR> 4 <tr>
5 <TH>Pending Post Title</TH> 5 <th>Pending Post Title</th>
6 <TH>Pending Post Author</TH> 6 <th>Pending Post Author</th>
7 <TH>Actions</TH> 7 <th>Actions</th>
8 </TR> 8 </tr>
9 9
10 <!--BEGIN PENDING--> 10 <!--BEGIN PENDING-->
11 <TR> 11 <tr>
12 <TD><!--PENDING.TITLE--></TD> 12 <td><!--PENDING.TITLE--></td>
13 <TD><!--PENDING.AUTHOR--></TD> 13 <td><!--PENDING.AUTHOR--></td>
14 14
15 <TD> 15 <td>
16 <A HREF="/admin/editPending.php?id=<!--PENDING.ID-->"><IMG SRC="/theme/images/icons/page_edit.png" ALT="Edit"></A> 16 <a href="/admin/editPending.php?id=<!--PENDING.ID-->"><img src="/theme/images/icons/page_edit.png" alt="Edit" /></a>
17 <A HREF="/admin/deletePending.php?id=<!--PENDING.ID-->"><IMG SRC="/theme/images/icons/page_delete.png" ALT="Delete"></A> 17 <a href="/admin/deletePending.php?id=<!--PENDING.ID-->"><img src="/theme/images/icons/page_delete.png" alt="Delete" /></a>
18 <A HREF="/admin/viewPending.php?id=<!--PENDING.ID-->"><IMG SRC="/theme/images/icons/page_go.png" ALT="View"></A> 18 <a href="/admin/viewPending.php?id=<!--PENDING.ID-->"><img src="/theme/images/icons/page_go.png" alt="View" /></a>
19 <A HREF="/admin/movePending.php?id=<!--PENDING.ID-->&amp;dir=up"><IMG SRC="/theme/images/icons/thumb_up.png" ALT="Move Up"></A> 19 <a href="/admin/movePending.php?id=<!--PENDING.ID-->&amp;dir=up"><img src="/theme/images/icons/thumb_up.png" alt="Move Up" /></a>
20 <A HREF="/admin/movePending.php?id=<!--PENDING.ID-->&amp;dir=down"><IMG SRC="/theme/images/icons/thumb_down.png" ALT="Move Down"></A> 20 <a href="/admin/movePending.php?id=<!--PENDING.ID-->&amp;dir=down"><img src="/theme/images/icons/thumb_down.png" alt="Move Down" /></a>
21 </TD> 21 </td>
22 </TR> 22 </tr>
23 <!--END PENDING--> 23 <!--END PENDING-->
24</TABLE> 24</table>
25 25
26<A HREF="/admin/">Back to Admin Panel</A> 26<a href="/admin/">Back to Admin Panel</a>
diff --git a/theme/admin/managePendingQuotes.tpl b/theme/admin/managePendingQuotes.tpl index 2d4a108..e993aae 100755 --- a/theme/admin/managePendingQuotes.tpl +++ b/theme/admin/managePendingQuotes.tpl
@@ -1,21 +1,21 @@
1<H2>Manage Pending Quotes</H2> 1<h2>Manage Pending Quotes</h2>
2 2
3<TABLE WIDTH="100%" CLASS="webmail"> 3<table width="100%" class="webmail">
4 <TR> 4 <tr>
5 <TH>Quote</TH> 5 <th>Quote</th>
6 <TH>Actions</TH> 6 <th>Actions</th>
7 </TR> 7 </tr>
8 8
9 <!--BEGIN QUOTE--> 9 <!--BEGIN QUOTE-->
10 <TR CLASS="<!--QUOTE.EVEN-->"> 10 <tr class="<!--QUOTE.EVEN-->">
11 <TD><!--QUOTE.TEXT--></TD> 11 <td><!--QUOTE.TEXT--></td>
12 12
13 <TD> 13 <td>
14 <A HREF="/admin/actionPendingQuotes.php?id=<!--QUOTE.ID-->&approve"><IMG SRC="/theme/images/icons/page_attach.png" ALT="Approve"></A> 14 <a href="/admin/actionPendingQuotes.php?id=<!--QUOTE.ID-->&amp;approve"><img src="/theme/images/icons/page_attach.png" alt="Approve" /></a>
15 <A HREF="/admin/actionPendingQuotes.php?id=<!--QUOTE.ID-->&deny"><IMG SRC="/theme/images/icons/page_delete.png" ALT="Deny"></A> 15 <a href="/admin/actionPendingQuotes.php?id=<!--QUOTE.ID-->&amp;deny"><img src="/theme/images/icons/page_delete.png" alt="Deny" /></a>
16 </TD> 16 </td>
17 </TR> 17 </tr>
18 <!--END QUOTE--> 18 <!--END QUOTE-->
19</TABLE> 19</table>
20 20
21<A HREF="/admin/">Back to Admin Panel</A> 21<a href="/admin/">Back to Admin Panel</a>
diff --git a/theme/admin/managePosts.tpl b/theme/admin/managePosts.tpl index 7e37b1f..41a2456 100755 --- a/theme/admin/managePosts.tpl +++ b/theme/admin/managePosts.tpl
@@ -1,24 +1,24 @@
1<H2>Manage Posts</H2> 1<h2>Manage Posts</h2>
2 2
3<TABLE WIDTH="100%" CLASS="webmail"> 3<table width="100%" class="webmail">
4 <TR> 4 <tr>
5 <TH>Post Title</TH> 5 <th>Post Title</th>
6 <TH>Post Author</TH> 6 <th>Post Author</th>
7 <TH>Actions</TH> 7 <th>Actions</th>
8 </TR> 8 </tr>
9 9
10 <!--BEGIN POST--> 10 <!--BEGIN POST-->
11 <TR> 11 <tr>
12 <TD><!--POST.TITLE--></TD> 12 <td><!--POST.TITLE--></td>
13 <TD><!--POST.AUTHOR--></TD> 13 <td><!--POST.AUTHOR--></td>
14 14
15 <TD> 15 <td>
16 <A HREF="/admin/editPost.php?id=<!--POST.ID-->"><IMG SRC="/theme/images/icons/page_edit.png" ALT="Edit"></A> 16 <a href="/admin/editPost.php?id=<!--POST.ID-->"><img src="/theme/images/icons/page_edit.png" alt="Edit" /></a>
17 <A HREF="/admin/deletePost.php?id=<!--POST.ID-->"><IMG SRC="/theme/images/icons/page_delete.png" ALT="Delete"></A> 17 <a href="/admin/deletePost.php?id=<!--POST.ID-->"><img src="/theme/images/icons/page_delete.png" alt="Delete" /></a>
18 <A HREF="/blog/<!--POST.CODED-->/"><IMG SRC="/theme/images/icons/page_go.png" ALT="View"></A> 18 <a href="/blog/<!--POST.CODED-->/"><img src="/theme/images/icons/page_go.png" alt="View" /></a>
19 </TD> 19 </td>
20 </TR> 20 </tr>
21 <!--END POST--> 21 <!--END POST-->
22</TABLE> 22</table>
23 23
24<A HREF="/admin/">Back to Admin Panel</A> 24<a href="/admin/">Back to Admin Panel</a>
diff --git a/theme/admin/moderateComments.tpl b/theme/admin/moderateComments.tpl index f3da51c..7b41016 100755 --- a/theme/admin/moderateComments.tpl +++ b/theme/admin/moderateComments.tpl
@@ -1,24 +1,24 @@
1<H2>Moderate Comments</H2> 1<h2>Moderate Comments</h2>
2 2
3<TABLE WIDTH="100%" CLASS="webmail"> 3<table width="100%" class="webmail">
4 <TR> 4 <tr>
5 <TH>Title of Article Commented Upon</TH> 5 <th>Title of Article Commented Upon</th>
6 <TH>Comment Author</TH> 6 <th>Comment Author</th>
7 <TH>Actions</TH> 7 <th>Actions</th>
8 </TR> 8 </tr>
9 9
10 <!--BEGIN COMMENT--> 10 <!--BEGIN COMMENT-->
11 <TR> 11 <tr>
12 <TD><!--COMMENT.TITLE--></TD> 12 <td><!--COMMENT.TITLE--></td>
13 <TD><!--COMMENT.AUTHOR--></TD> 13 <td><!--COMMENT.AUTHOR--></td>
14 14
15 <TD> 15 <td>
16 <A HREF="/admin/viewComment.php?id=<!--COMMENT.ID-->"><IMG SRC="/theme/images/icons/page_go.png" ALT="View"></A> 16 <a href="/admin/viewComment.php?id=<!--COMMENT.ID-->"><img src="/theme/images/icons/page_go.png" alt="View" /></a>
17 <A HREF="/admin/actionComment.php?id=<!--COMMENT.ID-->&approve"><IMG SRC="/theme/images/icons/page_attach.png" ALT="Approve"></A> 17 <a href="/admin/actionComment.php?id=<!--COMMENT.ID-->&amp;approve"><img src="/theme/images/icons/page_attach.png" alt="Approve" /></a>
18 <A HREF="/admin/actionComment.php?id=<!--COMMENT.ID-->&deny"><IMG SRC="/theme/images/icons/page_delete.png" ALT="Deny"></A> 18 <a href="/admin/actionComment.php?id=<!--COMMENT.ID-->&amp;deny"><img src="/theme/images/icons/page_delete.png" alt="Deny" /></a>
19 </TD> 19 </td>
20 </TR> 20 </tr>
21 <!--END COMMENT--> 21 <!--END COMMENT-->
22</TABLE> 22</table>
23 23
24<A HREF="/admin/">Back to Admin Panel</A> 24<a href="/admin/">Back to Admin Panel</a>
diff --git a/theme/admin/newPoll.tpl b/theme/admin/newPoll.tpl index 5f1d2a4..debc8f1 100755 --- a/theme/admin/newPoll.tpl +++ b/theme/admin/newPoll.tpl
@@ -1,10 +1,10 @@
1Congradulations! You've successfully added a Poll RSS. Now it's time to add the new Poll Of The Week:<P> 1Congradulations! You've successfully added a Poll RSS. Now it's time to add the new Poll Of The Week:
2 2
3<FORM ACTION="/admin/pollProcess.php?step=3" METHOD="POST"> 3<form action="/admin/pollProcess.php?step=3" method="post">
4 Question: <INPUT TYPE="text" NAME="question"><BR> 4 Question: <input type="text" name="question" /><br />
5 Option 1: <INPUT TYPE="text" NAME="option1"><BR> 5 Option 1: <input type="text" name="option1" /><br />
6 Option 2: <INPUT TYPE="text" NAME="option2"><BR> 6 Option 2: <input type="text" name="option2" /><br />
7 Option 3: <INPUT TYPE="text" NAME="option3"><BR> 7 Option 3: <input type="text" name="option3" /><br />
8 Option 4: <INPUT TYPE="text" NAME="option4"><BR> 8 Option 4: <input type="text" name="option4" /><br />
9 <INPUT TYPE="submit" VALUE="Create poll"> 9 <input type="submit" value="Create poll" />
10</FORM> 10</form>
diff --git a/theme/admin/pendingSuccess.tpl b/theme/admin/pendingSuccess.tpl index 64adbe6..51b115f 100755 --- a/theme/admin/pendingSuccess.tpl +++ b/theme/admin/pendingSuccess.tpl
@@ -1,8 +1,8 @@
1Congradulations, you've just made/edited a pending post! 1Congradulations, you've just made/edited a pending post!
2 2
3<UL> 3<ul>
4 <LI><A HREF="/admin/editPending.php?id=<!--ID-->">Edit this pending post</A></LI> 4 <li><a href="/admin/editPending.php?id=<!--ID-->">Edit this pending post</a></li>
5 <LI><A HREF="/admin/viewPending.php?id=<!--ID-->">View this pending post</A></LI> 5 <li><a href="/admin/viewPending.php?id=<!--ID-->">View this pending post</a></li>
6 <LI><A HREF="/admin/managePending.php">Manage Pending Posts</A></LI> 6 <li><a href="/admin/managePending.php">Manage Pending Posts</a></li>
7 <LI><A HREF="/admin/">Return to the Admin Panel</A></LI> 7 <li><a href="/admin/">Return to the Admin Panel</a></li>
8</UL> 8</ul>
diff --git a/theme/admin/pollrss.tpl b/theme/admin/pollrss.tpl index 5ea628f..b58ebbb 100755 --- a/theme/admin/pollrss.tpl +++ b/theme/admin/pollrss.tpl
@@ -1,6 +1,6 @@
1<H2>Write a Poll RSS</H2><P> 1<h2>Write a Poll RSS</h2>
2 2
3<FORM ACTION="/admin/pollProcess.php?step=2" METHOD="POST"> 3<form action="/admin/pollProcess.php?step=2" method="POST">
4 <TEXTAREA NAME="text" COLS="80" ROWS="20"></TEXTAREA><P> 4 <textarea name="text" cols="80" rows="20"></textarea><br />
5 <INPUT TYPE="submit" VALUE="Write RSS"> 5 <input type="submit" value="Write RSS" />
6</FORM> 6</form>
diff --git a/theme/admin/postSuccess.tpl b/theme/admin/postSuccess.tpl index 12920fe..0f27964 100755 --- a/theme/admin/postSuccess.tpl +++ b/theme/admin/postSuccess.tpl
@@ -1,8 +1,8 @@
1Congradulations, you've just made/edited a post! 1Congradulations, you've just made/edited a post!
2 2
3<UL> 3<ul>
4 <LI><A HREF="/admin/editPost.php?id=<!--ID-->">Edit this post</A></LI> 4 <li><a href="/admin/editPost.php?id=<!--ID-->">Edit this post</a></li>
5 <LI><A HREF="/blog/<!--CODED-->/">View this post</A></LI> 5 <li><a href="/blog/<!--CODED-->/">View this post</a></li>
6 <LI><A HREF="/admin/managePosts.php">Manage Posts</A></LI> 6 <li><a href="/admin/managePosts.php">Manage Posts</a></li>
7 <LI><A HREF="/admin/">Return to the Admin Panel</A></LI> 7 <li><a href="/admin/">Return to the Admin Panel</a></li>
8</UL> 8</ul>
diff --git a/theme/admin/viewComment.tpl b/theme/admin/viewComment.tpl index ae2ee46..8b52fa0 100755 --- a/theme/admin/viewComment.tpl +++ b/theme/admin/viewComment.tpl
@@ -1,12 +1,12 @@
1<DIV CLASS="bubble"> 1<div class="bubble">
2 <BLOCKQUOTE> 2 <blockquote>
3 <DIV> 3 <div>
4 <IMG SRC="http://www.gravatar.com/avatar/<!--CODEDEMAIL-->?s=32&amp;d=identicon&amp;r=G"> 4 <img src="http://www.gravatar.com/avatar/<!--CODEDEMAIL-->?s=32&amp;d=identicon&amp;r=G" />
5 <!--TEXT--> 5 <!--TEXT-->
6 </DIV> 6 </div>
7 </BLOCKQUOTE> 7 </blockquote>
8 <CITE><STRONG><!--USERNAME--></STRONG> on <!--DATE--></CITE> 8 <cite><strong><!--USERNAME--></strong> on <!--DATE--></cite>
9</DIV><P> 9</div>
10 10
11<A HREF="/admin/moderateComments.php">Back to Comment Moderation</A><BR> 11<p><a href="/admin/moderateComments.php">Back to Comment Moderation</a><br />
12<A HREF="/admin/">Back to Admin Panel</A> 12<a href="/admin/">Back to Admin Panel</a></p>
diff --git a/theme/admin/write.tpl b/theme/admin/write.tpl index 0d8fb24..0371ace 100755 --- a/theme/admin/write.tpl +++ b/theme/admin/write.tpl
@@ -1,14 +1,14 @@
1<H2>Write a post</H2><P> 1<h2>Write a post</h2>
2 2
3<FORM ACTION="/admin/writePost.php?submit=" METHOD="POST"> 3<form action="/admin/writePost.php?submit=" method="post">
4 Post Title: <INPUT TYPE="text" NAME="title"><BR> 4 Post Title: <input type="text" name="title" /><br />
5 <TEXTAREA NAME="text" COLS="80" ROWS="20"></TEXTAREA><P> 5 <textarea name="text" cols="80" rows="20"></textarea><br />
6 Tags (comma-seperated): <INPUT TYPE="text" NAME="tags" VALUE="update"><BR> 6 Tags (comma-seperated): <input type="text" name="tags" value="update" /><br />
7 Post Type: <SELECT NAME="type" SIZE="4"> 7 Post Type: <select name="type" size="4">
8 <OPTION VALUE="draft">Draft</OPTION> 8 <option value="draft">Draft</option>
9 <OPTION VALUE="normal" SELECTED>Normal (Article-style) Post</OPTION> 9 <option value="normal" selected="selected">Normal (Article-style) Post</option>
10 <OPTION VALUE="priority">High-Priority Post</OPTION> 10 <option value="priority">High-Priority Post</option>
11 <OPTION VALUE="instant">Instant Post</OPTION> 11 <option value="instant">Instant Post</option>
12 </SELECT><BR> 12 </select><br />
13 <INPUT TYPE="submit" VALUE="Write post"> 13 <input type="submit" value="Write post" />
14</FORM> 14</form>
diff --git a/theme/archive.tpl b/theme/archive.tpl index f08c0f2..21cc567 100755 --- a/theme/archive.tpl +++ b/theme/archive.tpl
@@ -1,8 +1,8 @@
1<CENTER><H2><!--HEADER--></H2></CENTER> 1<center><h2 class="light-at-night"><!--HEADER--></h2></center>
2 2
3<!--BEGIN MONTH--> 3<!--BEGIN MONTH-->
4<H3 STYLE="clear: both; display: block; margin-bottom: 0"><!--MONTH.TITLE--></H3> 4<h3 style="clear: both; display: block; margin-bottom: 0" class="light-at-night"><!--MONTH.TITLE--></h3>
5 <!--BEGIN MONTH.SMALL--> 5 <!--BEGIN MONTH.SMALL-->
6 <SMALL><SPAN STYLE="margin-left: 50"><!--MONTH.SMALL.DATE--> | <A HREF="/blog/<!--MONTH.SMALL.CODED-->/"><!--MONTH.SMALL.TITLE--></A></SPAN></SMALL><BR> 6 <small><span style="margin-left: 50" class="light-at-night"><!--MONTH.SMALL.DATE--> | <a href="/blog/<!--MONTH.SMALL.CODED-->/"><!--MONTH.SMALL.TITLE--></a></span></small><br />
7 <!--END MONTH.SMALL--> 7 <!--END MONTH.SMALL-->
8<!--END MONTH--> 8<!--END MONTH-->
diff --git a/theme/comments.tpl b/theme/comments.tpl index 1ca7ab2..5e1c564 100755 --- a/theme/comments.tpl +++ b/theme/comments.tpl
@@ -1,51 +1,48 @@
1<A NAME="comments"></A> 1<a name="comments" />
2 2
3<!--BEGIN COMMENTS--> 3<!--BEGIN COMMENTS-->
4<A NAME="comment-<!--COMMENTS.ID-->"></A> 4<a name="comment-<!--COMMENTS.ID-->" />
5 5
6<!--BEGIN COMMENTS.EDITOR--> 6<!--BEGIN COMMENTS.EDITOR-->
7<FORM ACTION="/edit-comment.php?id=<!--COMMENTS.ID-->" METHOD="POST"> 7<form action="/edit-comment.php?id=<!--COMMENTS.ID-->" method="post">
8<!--END COMMENTS.EDITOR--> 8<!--END COMMENTS.EDITOR-->
9 9
10<DIV CLASS="bubble" ID="comment-<!--COMMENTS.ID-->"> 10<div class="module unrounded" id="comment-<!--COMMENTS.ID-->">
11 <BLOCKQUOTE> 11 <div id="textBubble-<!--COMMENTS.ID-->" class="comment">
12 <DIV ID="textBubble-<!--COMMENTS.ID-->"> 12 <img src="http://www.gravatar.com/avatar/<!--COMMENTS.CODEDEMAIL-->?s=32&amp;d=identicon&amp;r=G" alt="" />
13 <IMG SRC="http://www.gravatar.com/avatar/<!--COMMENTS.CODEDEMAIL-->?s=32&amp;d=identicon&amp;r=G"> 13 <!--COMMENTS.TEXT-->
14 <!--COMMENTS.TEXT--> 14 </div>
15 </DIV>
16
17 <!--BEGIN COMMENTS.EDITOR-->
18
19 <DIV ID="postBubble-<!--COMMENTS.ID-->" CLASS="invisible">
20 <TEXTAREA ROWS="4" CLASS="comments_field" NAME="comment" COLS="73"><!--COMMENTS.EDITOR.BEFORE--></TEXTAREA>
21 </DIV>
22
23 <!--END COMMENTS.EDITOR-->
24 </BLOCKQUOTE>
25 <CITE><STRONG><!--COMMENTS.USERNAME--></STRONG> on <!--COMMENTS.DATE--></CITE>
26 15
27 <!--BEGIN COMMENTS.EDITOR--> 16 <!--BEGIN COMMENTS.EDITOR-->
28 17
29 <SPAN CLASS="post-vote"> 18 <div id="postBubble-<!--COMMENTS.ID-->" class="invisible">
30 <A HREF="#comment-<!--COMMENTS.ID-->" ONCLICK="openEditor('<!--COMMENTS.ID-->');"><IMG SRC="/theme/images/icons/note_edit.png" ALT="Edit"></A> 19 <textarea rows="4" class="comments_field" name="comment" cols="100"><!--COMMENTS.EDITOR.BEFORE--></textarea>
31 <A HREF="/delete-comment.php?id=<!--COMMENTS.ID-->"><IMG SRC="/theme/images/icons/note_delete.png" ALT="Delete"></A> 20 </div>
32 </SPAN>
33 21
34 <!--END COMMENTS.EDITOR--> 22 <!--END COMMENTS.EDITOR-->
35</DIV> 23</div>
24
25<cite class="light-at-night"><strong><!--COMMENTS.USERNAME--></strong> on <!--COMMENTS.DATE--></cite>
36 26
37<!--BEGIN COMMENTS.EDITOR--> 27<!--BEGIN COMMENTS.EDITOR-->
38 <DIV ID="editComment-<!--COMMENTS.ID-->" CLASS="invisible" STYLE="text-align: center">
39 <INPUT TYPE="submit" VALUE="Edit">
40 <BUTTON TYPE="button" ONCLICK="closeEditor(<!--COMMENTS.ID-->);">Cancel</BUTTON>
41 </DIV>
42 28
43</FORM> 29 <span class="post-vote">
30 <a href="#comment-<!--COMMENTS.ID-->" onclick="openEditor('<!--COMMENTS.ID-->');"><img src="/theme/images/icons/note_edit.png" alt="Edit" /></a>
31 <a href="#comment-<!--COMMENTS.ID-->" onclick="if (confirm('Are you sure you would like to delete this comment?')) {window.location='/delete-comment.php?id=<!--COMMENTS.ID-->';}"><img src="/theme/images/icons/note_delete.png" alt="Delete" /></a>
32 </span>
33
34 <div id="editComment-<!--COMMENTS.ID-->" class="invisible" style="text-align: center">
35 <input type="submit" value="Edit" />
36 <button type="button" onclick="closeEditor(<!--COMMENTS.ID-->);">Cancel</button>
37 </div>
38</form>
44<!--END COMMENTS.EDITOR--> 39<!--END COMMENTS.EDITOR-->
45 40
46<!--END COMMENTS--> 41<!--END COMMENTS-->
47 42
48<SCRIPT TYPE="text/javascript"> 43<div class="cleardiv"></div>
44
45<script type="text/javascript">
49 46
50function openEditor(id) 47function openEditor(id)
51{ 48{
@@ -65,29 +62,60 @@ function closeEditor(id)
65 jQuery("#editComment-" + id).addClass("invisible"); 62 jQuery("#editComment-" + id).addClass("invisible");
66} 63}
67 64
68</SCRIPT> 65function postComment()
66{
67 jQuery("#newComment textarea, #newComment input, #newComment button").attr("disabled", "disabled");
68 jQuery("#flash").text("Processing....").slideDown();
69 jQuery.ajax({
70 type: "POST",
71 url: "/post.php",
72 data: ({
73 id: "<!--PAGEID-->",
74 comment: jQuery("#newComment textarea").val(),
75 username: jQuery("#newComment input:text[name=username]").val(),
76 email: jQuery("#newComment input:text[name=email]").val(),
77 website: jQuery("#newComment input:text[name=website]").val(),
78 recaptcha_challenge_field: jQuery("#newComment input[name=recaptcha_challenge_field]").val(),
79 recaptcha_response_field: jQuery("#newComment input[name=recaptcha_response_field]").val()
80 }),
81 dataType: "text",
82 success: function(msg) {
83 if (msg.indexOf("textBubble") != -1)
84 {
85 jQuery("#flash").text("Your comment has been posted.");
86 jQuery("#newComment").html(msg);
87 } else {
88 jQuery("#newComment textarea, #newComment input, #newComment button").removeAttr("disabled");
89 jQuery("#flash").text(msg);
90 }
91 },
92 error: function() {
93 jQuery("#newComment textarea, #newComment input, #newComment button").removeAttr("disabled");
94 jQuery("#flash").text("There was an error posting your comment.");
95 }
96 });
97}
98
99</script>
69 100
70<DIV ID="newComment"> 101<div id="newComment">
71 <FORM ACTION="/post.php?id=<!--PAGEID-->" METHOD="POST"> 102 <form action="/post.php?id=<!--PAGEID-->" method="post">
72 <DIV CLASS="bubble"> 103 <div class="module unrounded" id="postBubble">
73 <BLOCKQUOTE> 104 <textarea rows="4" class="comments_field" name="comment" cols="100"></textarea>
74 <DIV ID="postBubble"> 105 </div>
75 <TEXTAREA ROWS="4" CLASS="comments_field" NAME="comment" COLS="73"></TEXTAREA> 106
76 </DIV> 107 <cite class="light-at-night"><strong><!--USERNAME--></strong>, feel free to post a comment</cite>
77 </BLOCKQUOTE>
78 <CITE><STRONG><!--USERNAME--></STRONG>, feel free to post a comment</CITE>
79 </DIV>
80 108
81 <CENTER> 109 <center class="light-at-night">
82 <!--BEGIN NOLOG--> 110 <!--BEGIN NOLOG-->
83 <!--RECAPTCHA--> 111 <!--RECAPTCHA-->
84 <P> 112 <p>
85 Name: <INPUT TYPE="text" NAME="username"><BR> 113 Name: <input type="text" name="username" /><br />
86 Email: <INPUT TYPE="text" NAME="email"><BR> 114 Email: <input type="text" name="email" /><br />
87 Website (Optional): <INPUT TYPE="text" NAME="website"> 115 Website (Optional): <input type="text" name="website" />
88 <P> 116 </p>
89 <!--END NOLOG--> 117 <!--END NOLOG-->
90 <INPUT TYPE="submit" VALUE="Post"> 118 <button type="button" onclick="postComment();">Post</button>
91 </CENTER> 119 </center>
92 </FORM> 120 </form>
93</DIV> 121</div>
diff --git a/theme/css.php b/theme/css.php index 352caaa..8c8b7ec 100755..100644 --- a/theme/css.php +++ b/theme/css.php
@@ -22,32 +22,10 @@ require('../headerproc.php');
22 22
23header('Content-type: text/css'); 23header('Content-type: text/css');
24 24
25include('../../security/config.php'); 25include('css/website.css');
26include('../includes/db.php'); 26include('css/blog.php');
27include('../includes/specialdates.php'); 27include('css/bubbles.css');
28 28include('css/quotes.css');
29include("css/website.css"); 29include('css/holiday.php');
30include("css/bubbles.css");
31
32if (sd_ifNoSpecialDay())
33{
34 if ($_GET['id'] == 'day')
35 {
36 include("css/day.css");
37 } else if ($_GET['id'] == 'night')
38 {
39 include("css/night.css");
40 }
41} else {
42 include("css/holiday.php");
43}
44
45if ($_GET['cat'] == 'home')
46{
47 include('css/blog.php');
48} else if ($_GET['cat'] == 'panel')
49{
50 include('css/blog.php');
51}
52 30
53?> 31?>
diff --git a/theme/css/blog.php b/theme/css/blog.php index bef21dd..4c69e57 100644 --- a/theme/css/blog.php +++ b/theme/css/blog.php
@@ -21,6 +21,8 @@
21if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);} 21if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);}
22 22
23require('headerproc.php'); 23require('headerproc.php');
24include_once('../../security/config.php');
25include_once('../includes/db.php');
24 26
25?> 27?>
26 28
@@ -82,13 +84,14 @@ span.post-day {
82div.post-title { 84div.post-title {
83 float: left; 85 float: left;
84 margin-left: 10px; 86 margin-left: 10px;
85 width: 500px; /* 430px */ 87 width: 90%; /* 500px */
86} 88}
87 89
88div.entry { 90div.entry {
89 clear: both; 91 clear: both;
90 padding-top: 10px; 92 padding-top: 10px;
91 font: 75%/150% Arial, "Trebuchet MS", Tahoma; 93 /*font-size: 75%;
94 line-height: 150%;*/
92} 95}
93 96
94div.entry ol, 97div.entry ol,
@@ -218,5 +221,14 @@ div.post-date-4 {
218span.post-vote { 221span.post-vote {
219 float: right; 222 float: right;
220 position: relative; 223 position: relative;
221 top: -10px; 224 top: -2em;
225 right: 1em;
226}
227
228span.post-rating {
229 font-size: big;
230}
231
232span.post-action-done {
233 opacity: 0.2;
222} 234}
diff --git a/theme/css/bubbles.css b/theme/css/bubbles.css index 920b917..fb2c6d0 100755 --- a/theme/css/bubbles.css +++ b/theme/css/bubbles.css
@@ -1,27 +1,14 @@
1/* Normal Bubble */ 1.rounded {
2 2 -moz-border-radius: 10px;
3div.bubble { 3 -webkit-border-radius: 10px;
4 width: auto; 4 -khtml-border-radius: 10px;
5 font-size: 0.75em; 5 border-radius: 10px;
6 margin-bottom: 14px; 6 padding: 4px;
7 font: 1em "Lucida Grande", Lucida, Verdana, sans-serif;
8}
9
10div.bubble blockquote {
11 margin: 0px;
12 padding: 0px;
13 border: 1px solid #c9c2c1;
14 background-color: #fff;
15}
16
17div.bubble blockquote div {
18 margin: 10px;
19 padding: 0px;
20} 7}
21 8
22div.bubble cite { 9div.module + cite {
23 position: relative; 10 position: relative;
24 top: 6px; 11 top: -1em;
25 margin: 0; 12 margin: 0;
26 padding: 7px 0px 0px 15px; 13 padding: 7px 0px 0px 15px;
27 background: transparent url(/theme/images/tip.gif) no-repeat 20px 0; 14 background: transparent url(/theme/images/tip.gif) no-repeat 20px 0;
@@ -29,56 +16,46 @@ div.bubble cite {
29 font-size: small; 16 font-size: small;
30} 17}
31 18
32/* Rounded Bubble */ 19div.module.unrounded + cite {
33div.bubble div.rounded { 20 top: -0.9em;
34 margin-bottom: 10px;
35 border: 3px solid #fff;
36 background-color: #b7e0ff;
37}
38
39div.bubble div.rounded blockquote,
40div.bubble div.navbar-rounded blockquote {
41 border: 0;
42 background-color: transparent;
43} 21}
44 22
45div.bubble div.rounded blockquote div { 23div.module.bquote + cite {
46 margin: 0px 10px; 24 top: -0.8em;
47} 25}
48 26
49div.bubble cite.rounded { 27div.module.rounded + cite {
50 margin: 0px; 28 margin: 0px;
51 padding: 19px 0 0 15px;
52 background: transparent url(/theme/images/tip-rounded.gif) no-repeat 15px 0; 29 background: transparent url(/theme/images/tip-rounded.gif) no-repeat 15px 0;
53} 30}
54 31
55/* Pimped Bubble */ 32div.module.pimped {
56
57div.pimped {
58 font-size: 0.9em;
59}
60
61div.pimped div.rounded {
62 color: #fff; 33 color: #fff;
63 border: 3px solid #fff; 34 border: 3px solid #fff;
64 background-color: #111; 35 background-color: #111 !important;
36 padding-top: 5px;
37 padding-bottom: 5px;
65} 38}
66 39
67div.pimped cite.rounded { 40div.module.pimped + cite {
68 background: transparent url(/theme/images/tip-pimped.gif) no-repeat 15px 0; 41 background: transparent url(/theme/images/tip-pimped.gif) no-repeat 20px 0;
69} 42}
70 43
71div.bubble div.bquote blockquote { 44div.module {
72 margin: 0; 45 margin: auto 10px 14px 10px;
73 padding: 4px 0; 46 margin-left: 10px;
74 border: 1px solid #c9c2c1; 47 margin-right: 10px;
75 background-color: #fff; 48 font-size: 0.9em;
49 background-color: #B7E0FF !important;
50 border: 3px solid #FFFFFF;
76} 51}
77 52
78.rounded { 53div.module.unrounded {
79 -moz-border-radius: 10px; 54 background-color: white !important;
80 -webkit-border-radius: 10px; 55 border: 1px solid #c9c2c1 !important;
81 -khtml-border-radius: 10px; 56 padding: 5px;
82 border-radius: 10px; 57}
83 padding: 4px; 58
59div.module.sidebar {
60 width: 250px;
84} 61}
diff --git a/theme/css/day.css b/theme/css/day.css deleted file mode 100755 index 16fc9a6..0000000 --- a/theme/css/day.css +++ /dev/null
@@ -1,4 +0,0 @@
1body {
2 background-color: aqua;
3 background-image: url(/theme/images/backgrounds/island6.PNG);
4}
diff --git a/theme/css/holiday.php b/theme/css/holiday.php index 65c1826..a1639c7 100755 --- a/theme/css/holiday.php +++ b/theme/css/holiday.php
@@ -21,6 +21,9 @@
21if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);} 21if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);}
22 22
23require('headerproc.php'); 23require('headerproc.php');
24include('../includes/specialdates.php');
25
26$bgcolor='aqua';
24 27
25if (sd_isSpecialDay('Four Island A')) 28if (sd_isSpecialDay('Four Island A'))
26{ 29{
@@ -93,20 +96,44 @@ if (sd_isSpecialDay('Four Island A'))
93} elseif (sd_isSpecialDay('Valentines Day')) 96} elseif (sd_isSpecialDay('Valentines Day'))
94{ 97{
95 $bgimgm = 'valentines'; 98 $bgimgm = 'valentines';
99} else {
100 $bgimgm = 'island6';
101}
102
103?>
104
105div#window {
106 background-color: <?php echo($bgcolor); ?>;
107 background-image: url(/theme/images/backgrounds/<?php echo($bgimgm); ?>.PNG);
108 background-position: bottom left;
109 background-repeat: repeat-x;
110 background-attachment: fixed;
111 padding: 0 !important;
96} 112}
97 113
98$bodyID = $_GET['id']; 114<?php
99if (!isset($bgcolor)) 115
116if ($bgcolor == 'aqua')
100{ 117{
101 $bgcolor='aqua'; 118?>
102 119
103 include("css/day.css"); 120div#content div#actual-content {
104} else { 121 background-color: rgba(255, 255, 255, 0.5);
105 include("css/night.css");
106} 122}
107 123
124<?php
125} else {
108?> 126?>
109 127
110body { 128div#content div#actual-content {
111 background-image: url(/theme/images/backgrounds/<?php echo($bgimgm); ?>.PNG) !important; 129 background-color: rgba(0, 0, 0, 0.75);
112} 130}
131
132.light-at-night {
133 color: #536482;
134}
135
136<?php
137}
138
139?>
diff --git a/theme/css/ie.css b/theme/css/ie.css deleted file mode 100644 index ad0ebcc..0000000 --- a/theme/css/ie.css +++ /dev/null
@@ -1,44 +0,0 @@
1body * {
2 overflow: hidden;
3}
4
5dl.icon {
6 height: 50px;
7}
8
9#wrap {
10 text-align: center;
11 background:transparent;
12 filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99FFFFFF,endColorstr=#99FFFFFF);
13 zoom: 1;
14}
15
16#wrap #page-body {
17 text-align: left;
18}
19
20body#night #wrap {
21 filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000,endColorstr=#99000000);
22}
23
24div#fi-navbar ul li a {
25 position: relative;
26 top: -0.4em;
27}
28
29div.bubble cite {
30 position: static;
31 padding-top: 4px;
32}
33
34div.bubble cite.rounded {
35 padding-top: 13px;
36}
37
38div.pimped cite.rounded {
39 padding-top: 14px;
40}
41
42span.post-vote {
43 position: static;
44}
diff --git a/theme/css/night.css b/theme/css/night.css deleted file mode 100755 index 222b1d4..0000000 --- a/theme/css/night.css +++ /dev/null
@@ -1,25 +0,0 @@
1body {
2 background-color: black;
3 background-image: url(/theme/images/backgrounds/island6night.PNG);
4}
5
6div#wrap {
7 background-color: rgba(0, 0, 0, 0.75);
8}
9
10div#banner {
11 background-color: black;
12 background-image: url(/theme/images/fourisland_header_night.png);
13}
14
15div#fi-navbar ul li.active img {
16 background-color: black;
17 outline: black solid .5em;
18}
19
20#rightbar .sidebar .pimped cite,
21.post .entry .bubble cite,
22#footer,
23body.quotes #content {
24 color: #555555;
25}
diff --git a/theme/css/print.css b/theme/css/print.css index ce872e0..ef7959a 100755 --- a/theme/css/print.css +++ b/theme/css/print.css
@@ -1,36 +1,34 @@
1body { 1div#sidebar, div#footer .foot-module, div#newComment {
2 width: 100% !important;
3}
4
5div#footer, div#rightbar, div#push {
6 display: none; 2 display: none;
7} 3}
8 4
9div#banner { 5div#content div#window, div#content div#actual-content {
10 background-image: none; 6 background-color: white;
11 height: auto !important; 7 padding: 0;
8 -moz-border-radius: 0;
9 -webkit-border-radius: 0;
10 -khtml-border-radius: 0;
11 border-radius: 0;
12 margin: 0;
12} 13}
13 14
14div#banner h1 a {
15 text-indent: 0 !important;
16 color: black;
17 text-align: center;
18 height: auto !important;
19}
20
21span.print {
22 display: inline;
23}
24
25div#cleardiv { 15div#cleardiv {
26 clear: none; 16 clear: none;
27} 17}
28 18
29div#content { 19div#content {
30 width: 100%; 20 width: 95%;
31} 21}
32 22
33div.post-title { 23div.post-title {
34 width: 90%; 24 width: 90%;
35} 25}
36 26
27div#banner a {
28 text-indent: 0 !important;
29 color: black;
30 text-align: center;
31 height: auto !important;
32 font-size: 4em;
33 padding-top: 1em;
34}
diff --git a/theme/css/quotes.css b/theme/css/quotes.css new file mode 100644 index 0000000..72d5189 --- /dev/null +++ b/theme/css/quotes.css
@@ -0,0 +1,61 @@
1ul.quote-list {
2 list-style-type: none;
3}
4
5li.quote {
6 margin: 0 0 1em;
7 padding-bottom: 0.1em;
8 background-color: #FCFCFC;
9}
10
11h3.quote-header {
12 background-color: #F7F7F7;
13 border: 1px solid #F4F4F4;
14 margin: 0;
15 padding: 0.25em 0.75em;
16}
17
18li.quote, h3.quote-header {
19 -moz-border-radius-topleft: 0.5em;
20 -moz-border-radius-topright: 0.5em;
21 -webkit-border-top-left-radius: 0.5em;
22 -webkit-border-top-right-radius: 0.5em;
23 -khtml-border-top-left-radius: 0.5em;
24 -khtml-border-top-right-radius: 0.5em;
25 border-top-left-radius: 0.5em;
26 border-top-right-radius: 0.5em;
27}
28
29span.quote-date {
30 font-size: 70%;
31}
32
33blockquote.quote-body {
34 font-family: Consolas, Monaco, Courier New, monospace;
35 font-size: 12px;
36 margin: 0.5em 0.75em;
37 padding: 0;
38 position: static;
39 width: 100%;
40}
41
42ul.quote-list li:hover {
43 background: #FFFCEC;
44}
45
46ul.quote-list li:hover h3.quote-header {
47 background: #FEC;
48 border-color: #FFE9C9;
49}
50
51span.quote-action-done {
52 opacity: 0.2;
53}
54
55span.quote-update-result {
56 float: right;
57 text-transform: uppercase;
58 font-size: 70%;
59 position: relative;
60 top: -1.2em;
61}
diff --git a/theme/css/website.css b/theme/css/website.css index f0f2a0e..145bcdf 100755..100644 --- a/theme/css/website.css +++ b/theme/css/website.css
@@ -1,14 +1,6 @@
1/* Four Island CSS */ 1* {
2 2 margin: 0;
3body { 3 padding: 0;
4 background: repeat-x bottom left fixed;
5 font-family: Arial, FreeSans;
6 margin: 0px;
7 padding: 0px 0px 30px !important;
8}
9
10body.fourm {
11 font-family: Verdana, Helvetica, Arial, sans-serif;
12} 4}
13 5
14/* Effects */ 6/* Effects */
@@ -27,349 +19,345 @@ body.fourm {
27} 19}
28 20
29form textarea:focus, form input:focus { 21form textarea:focus, form input:focus {
30 border: 2px solid #900; 22 border: 2px solid #900;
31 background-color: #FEFFB2; 23 background-color: #FEFFB2;
32} 24}
33 25
34/* Links */ 26/* Links */
35 27
36a:link { 28a:link {
37 color: blue; 29 color: blue;
38 font-weight: bold; 30 font-weight: bold;
39 text-decoration: none; 31 text-decoration: none;
40} 32}
41 33
42a:visited, a:active { 34a:visited, a:active {
43 color: blue; 35 color: blue;
44 text-decoration: none; 36 text-decoration: none;
45} 37}
46 38
47a:hover, a:focus { 39a:hover, a:focus {
48 color: blue; 40 color: blue;
49 font-weight: bold; 41 font-weight: bold;
50 text-decoration: none; 42 text-decoration: none;
51 font-variant: small-caps; 43 font-variant: small-caps;
52 text-transform: capitalize; 44 text-transform: capitalize;
53} 45}
54 46
55a img { 47a img {
56 border: 0; 48 border: 0;
57} 49}
58 50
59/* Random Elements */ 51/* Body */
60 52
61* { 53body {
62 margin:0pt; 54 font-family: "Lucida Grande", "Arial", sans;
63 padding:0pt; 55 background-color: #111;
64} 56}
65 57
66p {margin-top: 1em;} 58div#header {
67ul, ol {margin-top: 1em; margin-bottom: 1em} 59 width: 100%;
68 60 height: 200px;
69img.center, img[align="center"] { 61 background-image: url(http://fourisland.com/theme/images/header-repeat.png);
70 display: block; 62 background-repeat: repeat-x;
71 margin-left: auto;
72 margin-right: auto;
73} 63}
74 64
75acronym, abbr, span.caps { 65div#banner {
76 cursor: help; 66 width: 800px;
67 height: 200px;
68 margin: 0 auto;
69 background-image: url(http://fourisland.com/theme/images/header.png);
70 background-position: bottom right;
77} 71}
78 72
79acronym, abbr { 73div#header a {
80 border-bottom: 1px dashed #999; 74 width: 800px;
75 height: 200px;
76 text-indent: -5000px;
77 display: block;
81} 78}
82 79
83blockquote { 80div#sidebar {
84 padding-left: 10px; 81 width: 21%;
85 border-left: 3px solid #CCC; 82 float: left;
86 font-family: Helvetica, sans-serif;
87 font-size: 14px;
88 margin: 10px 0 10px 50px;
89} 83}
90 84
91pre { 85div#content {
92 line-height: 12px; 86 width: 69%;
87 float: right;
88 padding-left: 5%;
89 padding-right: 5%;
90 padding-top: 20px;
93} 91}
94 92
95/* Banner */ 93div#content div.rounded {
96 94 padding: 10px;
97div#banner, div#fi-banner {
98 background-repeat: no-repeat;
99 width: 900px; /*728*/
100 height: 200px;
101 float: left;
102/* margin-top: 21px; */
103} 95}
104 96
105div#banner { 97div#footer {
106 background: white url("/theme/images/fourisland_header.png") center no-repeat; 98 width: 100%;
107 width: 100%; 99 padding-top: 20px;
100 padding-bottom: 20px;
108} 101}
109 102
110body div#banner h1, body div#fi-banner h1 { 103div#footer div.foot-module {
111 margin: 0; 104 margin: 0 auto;
105 float: left;
106 width: 20%;
107 margin-left: 4%;
108 color: white;
109 font-size: 0.9em;
112} 110}
113 111
114body div#banner h1 a, body div#fi-banner h1 a { 112div#footer a {
115 display: block; 113 color: white;
116 width: 900px; 114 border-bottom: 1px dotted white;
117 height: 200px;
118 text-indent: -5000px;
119 text-decoration: none;
120 margin: 0;
121} 115}
122 116
123div#banner h1, div#fi-banner h1 { 117div#footer div.foot-module ul {
124 margin: 0; 118 list-style-type: square;
125 font-size: 3.0em;
126 font-weight: normal;
127} 119}
128 120
129/* NavBar */ 121div#footer p {
130 122 font-size: 0.5em;
131div#fi-navbar { 123 color: white;
132 position: relative; 124 text-align: center;
133 background-color: #b7e0ff;
134 width: auto;
135 margin-bottom: 14px;
136 font: 0.9em "Lucida Grande", Lucida, Verdana, sans-serif;
137 height: 1.9em;
138 clear: both;
139} 125}
140 126
141div#fi-navbar div { 127div#page-content {
142 padding: .001em 0; 128 background-color: #00ff00; /*#8B4513;*/
143 margin: 10px; 129 padding-bottom: 10px;
144} 130}
145 131
146div#fi-navbar ul { 132body[id^=fourm] div#page div#content code {
147 margin: .25em 0; 133 display: block;
148 padding-left: 1em; 134 border: solid black 1px;
149 text-align: center; 135 background-color: #FFFF64;
136 width: 485px;
137 overflow: visible;
150} 138}
151 139
152div#fi-navbar ul li { 140body[id^=fourm] div#content h2 {
153 display: inline; 141 color: #59770e;
154 font-family: Verdana, sans-serif; 142 margin: 0px 0px 2px;
155 font-size: 1.1em; 143 border-bottom: 1px dotted #CCCCCC;
144 letter-spacing: -1px;
145 font-size: 140%;
146 padding-bottom: 3px;
156} 147}
157 148
158div#fi-navbar ul li+li:before { 149body#fourm div#actual-content {
159 content: " - "; 150 font-size: 60%;
160} 151}
161 152
162div#fi-navbar ul li img, 153ul#navbar {
163div#fi-navbar ul li.active span { 154 text-align: center;
164 display: none; 155 margin-top: 0;
165} 156}
166 157
167div#fi-navbar ul li.active img { 158ul#navbar li {
168 display: inline; 159 display: inline;
169 background-color: white; 160 font-family: Verdana, sans-serif;
170 outline: white solid .5em; 161 font-size: 1.1em;
171 margin: 0 .5em;
172} 162}
173 163
174div#fi-navbar div.bubble blockquote { 164ul#navbar li+li:before {
175 background: none; 165 content: " - ";
176 font-size: 0.9em;
177} 166}
178 167
179div#fi-navbar div.bubble blockquote a { 168ul#navbar li img, ul#navbar li.active span {
180 color: blue; 169 display: none;
181} 170}
182 171
183/* Sidebar */ 172ul#navbar li.active img {
184 173 display: inline;
185div#rightbar { 174 background-color: white;
186 float: left; 175 outline: white solid .5em;
187 width: 270px; /*210*/ 176 margin: 0 .5em;
188} 177}
189 178
190div.sidebar { 179.invisible {
191 width: 250px; /*250*/ /*240*/ /*210*/ 180 display: none;
192 padding: 0 10px;
193 margin-bottom: 5px;
194} 181}
195 182
196div.sidebar h3 { 183a img {
197 font-family: Verdana, Helvetica, Arial, sans-serif; 184 border: 0;
198 margin: 5px 0 0 0;
199 font-weight: bold;
200 color: #333333;
201} 185}
202 186
203div.sidebar p { 187p {
204 font-size: 0.8em; 188 margin-top: 1em;
205 margin: 3px 0;
206} 189}
207 190
208div.sidebar ul { 191ul, ol {
209 list-style-type: none; 192 margin-top: 1em;
210 padding: 0; 193 margin-bottom: 1em;
211 margin: 0;
212 line-height: normal !important;
213 list-style-image: none !important;
214}
215
216div#sidebar ul li {
217 margin-top: 4px;
218} 194}
219 195
220div#sidebar ul li a { 196.center, img[align="center"] {
221 display: block; 197 display: block;
222 width: 230px; 198 margin: 0 auto !important;
223} 199}
224 200
225div#sidebar li img { 201acronym, abbr, span.caps {
226 border: 0; 202 cursor: help;
227 height: 16px;
228 width: 16px;
229} 203}
230 204
231/* Layout */ 205acronym, abbr {
206 border-bottom: 1px dashed #999;
207}
232 208
233#wrap { 209pre {
234 width: 910px; 210 background: #eee;
235 margin: 10px auto; 211 padding: 10px;
236 padding: 0; 212 border: 2px solid #c94a29;
237 background-color: white; 213 overflow: auto;
238 background-color: rgba(255, 255, 255, 0.5); 214 margin: 15px 0;
239 border: 4px solid gray; 215 font-family: Courier, Monospace;
240} 216}
241 217
242#page-body { 218ul pre, ol pre {
243 margin: 0 30px; 219 margin-left: -3em;
244 clear: both;
245 position: relative;
246} 220}
247 221
248body.fourm #page-body { 222div.autosize {
249 margin: 0 10px 0 25px; 223 margin-bottom: 6px !important;
250 width: 95%;
251 font-size: 62.5%;
252} 224}
253 225
254#phpBB3-page-body { 226ul blockquote, ol blockquote {
255 margin: 4px 0 !important; 227 position: relative;
256 clear: both; 228 left: -3em;
229 width: 110%;
257} 230}
258 231
259/* Content */ 232.comment ul, .comment ol {
260 233 margin-left: 3em;
261div#content {
262 float: right;
263 width: 555px; /*465*/ /*555*/
264} 234}
265 235
266body#day div#page div#content code { 236ul div.bquote blockquote, ol div.bquote blockquote {
267 display: block; 237 left: 0;
268 border: solid black 1px;
269 background-color: #FFFF64;
270 width: 485px;
271 overflow: visible;
272} 238}
273 239
274div#content h2 { 240li+br {
275 color: #59770e; 241 display: none;
276 margin: 0px 0px 2px;
277 border-bottom: 1px dotted #CCCCCC;
278 letter-spacing: -1px;
279 font: normal 140%/100% "Trebuchet MS", Tahoma, Arial;
280 padding-bottom: 3px;
281} 242}
282 243
283/* Random Divs/Spans */ 244/* Tables */
284 245
285div.cleardiv { 246table.webmail {
286 clear: both; 247 border: 0;
287} 248 width: 100%;
288
289div#footer {
290 clear: both;
291 padding: .5em 0 1em 0;
292 margin-top: .5em;
293 text-align: center;
294 font-size: .68em;
295 border-top: 1px black solid;
296} 249}
297 250
298div#footer ul.rows li { 251table.webmail, table.webmail td {
299 display: list-item; 252 border-spacing: 0;
300} 253}
301 254
302div#footer ul { 255table.webmail tr {
303 padding: 0; 256 background-color: #3CE4ED;
304 margin: 0;
305 list-style-type: none;
306} 257}
307 258
308div#footer ul li { 259table.webmail tr.even {
309 display: inline; 260 background-color: #39B7CD;
310 margin-right: 1em;
311} 261}
312 262
313div#footer ul li img { 263table.webmail th {
314 width: 20px; 264 background-color: #FF9912;
315 height: 20px; 265 text-align: left;
316 vertical-align: top;
317} 266}
318 267
319div#content ul { 268/* Sidebar */
320 list-style: url(/theme/images/bullet_disk_big.png); 269
270div#rightbar {
271 float: left;
272 width: 270px; /*210*/
321} 273}
322 274
323div#content a img { 275div.sidebar {
324 border: solid transparent 1px; 276 width: 250px; /*250*/ /*240*/ /*210*/
277 padding: 0 10px;
278 margin-bottom: 5px;
325} 279}
326 280
327div#content a:hover img { 281div.sidebar h3 {
328 border: dashed gray 1px; 282 font-family: Verdana, Helvetica, Arial, sans-serif;
283 margin: 5px 0 0 0;
284 font-weight: bold;
285 color: #333333;
329} 286}
330 287
331div#hatbar.quotes-options ul { 288div.sidebar p {
332 list-style: none; 289 font-size: 0.8em;
290 margin: 3px 0;
333} 291}
334 292
335div.autosize { 293div#sidebar ul.hatnav {
336 margin-bottom: 6px !important; 294 list-style-type: none;
295 padding-left: 24px;
296 margin-top: 0 !important;
297 line-height: normal !important;
298 list-style-image: none !important;
337} 299}
338 300
339ul blockquote, ol blockquote { 301div#sidebar ul {
340 position: relative; 302 list-style-type: none;
341 left: -3em; 303}
342 width: 110%; 304
305div#sidebar ul.hatnav li {
306 text-align: right;
307 border: 1px gray solid;
308 padding-top: 2px;
309 padding-bottom: 2px;
310 background-color: #111;
311 color: white;
312}
313
314div#sidebar ul.hatnav li a {
315 display: block;
316 width: 230px;
317 color: white;
343} 318}
344 319
345li+br { 320div#sidebar li img {
346 display: none; 321 border: 0;
322 height: 16px;
323 width: 16px;
347} 324}
348 325
349.invisible { 326div#sidebar ul.hatnav li.active {
350 display: none; 327 background-color:#00FF00;
328 border: none;
351} 329}
352 330
353/* Tables */ 331div#sidebar ul.hatnav li:hover {
332 background-color:yellow;
333 border: none;
334}
354 335
355table.webmail { 336div#sidebar ul li.active a, div#sidebar ul li a:hover {
356 border: 0; 337 color: black;
357 width: 100%;
358} 338}
359 339
360table.webmail, table.webmail td { 340div.cleardiv {
361 border-spacing: 0; 341 clear: both;
362} 342}
363 343
364table.webmail tr { 344.nobr {
365 background-color: #3CE4ED; 345 white-space: nowrap;
366} 346}
367 347
368table.webmail tr.even { 348textarea {
369 background-color: #39B7CD; 349 width: 99%;
370} 350}
371 351
372table.webmail th { 352div#flash {
373 background-color: #FF9912; 353 position: fixed;
374 text-align: left; 354 left: 0;
355 top: 0;
356 width: 100%;
357 background-color: yellow;
358 padding: 10px 0;
359 text-align: center;
360 border-bottom: 1px solid black;
361 display: none;
362 z-index: 9999;
375} 363}
diff --git a/theme/datefinder.tpl b/theme/datefinder.tpl deleted file mode 100755 index e69de29..0000000 --- a/theme/datefinder.tpl +++ /dev/null
diff --git a/theme/errors/404.tpl b/theme/errors/404.tpl index 3010548..1474b42 100755 --- a/theme/errors/404.tpl +++ b/theme/errors/404.tpl
@@ -1,100 +1,102 @@
1<H2>Hello, my name is Waddle Dee</H2> 1<div class="light-at-night">
2 2 <h2>Hello, my name is Waddle Dee</h2>
3<P> 3
4 Aaaa.... well... I'm really sorry, but I can't find the page you're looking for. Really, I'm so sorry! Please don't tell Hat Kirby! This is 4 <p>
5 the 17'th page I lost this week! 5 Aaaa.... well... I'm really sorry, but I can't find the page you're looking for. Really, I'm so sorry! Please don't tell Hat Kirby! This is
6</P> 6 the 17'th page I lost this week!
7 7 </p>
8<P> 8
9 Oh wait. Here we go. We can't find your page because... hmmm... oh not again... It seems Kirby ate the page you are looking for. 9 <p>
10 Yes, I'm really sorry! He gets really hungry sometimes (all of the time) but we try to keep him fed. 10 Oh wait. Here we go. We can't find your page because... hmmm... oh not again... It seems Kirby ate the page you are looking for.
11</P> 11 Yes, I'm really sorry! He gets really hungry sometimes (all of the time) but we try to keep him fed.
12 12 </p>
13<!--BEGIN NOREFERER--> 13
14 <P> 14 <!--BEGIN NOREFERER-->
15 Anyway, instead of talking to me, you can: 15 <p>
16 </P> 16 Anyway, instead of talking to me, you can:
17 17 </p>
18 <UL> 18
19 <LI>Swim over to <A HREF="http://fourisland.com/">Fourever Island</A></LI> 19 <ul>
20 <LI>Try <A HREF="http://fourisland.com/fourm/">The Fourm</A>!</LI> 20 <li>Swim over to <a href="http://fourisland.com/">Fourever Island</a></li>
21 <LI>Or maybe you could go to the <A HREF="http://code.fourisland.com">Mercurial Respository</A>!</LI> 21 <li>Try <a href="http://fourisland.com/fourm/">The Fourm</a>!</li>
22 </UL> 22 <li>Or maybe you could go to the <a href="http://code.fourisland.com">Mercurial Respository</a>!</li>
23 23 </ul>
24 <P> 24
25 I'm sure you'll have fun. 25 <p>
26 </P> 26 I'm sure you'll have fun.
27 27 </p>
28 <P> 28
29 <STRONG>Oh, oh! More info has come in! You may not be able to find the page because of:</STRONG> 29 <p>
30 </P> 30 <strong>Oh, oh! More info has come in! You may not be able to find the page because of:</strong>
31 31 </p>
32 <OL TYPE="A"> 32
33 <LI>An <STRONG>out-of-date bookmark/favourite</STRONG></LI> 33 <ol type="A">
34 <LI>A search engine that has an <STRONG>out-of-date listing for us</STRONG></LI> 34 <li>An <strong>out-of-date bookmark/favourite</strong></li>
35 <LI>A <STRONG>mis-typed address</STRONG></LI> 35 <li>A search engine that has an <strong>out-of-date listing for us</strong></li>
36 </OL> 36 <li>A <strong>mis-typed address</strong></li>
37<!--END NOREFERER--> 37 </ol>
38 38 <!--END NOREFERER-->
39<!--BEGIN SEARCHREF--> 39
40 <P> 40 <!--BEGIN SEARCHREF-->
41 <STRONG>Oh, oh! More info has come in!</STRONG> 41 <p>
42 </P> 42 <strong>Oh, oh! More info has come in!</strong>
43 43 </p>
44 <P> 44
45 You did a search on <STRONG><A HREF="<!--SEARCHREF.REF-->" TARGET="_blank"><!--SEARCHREF.SITE--></A></STRONG> 45 <p>
46 for "<STRONG><!--SEARCHREF.TERMS--></STRONG>". However, their index appears to be out of date. Because Kirby ate the page, no doubt. 46 You did a search on <strong><a href="<!--SEARCHREF.REF-->" target="_blank"><!--SEARCHREF.SITE--></a></strong>
47 </P> 47 for "<strong><!--SEARCHREF.TERMS--></strong>". However, their index appears to be out of date. Because Kirby ate the page, no doubt.
48 48 </p>
49 <P> 49
50 All is not lost! Why not try one of these links? 50 <p>
51 </P> 51 All is not lost! Why not try one of these links?
52 52 </p>
53 <UL> 53
54 <LI>Swim over to <A HREF="http://fourisland.com/">Fourever Island</A></LI> 54 <ul>
55 <LI>Try <A HREF="http://fourisland.com/fourm/">The Fourm</A>!</LI> 55 <li>Swim over to <a href="http://fourisland.com/">Fourever Island</a></li>
56 <LI>Or maybe you could go to the <A HREF="http://code.fourisland.com">Mercurial Respository</A>!</LI> 56 <li>Try <a href="http://fourisland.com/fourm/">The Fourm</a>!</li>
57 </UL> 57 <li>Or maybe you could go to the <a href="http://code.fourisland.com">Mercurial Respository</a>!</li>
58 58 </ul>
59 <P> 59
60 I'm sure you'll have fun. 60 <p>
61 </P> 61 I'm sure you'll have fun.
62<!--END SEARCHREF--> 62 </p>
63 63 <!--END SEARCHREF-->
64<!--BEGIN NORMALREF--> 64
65 <P> 65 <!--BEGIN NORMALREF-->
66 <STRONG>Oh, oh! More info has come in!</STRONG> 66 <p>
67 </P> 67 <strong>Oh, oh! More info has come in!</strong>
68 68 </p>
69 <P> 69
70 You were referred to this page by: 70 <p>
71 <STRONG><A HREF="<!--NORMALREF.REF-->" TARGET="_blank"><!--NORMALREF.SITE--></A></STRONG><BR /> 71 You were referred to this page by:
72 I guess they didn't know that Kirby ate the page. 72 <strong><a href="<!--NORMALREF.REF-->" target="_blank"><!--NORMALREF.SITE--></a></strong><br />
73 </P> 73 I guess they didn't know that Kirby ate the page.
74 74 </p>
75 <!--BEGIN OURBAD--> 75
76 <P> 76 <!--BEGIN OURBAD-->
77 Wait a minute! That's us! Uh oh! It looks like one of our own links is broken! 77 <p>
78 I'm really sorry about this, and I'll try to fix it before Hatkirby notices. 78 Wait a minute! That's us! Uh oh! It looks like one of our own links is broken!
79 Please PM "hatkirby" on The Fourm, or post a topic about it in "Fourscore Improvements". Thanks! 79 I'm really sorry about this, and I'll try to fix it before Hatkirby notices.
80 </P> 80 Please PM "hatkirby" on The Fourm, or post a topic about it in "Fourscore Improvements". Thanks!
81 <!--END OURBAD--> 81 </p>
82 82 <!--END OURBAD-->
83 <P> 83
84 Why not try one of these links? 84 <p>
85 </P> 85 Why not try one of these links?
86 86 </p>
87 <UL> 87
88 <LI>Swim over to <A HREF="http://fourisland.com/">Fourever Island</A></LI> 88 <ul>
89 <LI>Try <A HREF="http://fourisland.com/fourm/">The Fourm</A>!</LI> 89 <li>Swim over to <a href="http://fourisland.com/">Fourever Island</a></li>
90 <LI>Or maybe you could go to the <A HREF="http://code.fourisland.com">Mercurial Respository</A>!</LI> 90 <li>Try <a href="http://fourisland.com/fourm/">The Fourm</a>!</li>
91 </UL> 91 <li>Or maybe you could go to the <a href="http://code.fourisland.com">Mercurial Respository</a>!</li>
92 92 </ul>
93 <P> 93
94 I'm sure you'll have fun. 94 <p>
95 </P> 95 I'm sure you'll have fun.
96<!--END NORMALREF--> 96 </p>
97 97 <!--END NORMALREF-->
98<P> 98
99 Oh wait, I have to go. Hatkirby's coming and I better have an explation for her this time! 99 <p>
100</P> 100 Oh wait, I have to go. Hatkirby's coming and I better have an explation for her this time!
101 </p>
102</div>
diff --git a/theme/footer.tpl b/theme/footer.tpl index eecbdcf..950b16e 100755..100644 --- a/theme/footer.tpl +++ b/theme/footer.tpl
@@ -1,45 +1,60 @@
1 <!-- End content --></DIV> 1 </div>
2 </div>
3 </div>
4
5 <div class="cleardiv"></div>
6 </div>
7
8 <div id="footer">
9 <div class="foot-module">
10 <h3>Recent Comments</h3>
2 11
3 <!--BEGIN RIGHTBAR--> 12 <ul>
4 <!--INCLUDE sidebar--> 13 <!--BEGIN COMMENTS-->
5 <!--END RIGHTBAR--> 14 <li style="font-size: 0.9em"><!--COMMENTS.AUTHOR--> on <a href="/<!--COMMENTS.AREA-->/<!--COMMENTS.CODED--><!--COMMENTS.ENDING-->#comment-<!--COMMENTS.ID-->"><!--COMMENTS.TITLE--></a></li>
15 <!--END COMMENTS-->
16 </ul>
17 </div>
6 18
7 <!--BEGIN EXTRA--> 19 <div class="foot-module">
8 <!--EXTRA.SIDEBARS--> 20 <h3>Recent Fourm Posts</h3>
9 <!--END EXTRA-->
10 21
11 <DIV CLASS="cleardiv"></DIV> 22 <ul>
23 <!--BEGIN FOURM-->
24 <li style="font-size: 0.9em"><!--FOURM.USERNAME--> on <a href="/fourm/viewtopic.php?t=<!--FOURM.TOPIC-->&amp;p=<!--FOURM.POST-->#p<!--FOURM.POST-->"><!--FOURM.SUBJECT--></a></li>
25 <!--END FOURM-->
26 </ul>
27 </div>
12 28
13 <!--BEGIN ONFOURM--> 29 <div class="foot-module">
14 <DIV> 30 <h3>Top Commenters</h3>
15 <!--END ONFOURM-->
16 </DIV>
17 31
18 <DIV ID="footer"> 32 <ul>
19 <UL CLASS="rows"> 33 <!--BEGIN TOP-->
20 <LI>Four Island (r<!--REVISION-->) is by <a href="http://fourisland.com">Starla Insigna</a></LI> 34 <li style="font-size: 0.9em"><!--TOP.USERNAME--> (<!--TOP.COUNT-->)</li>
21 <LI>Licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/">Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License</a>.</LI> 35 <!--END TOP-->
22 <LI><A HREF="/wiki/privacy-policy/">Privacy Policy</A></LI> 36 </ul>
23 </UL> 37 </div>
24 38
25 <UL CLASS="together"> 39 <div class="foot-module">
26 <LI><A HREF="http://jigsaw.w3.org/css-validator/"><IMG SRC="/theme/images/icons/css_valid.png" ALT="Valid CSS"></A></LI> 40 <h3>Popular Posts</h3>
27 <LI><A HREF="/blog/sortof-valid-html-no-lt-doctype-gt/"><IMG SRC="/theme/images/icons/html_valid.png" ALT="Sortof Valid HTML"></A></LI>
28 <LI><A class="noVisit" HREF="/rss.php"><IMG SRC="/theme/images/icons/feed.png" ALT="RSS Feed"></A></LI>
29 </UL>
30 </DIV>
31 </DIV>
32 41
33 <!--Google Analytics--> 42 <ul>
34 <script type="text/javascript"> 43 <!--BEGIN POPULAR-->
35 var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); 44 <li style="font-size: 0.9em"><a href="/blog/<!--POPULAR.CODED-->/"><!--POPULAR.TITLE--></a></li>
36 document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); 45 <!--END POPULAR-->
37 </script> 46 </ul>
38 <script type="text/javascript"> 47 </div>
39 var pageTracker = _gat._getTracker("UA-2895652-1"); 48
40 pageTracker._initData(); 49 <div class="cleardiv"></div>
41 pageTracker._trackPageview(); 50
42 </script> 51 <p>
43 <!--Google Analytics--> 52 Four Island (<a href="http://code.fourisland.com/fourisland/">r<!--REVISION--></a>) is by <a href="http://fourisland.com">Starla Insigna</a>.
44 </BODY> 53 Licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/">Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License</a>.
45</HTML> 54 <a href="http://jigsaw.w3.org/css-validator/"><img src="/theme/images/icons/css_valid.png" alt="Valid CSS" /></a>
55 <a href="http://validator.w3.org/check/referer"><img src="/theme/images/icons/xhtml_valid.png" alt="Valid XHTML" /></a>
56 <a class="noVisit" href="/rss.php"><img src="/theme/images/icons/feed.png" alt="RSS Feed" /></a>
57 </p>
58 </div>
59 </body>
60</html>
diff --git a/theme/fuhsdiufgsadiufgaisfioas.tpl b/theme/fuhsdiufgsadiufgaisfioas.tpl index 9829589..4217c5a 100644 --- a/theme/fuhsdiufgsadiufgaisfioas.tpl +++ b/theme/fuhsdiufgsadiufgaisfioas.tpl
@@ -1,2 +1,2 @@
1I know you're waiting. So are we.<BR> 1<span class="light-at-night">I know you're waiting. So are we.<br />
2<!--NUMBER--> 2<!--NUMBER--></span>
diff --git a/theme/header.tpl b/theme/header.tpl index 2117d3d..64cc902 100755..100644 --- a/theme/header.tpl +++ b/theme/header.tpl
@@ -1,95 +1,198 @@
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 2
3<HTML> 3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <HEAD> 4 <head>
5 <TITLE><!--EXTRATITLE-->Four Island</TITLE> 5 <title><!--EXTRATITLE-->Four Island</title>
6 6 <link rel="stylesheet" type="text/css" href="http://fourisland.com/theme/css.php" />
7 <LINK REL="stylesheet" TYPE="text/css" HREF="http://fourisland.com/theme/css.php?id=<!--BODYID-->&amp;cat=<!--CATEGORY-->"> 7 <!--[if IE]><link rel="stylesheet" type="text/css" href="http://fourisland.com/theme/css/ie.css" /><![endif]-->
8 <!--[if IE]><LINK REL="stylesheet" TYPE="text/css" HREF="http://fourisland.com/theme/css/ie.css"><![endif]--> 8 <link rel="stylesheet" type="text/css" href="http://fourisland.com/theme/css/print.css" media="print" />
9 <LINK REL="stylesheet" TYPE="text/css" HREF="http://fourisland.com/theme/css/print.css" MEDIA="print"> 9 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
10 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> 10 <meta http-equiv="Content-Language" content="en" />
11 <META HTTP-EQUIV="Content-Language" CONTENT="en"> 11 <link rel="alternate" type="application/rss+xml" href="http://feeds.feedburner.com/FourIsland?format=xml" title="Four Island" />
12 <LINK REL="alternate" TYPE="application/rss+xml" HREF="http://feeds.feedburner.com/FourIsland?format=xml" TITLE="Four Island"> 12 <link rel="shortcut" href="/images/kirbyfolder.ico" />
13 <LINK REL="shortcut" HREF="/images/kirbyfolder.ico"> 13 <link rel="icon" href="/images/kirbyfolder.ico" />
14 <LINK REL="icon" HREF="/images/kirbyfolder.ico"> 14 <link rel="pingback" href="http://fourisland.com/xmlrpc.php" />
15 <LINK REL="pingback" HREF="http://fourisland.com/xmlrpc.php"> 15 <script type="text/javascript" src="/theme/js/jquery.js"></script>
16 <SCRIPT TYPE="text/javascript" SRC="/theme/js/jquery.js"></SCRIPT> 16 </head>
17 17
18 <!--HEADTAGS--> 18 <body id="<!--CATEGORY-->">
19 </HEAD> 19 <div id="flash"></div>
20 20
21 <BODY ID="<!--BODYID-->" CLASS="<!--CATEGORY--> <!--AID--> <!--CATEGORY-->-<!--AID-->"<!--BODYTAGS-->> 21 <div id="header">
22 <DIV ID="wrap"> 22 <div id="banner"><a href="http://fourisland.com/">Four Island</a></div>
23 <DIV ID="page-header"> 23 </div>
24 <DIV ID="banner" STYLE="position: relative;"> 24
25 <H1 ID="logo-banner"> 25 <div id="page-content">
26 <A HREF="/" TITLE="Four Island">Four Island</A> 26 <div id="sidebar">
27 </H1> 27 <div class="module rounded pimped sidebar">
28 </DIV> 28 Hi! My name is Hatkirby, and I run Four Island.
29 </DIV> 29
30 30 <p>
31 <DIV ID="fi-navbar"> 31 Four Island is a fun place with a blog,
32 <DIV> 32 a fourm, a wiki, many projects and a quotes database!<br />
33 <UL> 33
34 <LI<!--HOMEACTIVE-->> 34 I hope you enjoy your time on Four Island!
35 <A HREF="http://fourisland.com/"> 35 </p>
36 <IMG SRC="/theme/images/icons/newspaper.png" ALT="Blog"> 36 </div>
37 <SPAN>Blog</SPAN> 37
38 </A> 38 <cite class="rounded"><strong>Hatkirby</strong> on Four Island</cite>
39 </LI> 39
40 40 <!--BEGIN CREATE_HATNAV-->
41 <LI> 41 <ul class="hatnav">
42 <A HREF="http://projects.fourisland.com/">Projects</A> 42 <!--END CREATE_HATNAV-->
43 </LI> 43
44 44 <!--BEGIN HATNAV-->
45 <LI<!--FOURMACTIVE-->> 45 <li>
46 <A HREF="http://fourisland.com/fourm/"> 46 <a href="<!--HATNAV.URL-->">
47 <IMG SRC="/theme/images/icons/comment.png" ALT="The Fourm"> 47 <img src="/theme/images/icons/<!--HATNAV.ICON-->.png" alt="<!--HATNAV.TITLE-->" />
48 <SPAN>The Fourm</SPAN> 48 <span><!--HATNAV.TITLE--></span>
49 </A> 49 </a>
50 </LI> 50 </li>
51 51 <!--END HATNAV-->
52 <LI<!--WIKIACTIVE-->> 52
53 <A HREF="http://fourisland.com/wiki/"> 53 <!--BEGIN CREATE_HATNAV-->
54 <IMG SRC="/theme/images/icons/page_edit.png" ALT="Fouripedia"> 54 </ul>
55 <SPAN>Fouripedia</SPAN> 55 <!--END CREATE_HATNAV-->
56 </A> 56
57 </LI> 57 <div class="module rounded sidebar">
58 58 <h3>Poll of the Week</h3>
59 <LI<!--POLLACTIVE-->> 59
60 <A HREF="http://fourisland.com/poll/"> 60 <!--POTW-->
61 <IMG SRC="/theme/images/icons/overlays.png" ALT="Polls"> 61 </div>
62 <SPAN>Polls</SPAN> 62
63 </A> 63 <div class="module rounded sidebar">
64 </LI> 64 <h3>Affiliates</h3>
65 65
66 <LI<!--QUOTESACTIVE-->> 66 <ul>
67 <A HREF="http://fourisland.com/quotes/"> 67 <li>
68 <IMG SRC="/theme/images/icons/16-file-page.png" ALT="Quotes"> 68 <img src="/theme/images/icons/tag_blue.png" alt="The S Site" />
69 <SPAN>Quotes</SPAN> 69 <a href="http://ssite.fourisland.com/">The S Site</a>
70 </A> 70 </li>
71 </LI> 71
72 72 <li>
73 <!--BEGIN MEMBERS--> 73 <img src="/theme/images/icons/tag_green.png" alt="Wikipinia" />
74 <LI<!--LOGACTIVE-->> 74 <a href="http://nablecak.fourisland.com/">Wikipinia</a>
75 <A HREF="http://fourisland.com/fourm/ucp.php?mode=log<!--LOGDATA-->&amp;redirect=<!--REDIRPAGE-->&amp;sid=<!--SID-->"> 75 </li>
76 <IMG SRC="/theme/images/icons/door_in.png" ALT="Log<!--LOGDATA-->"> 76
77 <SPAN>Log<!--LOGDATA--></SPAN> 77 <li>
78 </A> 78 <img src="/theme/images/icons/tag_orange.png" alt="Color Pencils" />
79 </LI> 79 <a href="http://gryph.fourisland.com/">Color Pencils</a>
80 <!--END MEMBERS--> 80 </li>
81 81
82 <!--BEGIN ADMIN--> 82 <li>
83 <LI<!--PANELACTIVE-->> 83 <img src="/theme/images/icons/tag_pink.png" alt="Dream Weaver" />
84 <A HREF="http://fourisland.com/admin/"> 84 <a href="http://timbo94.fourisland.com/">Dream Weaver</a>
85 <IMG SRC="/theme/images/icons/rainbow.png" ALT="Admin"> 85 </li>
86 <SPAN>Admin</SPAN> 86
87 </A> 87 <li>
88 </LI> 88 <img src="/theme/images/icons/tag_purple.png" alt="Randomness" />
89 <!--END ADMIN--> 89 <a href="http://pyro.fourisland.com/">Randomness</a>
90 </UL> 90 </li>
91 </DIV> 91
92 </DIV> 92 <li>
93 93 <img src="/theme/images/icons/tag_red.png" alt="Bubble Blog" />
94 <DIV id="page-body"> 94 <a href="http://sammi9494.fourisland.com/">Bubble Blog</a>
95 <DIV id="content"> 95 </li>
96 </ul>
97 </div>
98
99 <div class="module rounded sidebar">
100 <h3>Website Projects</h3>
101
102 <ul>
103 <li>
104 <img src="/theme/images/icons/tag_blue.png" alt="The Sabrina FanWiki" />
105 <a href="http://sabrina.fourisland.com/">The Sabrina FanWiki</a>
106 </li>
107
108 <li>
109 <img src="/theme/images/icons/tag_green.png" alt="True Falsities" />
110 <a href="http://false.fourisland.com/">True Falsities</a>
111 </li>
112
113 <li>
114 <img src="/theme/images/icons/tag_orange.png" alt="Pillowcase" />
115 <a href="http://pillowcase.fourisland.com/">Pillowcase</a>
116 </li>
117
118 <li>
119 <img src="/theme/images/icons/tag_pink.png" alt="Endlenge" />
120 <a href="http://endlenge.fourisland.com/">Endlenge</a>
121 </li>
122 </ul>
123 </div>
124
125 <div class="module rounded sidebar">
126 <h3>HatBar</h3>
127
128 <p>
129 Hits: <!--HITS--><br />
130 Today: <!--TODAY--><br />
131 <!--DATEFINDER-->
132 </p>
133
134 <p align="center">
135 <a href="/addresses.php" title="goodemail@happybobby.com"><img src="/images/btn_bot.png" alt="Addresses galore!" /></a>
136 <a href="http://www.prchecker.info/" target="_blank"><img src="http://pr.prchecker.info/getpr.php?codex=aHR0cDovL2ZvdXJpc2xhbmQuY29t&amp;tag=3" alt="Page Rank Check" border="0" /></a>
137 <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-sa/3.0/us/80x15.png" /></a>
138 <a href="http://whos.amung.us/show/t1sj4g2u"><img src="http://whos.amung.us/swidget/t1sj4g2u.gif" alt="website stats" width="80" height="15" border="0" /></a>
139 <a href="http://feeds2.feedburner.com/FourIsland"><img src="http://feeds2.feedburner.com/~fc/FourIsland?bg=99CCFF&amp;fg=444444&amp;anim=0" height="26" width="88" style="border:0" alt="" /></a>
140 </p>
141 </div>
142 </div>
143
144 <div id="content">
145 <ul id="navbar">
146 <li<!--BLOGACTIVE-->>
147 <a href="http://fourisland.com/">
148 <img src="/theme/images/icons/newspaper.png" alt="Blog" />
149 <span>Blog</span>
150 </a>
151 </li>
152
153 <li>
154 <a href="http://projects.fourisland.com/">Projects</a>
155 </li>
156
157 <li<!--FOURMACTIVE-->>
158 <a href="http://fourisland.com/fourm/">
159 <img src="/theme/images/icons/comment.png" alt="The Fourm" />
160 <span>The Fourm</span>
161 </a>
162 </li>
163
164 <li<!--POLLACTIVE-->>
165 <a href="http://fourisland.com/poll/">
166 <img src="/theme/images/icons/overlays.png" alt="Polls" />
167 <span>Polls</span>
168 </a>
169 </li>
170
171 <li<!--QUOTESACTIVE-->>
172 <a href="http://fourisland.com/quotes/">
173 <img src="/theme/images/icons/16-file-page.png" alt="Quotes" />
174 <span>Quotes</span>
175 </a>
176 </li>
177
178 <!--BEGIN MEMBERS-->
179 <li<!--LOGACTIVE-->>
180 <a href="http://fourisland.com/fourm/ucp.php?mode=log<!--LOGDATA-->&amp;redirect=<!--REDIRPAGE-->&amp;sid=<!--SID-->">
181 <img src="/theme/images/icons/door_in.png" alt="Log<!--LOGDATA-->" />
182 <span>Log<!--LOGDATA--></span>
183 </a>
184 </li>
185 <!--END MEMBERS-->
186
187 <!--BEGIN ADMIN-->
188 <li<!--PANELACTIVE-->>
189 <a href="http://fourisland.com/admin/">
190 <img src="/theme/images/icons/rainbow.png" alt="Admin" />
191 <span>Admin</span>
192 </a>
193 </li>
194 <!--END ADMIN-->
195 </ul>
196
197 <div id="window" class="rounded">
198 <div id="actual-content" class="rounded">
diff --git a/theme/holidates.tpl b/theme/holidates.tpl new file mode 100644 index 0000000..583d5cd --- /dev/null +++ b/theme/holidates.tpl
@@ -0,0 +1,15 @@
1<table width="100%" class="webmail">
2 <tr>
3 <th>ID</th>
4 <th>Date</th>
5 <th>Holidate</th>
6 </tr>
7
8 <!--BEGIN DATE-->
9 <tr<!--DATE.EVEN-->>
10 <td><!--DATE.NUM--></td>
11 <td><!--DATE.DATE--></td>
12 <td><!--DATE.TEXT--></td>
13 </tr>
14 <!--END DATE-->
15</table>
diff --git a/theme/images/fourisland_header.png b/theme/images/fourisland_header.png deleted file mode 100755 index 35f7886..0000000 --- a/theme/images/fourisland_header.png +++ /dev/null
Binary files differ
diff --git a/theme/images/fourisland_header_night.png b/theme/images/fourisland_header_night.png deleted file mode 100644 index 25502a0..0000000 --- a/theme/images/fourisland_header_night.png +++ /dev/null
Binary files differ
diff --git a/theme/images/header-repeat.png b/theme/images/header-repeat.png new file mode 100644 index 0000000..9de2db8 --- /dev/null +++ b/theme/images/header-repeat.png
Binary files differ
diff --git a/theme/images/header.png b/theme/images/header.png new file mode 100644 index 0000000..835e28d --- /dev/null +++ b/theme/images/header.png
Binary files differ
diff --git a/theme/images/icons/xhtml_valid.png b/theme/images/icons/xhtml_valid.png new file mode 100644 index 0000000..d2e1cfb --- /dev/null +++ b/theme/images/icons/xhtml_valid.png
Binary files differ
diff --git a/theme/images/no-ie6.png b/theme/images/no-ie6.png deleted file mode 100755 index fef317c..0000000 --- a/theme/images/no-ie6.png +++ /dev/null
Binary files differ
diff --git a/theme/login.tpl b/theme/login.tpl deleted file mode 100755 index 7f83045..0000000 --- a/theme/login.tpl +++ /dev/null
@@ -1,17 +0,0 @@
1<H1>Four Island Login Page</H1>
2
3<P><CENTER>
4<!--BEGIN ERROR-->
5<FONT COLOR="RED" SIZE="5">ERROR: <!--ERROR.MSG--></FONT><P>
6<!--END ERROR-->
7Welcome to the Four Island Login page!<BR>
8To post feedback on this site, and also to post on the forums, you must be a member.<BR>
9Sadly, currently membership is invitation-only. But hopefully that will change in the near future.<BR>
10HOWEVER, you may request membership by email hatkirby@fourisland.com (link on the right).<BR>
11A NOTICE TO ALL MEMBERS! Do NOT share your password with anyone! If you misplace your password send an email to hatkirby@fourisland.com (link on the right).<P>
12<FORM ACTION="login.php?submit=" METHOD="POST">
13 <LABEL FOR="username">Username:</LABEL><INPUT TYPE="text" NAME="username" ID="username"><BR>
14 <LABEL FOR="password">Password:</LABEL><INPUT TYPE="password" NAME="password" ID="password"><BR>
15 <INPUT TYPE="hidden" NAME="redirect" VALUE="<!--REDIRECT-->">
16 <INPUT TYPE="submit">
17</FORM></CENTER>
diff --git a/theme/maintenance.tpl b/theme/maintenance.tpl index 0a50a51..349c6d1 100755 --- a/theme/maintenance.tpl +++ b/theme/maintenance.tpl
@@ -1,6 +1,6 @@
1<CENTER><H1>Four Island is under maintenance</H1></CENTER> 1<center><h1>Four Island is under maintenance</h1></center>
2 2
3<P>I'm sorry, but you've caught Four Island off guard. We're currently upgrading the website to accomidate for some fun new features we've thrown in, 3<p>I'm sorry, but you've caught Four Island off guard. We're currently upgrading the website to accomidate for some fun new features we've thrown in,
4so Four Island'll be down for a few minutes. Please try again soon and thanks for your interest in Four Island!</P> 4so Four Island'll be down for a few minutes. Please try again soon and thanks for your interest in Four Island!</p>
5 5
6<P STYLE="text-align: right"><I>--Starla Insigna</I></P> 6<p style="text-align: right"><em>--Starla Insigna</em></p>
diff --git a/theme/msg.tpl b/theme/msg.tpl index 25a4f36..82353fe 100755 --- a/theme/msg.tpl +++ b/theme/msg.tpl
@@ -1 +1 @@
<!--TRACKING--><P><!--MSG--><P><A HREF="javascript:history.back();window.reload();">Back to <!--BACK--></A> <p><!--MSG--></p><p><a href="javascript:history.back();window.reload();">Back to <!--BACK--></a></p>
diff --git a/theme/msg2.tpl b/theme/msg2.tpl index 59c723e..2010226 100755 --- a/theme/msg2.tpl +++ b/theme/msg2.tpl
@@ -1 +1 @@
<!--MSG--><P><A HREF="<!--LINK-->"><!--BACK--></A> <p><!--MSG--></p><p><a href="<!--LINK-->"><!--BACK--></a></p>
diff --git a/theme/new-comment.tpl b/theme/new-comment.tpl new file mode 100644 index 0000000..0967ed4 --- /dev/null +++ b/theme/new-comment.tpl
@@ -0,0 +1,8 @@
1<div class="module unrounded" id="comment-<!--ID-->">
2 <div id="textBubble-<!--ID-->" class="comment">
3 <img src="http://www.gravatar.com/avatar/<!--CODEDEMAIL-->?s=32&amp;d=identicon&amp;r=G" alt="" />
4 <!--TEXT-->
5 </div>
6</div>
7
8<cite class="light-at-night"><strong><!--USERNAME--></strong> on <!--DATE--></cite>
diff --git a/theme/pingbacks.tpl b/theme/pingbacks.tpl index ced853c..ff4531f 100755 --- a/theme/pingbacks.tpl +++ b/theme/pingbacks.tpl
@@ -1,14 +1,9 @@
1<DIV CLASS="cleardiv"></DIV> 1<div class="cleardiv"></div>
2 2
3<DIV CLASS="bubble"> 3<div class="module rounded">
4 <DIV CLASS="rounded"> 4 <!--BEGIN PINGBACK-->
5 <BLOCKQUOTE> 5 <a href="<!--PINGBACK.URL-->"><!--PINGBACK.TITLE--></a> on <!--PINGBACK.DATE--><br />
6 <DIV> 6 <!--END PINGBACK-->
7 <!--BEGIN PINGBACK--> 7</div>
8 <A HREF="<!--PINGBACK.URL-->"><!--PINGBACK.TITLE--></A> on <!--PINGBACK.DATE--><BR> 8
9 <!--END PINGBACK--> 9<cite class="rounded light-at-night"><strong>Pingbacks</strong></cite>
10 </DIV>
11 </BLOCKQUOTE>
12 </DIV>
13 <CITE CLASS="rounded"><STRONG>Pingbacks</STRONG></CITE>
14</DIV>
diff --git a/theme/poll.tpl b/theme/poll.tpl index c5b08fb..b906f40 100755 --- a/theme/poll.tpl +++ b/theme/poll.tpl
@@ -1,40 +1,24 @@
1<H2><!--QUESTION--></H2> 1<h2 class="light-at-night"><!--QUESTION--></h2>
2<P> 2
3<DIV CLASS="sidebar" STYLE="margin: auto"> 3<div class="module rounded center sidebar">
4 <DIV CLASS="bubble"> 4 <!--POTW-->
5 <DIV CLASS="rounded"> 5</div>
6 <BLOCKQUOTE> 6
7 <DIV ID="hatbar"> 7<div class="module rounded">
8 <P> 8 <!--BEGIN COMPLETE-->
9 <!--INCLUDE polloftheweek--> 9 <!--COMPLETE.RSS-->
10 </P> 10
11 </DIV> 11 <p>
12 </BLOCKQUOTE> 12 <!--COMPLETE.OPTION1--> - <!--COMPLETE.CLICKS1--> vote(s)!<br />
13 </DIV> 13 <!--COMPLETE.OPTION2--> - <!--COMPLETE.CLICKS2--> vote(s)!<br />
14 </DIV> 14 <!--COMPLETE.OPTION3--> - <!--COMPLETE.CLICKS3--> vote(s)!<br />
15</DIV> 15 <!--COMPLETE.OPTION4--> - <!--COMPLETE.CLICKS4--> vote(s)!
16<P> 16 </p>
17<DIV CLASS="bubble"> 17</div>
18 <DIV CLASS="rounded"> 18
19 <BLOCKQUOTE> 19<cite class="rounded"><strong><!--COMPLETE.AUTHOR--></strong> on <!--COMPLETE.DATE--></cite>
20 <DIV> 20<!--END COMPLETE-->
21 <!--BEGIN COMPLETE--> 21<!--BEGIN INCOMPLETE-->
22 <!--COMPLETE.RSS--> 22 The results of this poll of the week are pending. Meanwhile, if you haven't voted yet, why not do so?
23 <P> 23</div>
24 <!--COMPLETE.OPTION1--> - <!--COMPLETE.CLICKS1--> vote(s)!<BR> 24<!--END INCOMPLETE-->
25 <!--COMPLETE.OPTION2--> - <!--COMPLETE.CLICKS2--> vote(s)!<BR>
26 <!--COMPLETE.OPTION3--> - <!--COMPLETE.CLICKS3--> vote(s)!<BR>
27 <!--COMPLETE.OPTION4--> - <!--COMPLETE.CLICKS4--> vote(s)!
28 </DIV>
29 </BLOCKQUOTE>
30 </DIV>
31 <CITE CLASS="rounded"><STRONG><!--COMPLETE.AUTHOR--></STRONG> on <!--COMPLETE.DATE--></CITE>
32 <!--END COMPLETE-->
33 <!--BEGIN INCOMPLETE-->
34 The results of this poll of the week are pending. Meanwhile, if you haven't voted yet, why not do so?
35 </DIV>
36 </BLOCKQUOTE>
37 </DIV>
38 <!--END INCOMPLETE-->
39</DIV>
40</CENTER>
diff --git a/theme/pollIndex.tpl b/theme/pollIndex.tpl index ced43cf..35e7fe2 100755 --- a/theme/pollIndex.tpl +++ b/theme/pollIndex.tpl
@@ -1,35 +1,24 @@
1<H2>Poll of the Week</H2> 1<h2 class="light-at-night">Poll of the Week</h2>
2<P> 2
3<DIV CLASS="sidebar" STYLE="margin: auto"> 3<div class="module rounded sidebar center">
4 <DIV CLASS="bubble"> 4 <!--POTW-->
5 <DIV CLASS="rounded"> 5</div>
6 <BLOCKQUOTE> 6
7 <DIV ID="hatbar"> 7<p class="light-at-night">Welcome to the Poll of the Week! Feel free to vote on these! You can review old ones and also comment on them if you're logged in using the links below!</p>
8 <P> 8
9 <!--INCLUDE polloftheweek--> 9<table class="webmail">
10 </P> 10 <tr><th>Question</th><th>Week</th></tr>
11 </DIV>
12 </BLOCKQUOTE>
13 </DIV>
14 </DIV>
15</DIV>
16<P>
17Welcome to the Poll of the Week! Feel free to vote on these! You can review old ones and also comment on them if
18you're logged in using the links below!
19<P>
20<TABLE CLASS="webmail">
21 <TR><TH>Question</TH><TH>Week</TH></TR>
22 <!--BEGIN POLL--> 11 <!--BEGIN POLL-->
23 <TR<!--POLL.EVEN-->><TD><A HREF="/poll/<!--POLL.ID-->.php"><!--POLL.QUESTION--></A></TD><TD><NOBR><!--POLL.WEEK--></NOBR></TD></TR> 12 <tr<!--POLL.EVEN-->><td><a href="/poll/<!--POLL.ID-->.php"><!--POLL.QUESTION--></a></td><td class="nobr"><!--POLL.WEEK--></td></tr>
24 <!--END POLL--> 13 <!--END POLL-->
25</TABLE> 14</table>
26 15
27<P> 16<p>
28 <!--BEGIN PREVIOUS--> 17 <!--BEGIN PREVIOUS-->
29 <A HREF="/poll/?start=<!--PREVIOUS.ID-->" STYLE="float: left">Previous</A> 18 <a href="/poll/?start=<!--PREVIOUS.ID-->" style="float: left">Previous</a>
30 <!--END PREVIOUS--> 19 <!--END PREVIOUS-->
31 20
32 <!--BEGIN NEXT--> 21 <!--BEGIN NEXT-->
33 <A HREF="/poll/?start=<!--NEXT.ID-->" STYLE="float: right">Next</A> 22 <a href="/poll/?start=<!--NEXT.ID-->" style="float: right">Next</a>
34 <!--END NEXT--> 23 <!--END NEXT-->
35</P> 24</p>
diff --git a/theme/polloftheweek.tpl b/theme/polloftheweek.tpl index d23e92f..2969487 100755 --- a/theme/polloftheweek.tpl +++ b/theme/polloftheweek.tpl
@@ -1,59 +1,59 @@
1<!--BEGIN FORM--> 1<!--BEGIN FORM-->
2<FORM ACTION="/poll/?submit=" METHOD="POST"> 2<div id="potw-ajax">
3 <SPAN STYLE="font-size: 16px; text-align: center"> 3 <span style="font-size: 16px; text-align: center">
4 <!--QUESTION--> 4 <!--QUESTION-->
5 </SPAN> 5 </span>
6 6
7 <BR> 7 <br />
8 8
9 <INPUT TYPE="radio" NAME="options" VALUE="1" ID="option1"> 9 <input type="radio" name="options" value="1" class="option1" />
10 <LABEL FOR="option1"><!--OPTION1--></LABEL> 10 <!--OPTION1-->
11 11
12 <BR> 12 <br />
13 13
14 <INPUT TYPE="radio" NAME="options" VALUE="2" ID="option2"> 14 <input type="radio" name="options" value="2" class="option2" />
15 <LABEL FOR="option2"><!--OPTION2--></LABEL> 15 <!--OPTION2-->
16 16
17 <BR> 17 <br />
18 18
19 <INPUT TYPE="radio" NAME="options" VALUE="3" ID="option3"> 19 <input type="radio" name="options" value="3" class="option3" />
20 <LABEL FOR="option3"><!--OPTION3--></LABEL> 20 <!--OPTION3-->
21 21
22 <BR> 22 <br />
23 23
24 <INPUT TYPE="radio" NAME="options" VALUE="4" ID="option4"> 24 <input type="radio" name="options" value="4" class="option4" />
25 <LABEL FOR="option4"><!--OPTION4--></LABEL> 25 <!--OPTION4-->
26 26
27 <P ALIGN="center"> 27 <p align="center">
28 <INPUT TYPE="submit" VALUE="Vote!"> 28 <button type="button" onclick="jQuery('#potw-ajax').slideUp().load('/poll-results.php?id='+jQuery('#potw-ajax input:radio[name=options]:checked').val()).slideDown();">Vote!</button>
29 </P> 29 </p>
30</FORM> 30</div>
31<!--END FORM--> 31<!--END FORM-->
32 32
33<!--BEGIN DISPLAY--> 33<!--BEGIN DISPLAY-->
34<SPAN STYLE="font-size: 16px; text-align: center"> 34<span style="font-size: 16px; text-align: center">
35 <!--QUESTION--> 35 <!--QUESTION-->
36</SPAN> 36</span>
37 37
38<TABLE WIDTH="100%" BORDER="0" STYLE="font-size: 12px"> 38<table width="100%" border="0" style="font-size: 12px">
39 <TR> 39 <tr>
40 <TD>%<!--PERCENT1--></TD> 40 <td>%<!--PERCENT1--></td>
41 <TD><!--OPTION1--></TD> 41 <td><!--OPTION1--></td>
42 </TR> 42 </tr>
43 43
44 <TR> 44 <tr>
45 <TD>%<!--PERCENT2--></TD> 45 <td>%<!--PERCENT2--></td>
46 <TD><!--OPTION2--></TD> 46 <td><!--OPTION2--></td>
47 </TR> 47 </tr>
48 48
49 <TR> 49 <tr>
50 <TD>%<!--PERCENT3--></TD> 50 <td>%<!--PERCENT3--></td>
51 <TD><!--OPTION3--></TD> 51 <td><!--OPTION3--></td>
52 </TR> 52 </tr>
53 53
54 <TR> 54 <tr>
55 <TD>%<!--PERCENT4--></TD> 55 <td>%<!--PERCENT4--></td>
56 <TD><!--OPTION4--></TD> 56 <td><!--OPTION4--></td>
57 </TR> 57 </tr>
58</TABLE> 58</table>
59<!--END DISPLAY--> 59<!--END DISPLAY-->
diff --git a/theme/post.tpl b/theme/post.tpl index 7f29ff2..2c65e51 100755 --- a/theme/post.tpl +++ b/theme/post.tpl
@@ -1,66 +1,103 @@
1<!--BEGIN INTERNAL--> 1<!--BEGIN INTERNAL-->
2<!--BEGIN BACK--><SPAN CLASS="back-post">&laquo; <A HREF="/blog/<!--BACK.CODED-->/"><!--BACK.TITLE--></A></SPAN><!--END BACK--> 2<!--BEGIN BACK--><span class="back-post">&laquo; <a href="/blog/<!--BACK.CODED-->/"><!--BACK.TITLE--></a></span><!--END BACK-->
3<!--BEGIN NEXT--><SPAN CLASS="next-post"><A HREF="/blog/<!--NEXT.CODED-->/"><!--NEXT.TITLE--></A> &raquo;</SPAN><!--END NEXT--> 3<!--BEGIN NEXT--><span class="next-post"><a href="/blog/<!--NEXT.CODED-->/"><!--NEXT.TITLE--></a> &raquo;</span><!--END NEXT-->
4<!--END INTERNAL--> 4<!--END INTERNAL-->
5 5
6<script type="text/javascript">
7
8function ratePost(id, dir)
9{
10 jQuery("#post-"+id+" .post-rating-up").addClass("post-action-done").html("&lt;img src='/theme/images/icons/thumb_up.png' alt='+1' /&gt;");
11 jQuery("#post-"+id+" .post-rating-down").addClass("post-action-done").html("&lt;img src='/theme/images/icons/thumb_down.png' alt='-1' /&gt;");
12 jQuery("#flash").text("Processing....").slideDown();
13 jQuery.ajax({
14 type: "GET",
15 url: "/vote.php",
16 data: "id="+id+"&amp;dir="+dir,
17 dataType: "text",
18 success: function(msg) {
19 if (msg != "")
20 {
21 jQuery("#post-"+id+" .post-rating").text(msg);
22 jQuery("#flash").text("Your vote has been sucessfully placed.");
23 } else {
24 jQuery("#flash").text("There was an error in placing your vote.");
25 }
26 },
27 error: function() {
28 jQuery("#flash").text("There was an error in placing your vote.");
29 }
30 });
31}
32
33</script>
34
6<!--BEGIN POST--> 35<!--BEGIN POST-->
7<DIV CLASS="post vevent" ID="post-<!--POST.ID-->"> 36<div class="post vevent" id="post-<!--POST.ID-->">
8 <DIV CLASS="post-date-<!--POST.YEARID-->"> 37 <div class="post-date-<!--POST.YEARID-->">
9 <ABBR CLASS="dtstart" TITLE="<!--POST.DATE-->"> 38 <abbr class="dtstart" title="<!--POST.DATE-->">
10 <SPAN CLASS="post-month"><!--POST.MONTH--></SPAN> 39 <span class="post-month"><!--POST.MONTH--></span>
11 <SPAN CLASS="post-day"><!--POST.DAY--></SPAN> 40 <span class="post-day"><!--POST.DAY--></span>
12 </ABBR> 41 </abbr>
13 </DIV> 42 </div>
14 43
15 <DIV CLASS="post-title"> 44 <div class="post-title">
16 <H2> 45 <h2>
17 <!--BEGIN EXTERNAL--><A CLASS="url" HREF="/blog/<!--POST.CODED-->/" REL="bookmark" TITLE="Permalink for <!--POST.TITLE-->"><!--END EXTERNAL--> 46 <!--BEGIN EXTERNAL-->
18 <SPAN CLASS="summary"><!--POST.TITLE--></SPAN> 47 <a class="url" href="/blog/<!--POST.CODED-->/" rel="bookmark" title="Permalink for <!--POST.TITLE-->"><span class="summary"><!--POST.TITLE--></span></a>
19 <!--BEGIN EXTERNAL--></A><!--END EXTERNAL--> 48 <!--END EXTERNAL-->
20 </H2> 49 <!--BEGIN INTERNAL-->
50 <span class="summary light-at-night"><!--POST.TITLE--></span>
51 <!--END INTERNAL-->
52 </h2>
21 53
22 <SPAN CLASS="post-cat-<!--POST.AUTHOR--> category"> 54 <span class="post-cat-<!--POST.AUTHOR--> category">
23 <A HREF="/blog/author/<!--POST.AUTHOR-->.php"><!--POST.AUTHOR--></A> 55 <a href="/blog/author/<!--POST.AUTHOR-->.php"><!--POST.AUTHOR--></a>
24 </SPAN> 56 </span>
25 57
26 <SPAN CLASS="post-tag-3 category"> 58 <span class="post-tag-3 category">
27 <!--BEGIN POST.TAGS--> 59 <!--BEGIN POST.TAGS-->
28 <A CLASS="noVisit" HREF="/blog/tag/<!--POST.TAGS.TAG-->.php" REL="tag" TITLE="<!--POST.TAGS.TAG-->"><!--POST.TAGS.TAG--></A> 60 <a class="noVisit" href="/blog/tag/<!--POST.TAGS.TAG-->.php" rel="tag" title="<!--POST.TAGS.TAG-->"><!--POST.TAGS.TAG--></a>
29 <!--END POST.TAGS--> 61 <!--END POST.TAGS-->
30 </SPAN> 62 </span>
31 63
32 <!--BEGIN EXTERNAL--> 64 <!--BEGIN EXTERNAL-->
33 <SPAN CLASS="post-comment<!--POST.PLURALCOMMENT-->"> 65 <span class="post-comment<!--POST.PLURALCOMMENT-->">
34 <A CLASS="noVisit" HREF="/blog/<!--POST.CODED-->/#comments"><!--POST.COMMENTS-->&nbsp;&#187;</A> 66 <a class="noVisit" href="/blog/<!--POST.CODED-->/#comments"><!--POST.COMMENTS-->&nbsp;&#187;</a>
35 </SPAN> 67 </span>
36 <!--END EXTERNAL--><!--BEGIN INTERNAL--> 68 <!--END EXTERNAL--><!--BEGIN INTERNAL-->
37 <SPAN CLASS="mini-add-comment"> 69 <span class="mini-add-comment">
38 <A CLASS="noVisit" HREF="/blog/<!--POST.CODED-->/#comments">Add Comment&nbsp;&#187;</A> 70 <a class="noVisit" href="/blog/<!--POST.CODED-->/#comments">Add Comment&nbsp;&#187;</a>
39 </SPAN> 71 </span>
40 <!--END INTERNAL--> 72 <!--END INTERNAL-->
41 </DIV> 73 </div>
42 74
43 <DIV CLASS="entry description"> 75 <div class="entry description">
44 <DIV CLASS="bubble"> 76 <div class="module rounded">
45 <DIV CLASS="rounded"> 77 <!--POST.TEXT-->
46 <BLOCKQUOTE>
47 <DIV>
48 <!--POST.TEXT-->
49 78
50 <!--BEGIN POST.EXCERPT--> 79 <!--BEGIN POST.EXCERPT-->
51 <P>[....] <A HREF="/blog/<!--POST.CODED-->/">Click here to read the rest of this post</A>.</P> 80 <p>[....] <a href="/blog/<!--POST.CODED-->/">Click here to read the rest of this post</a>.</p>
52 <!--END POST.EXCERPT--> 81 <!--END POST.EXCERPT-->
53 </DIV> 82 </div>
54 </BLOCKQUOTE> 83
55 </DIV> 84 <cite class="rounded light-at-night"><strong><!--POST.AUTHOR--></strong> on <!--POST.DATE--></cite>
56 <CITE CLASS="rounded"><STRONG><!--POST.AUTHOR--></STRONG> on <!--POST.DATE--></CITE>
57 85
58 <SPAN CLASS="post-vote"> 86 <span class="post-vote">
59 <A HREF="/vote.php?id=<!--POST.ID-->&amp;dir=plus" REL="nofollow"><IMG SRC="/theme/images/icons/thumb_up.png" ALT="+1"></A> 87 <!--BEGIN POST.CANVOTE-->
60 <BIG><!--POST.RATING--></BIG> 88 <span class="post-rating-up"><a href="javascript:ratePost('<!--POST.ID-->','plus');" rel="nofollow"><img src="/theme/images/icons/thumb_up.png" alt="+1" /></a></span>
61 <A HREF="/vote.php?id=<!--POST.ID-->&amp;dir=minus" REL="nofollow"><IMG SRC="/theme/images/icons/thumb_down.png" ALT="-1"></A> 89 <!--END POST.CANVOTE-->
62 </SPAN> 90 <!--BEGIN POST.NOVOTE-->
63 </DIV> 91 <span class="post-rating-up post-action-done"><img src="/theme/images/icons/thumb_up.png" alt="-1" /></span>
64 </DIV> 92 <!--END POST.NOVOTE-->
65</DIV> 93 <span class="post-rating light-at-night"><!--POST.RATING--></span>
94 <!--BEGIN POST.CANVOTE-->
95 <span class="post-rating-down"><a href="javascript:ratePost('<!--POST.ID-->','minus');" rel="nofollow"><img src="/theme/images/icons/thumb_down.png" alt="-1" /></a></span>
96 <!--END POST.CANVOTE-->
97 <!--BEGIN POST.NOVOTE-->
98 <span class="post-rating-down post-action-done"><img src="/theme/images/icons/thumb_down.png" alt="-1" /></span>
99 <!--END POST.NOVOTE-->
100 </span>
101 </div>
102</div>
66<!--END POST--> 103<!--END POST-->
diff --git a/theme/postLogin.tpl b/theme/postLogin.tpl deleted file mode 100755 index 31dce48..0000000 --- a/theme/postLogin.tpl +++ /dev/null
@@ -1,16 +0,0 @@
1<H1>Four Island Login Page</H1>
2
3<P>
4 <CENTER>Congradulations, you've logged in!<BR>
5 You can now:
6 <UL>
7 <LI>Comment on the blog posts</LI>
8 <LI>Comment on Projects</LI>
9 <LI>Comment on Flash Games</LI>
10 <LI>Comment on a whole lot of other things I can't remember right now</LI>
11 <LI>Update your userpage</LI>
12 <LI>More soon...</LI>
13 </UL>
14 <A HREF="<!--REDIRECT-->">Click here to return to the page you were on.</A>
15 </CENTER>
16</P>
diff --git a/theme/quotes/add.tpl b/theme/quotes/add.tpl index 3ae8d3b..6c45876 100755 --- a/theme/quotes/add.tpl +++ b/theme/quotes/add.tpl
@@ -1,16 +1,16 @@
1<DIV CLASS="cleardiv"></DIV> 1<div class="cleardiv"></div>
2 2
3<H1>Contribute</H1> 3<h1 class="light-at-night">Contribute</h1>
4 4
5<!--BEGIN SUBMITTED--> 5<!--BEGIN SUBMITTED-->
6 <P>The quote you have submitted is:</P> 6 <p class="light-at-night">The quote you have submitted is:</p>
7 <P><CODE><!--SUBMITTED.QUOTE--></CODE></P> 7 <p class="light-at-night"><code><!--SUBMITTED.QUOTE--></code></p>
8 <P>If this is not the quote you have entered, please contact the administrator and explain your problem. 8 <p class="light-at-night">If this is not the quote you have entered, please contact the administrator and explain your problem.
9 Also, there is no need to press the submit button again. You're quote has already been sent.</P> 9 Also, there is no need to press the submit button again. You're quote has already been sent.</p>
10<!--END SUBMITTED--> 10<!--END SUBMITTED-->
11 11
12<FORM ACTION="/quotes/add.php?submit=" METHOD="POST"> 12<form action="/quotes/add.php?submit=" method="POST">
13 <TEXTAREA COLS="80" ROWS="5" NAME="rash_quote"></TEXTAREA><BR> 13 <textarea cols="80" rows="5" name="rash_quote"></textarea><br />
14 <INPUT TYPE="submit" VALUE="Add Quote!"> 14 <input type="submit" value="Add Quote!" />
15 <INPUT TYPE="reset" VALUE="Reset"> 15 <input type="reset" value="Reset" />
16</FORM> 16</form>
diff --git a/theme/quotes/browse.tpl b/theme/quotes/browse.tpl index 8726802..d710d3f 100755 --- a/theme/quotes/browse.tpl +++ b/theme/quotes/browse.tpl
@@ -1,24 +1,92 @@
1<DIV CLASS="cleardiv"></DIV> 1<div class="cleardiv"></div>
2
3<script type="text/javascript">
4
5function voteQuote(id, dir)
6{
7 jQuery("#quote-"+id+" .quote-rating-up").addClass("quote-action-done").text("+");
8 jQuery("#quote-"+id+" .quote-rating-down").addClass("quote-action-done").text("-");
9 jQuery("#quote-"+id+" .quote-update-result").text("Processing....");
10 jQuery.ajax({
11 type: "GET",
12 url: "/quotes/vote.php",
13 data: "id="+id+"&amp;dir="+dir,
14 dataType: "text",
15 success: function(msg) {
16 if (msg != "")
17 {
18 jQuery("#quote-"+id+" .quote-vote-count").text(msg);
19 jQuery("#quote-"+id+" .quote-update-result").text("Done");
20 } else {
21 jQuery("#quote-"+id+" .quote-update-result").text("Error");
22 }
23 },
24 error: function() {
25 jQuery("#quote-"+id+" .quote-update-result").text("Error");
26 }
27 });
28}
29
30function flagQuote(id)
31{
32 jQuery("#quote-"+id+" .quote-report").addClass("quote-action-done").text("[X]");
33 jQuery("#quote-"+id+" .quote-update-result").text("Processing....");
34 jQuery.ajax({
35 type: "GET",
36 url: "/quotes/flag.php",
37 data: "id="+id,
38 dataType: "text",
39 success: function(msg) {
40 if (msg == "1")
41 {
42 jQuery("#quote-"+id+" .quote-update-result").text("Done");
43 } else {
44 jQuery("#quote-"+id+" .quote-update-result").text("Error");
45 }
46 },
47 error: function() {
48 jQuery("#quote-"+id+" .quote-update-result").text("Error");
49 }
50 });
51}
52
53</script>
2 54
3<!--BEGIN PAGENUMBERS--> 55<!--BEGIN PAGENUMBERS-->
4<!--INCLUDE quotes/pagenumbers--> 56<!--INCLUDE quotes/pagenumbers-->
5<!--END PAGENUMBERS--> 57<!--END PAGENUMBERS-->
6 58
7<H2><!--ORIGIN--></H2> 59<h2 class="light-at-night"><!--ORIGIN--></h2>
8 60
61<ul class="quote-list">
9<!--BEGIN QUOTES--> 62<!--BEGIN QUOTES-->
10<P> 63 <li id="quote-<!--QUOTES.NUMBER-->" class="quote">
11 <A HREF="/quotes/<!--QUOTES.NUMBER-->.php">#<!--QUOTES.NUMBER--></A> 64 <h3 class="quote-header">
12 <A HREF="/quotes/vote.php?id=<!--QUOTES.NUMBER-->&amp;dir=plus">+</A> 65 <a class="quote-permalink" href="/quotes/<!--QUOTES.NUMBER-->.php">#<!--QUOTES.NUMBER--></a>
13 <SPAN>(<!--QUOTES.RATING-->)</SPAN> 66 <!--BEGIN QUOTES.CANVOTE-->
14 <A HREF="/quotes/vote.php?id=<!--QUOTES.NUMBER-->&amp;dir=minus">-</A> 67 <span class="quote-rating-up"><a href="javascript:voteQuote('<!--QUOTES.NUMBER-->','plus');" rel="nofollow">+</a></span>
15 <A HREF="/quotes/flag.php?id=<!--QUOTES.NUMBER-->">[X]</A> 68 (<span class="quote-vote-count"><!--QUOTES.RATING--></span>)
16 69 <span class="quote-rating-down"><a href="javascript:voteQuote('<!--QUOTES.NUMBER-->','minus');" rel="nofollow">-</a></span>
17 <BR> 70 <!--END QUOTES.CANVOTE-->
71 <!--BEGIN QUOTES.NOVOTE-->
72 <span class="quote-rating-up quote-action-done">+</span>
73 (<span class="quote-vote-count"><!--QUOTES.RATING--></span>)
74 <span class="quote-rating-down quote-action-done">-</span>
75 <!--END QUOTES.NOVOTE-->
76 <!--BEGIN QUOTES.CANFLAG-->
77 <span class="quote-report"><a href="javascript:flagQuote('<!--QUOTES.NUMBER-->');" rel="nofollow">[X]</a></span>
78 <!--END QUOTES.CANFLAG-->
79 <!--BEGIN QUOTES.NOFLAG-->
80 <span class="quote-report quote-action-done">[X]</span>
81 <!--END QUOTES.NOFLAG-->
82 <span class="quote-date"><!--QUOTES.DATE--></span>
83 <span class="quote-update-result"><!--QUOTES.COMMENTS--></span>
84 </h3>
18 85
19 <!--QUOTES.QUOTE--> 86 <blockquote class="quote-body"><!--QUOTES.QUOTE--></blockquote>
20</P> 87 </li>
21<!--END QUOTES--> 88<!--END QUOTES-->
89</ul>
22 90
23<!--BEGIN PAGENUMBERS--> 91<!--BEGIN PAGENUMBERS-->
24<!--INCLUDE quotes/pagenumbers--> 92<!--INCLUDE quotes/pagenumbers-->
diff --git a/theme/quotes/pagenumbers.tpl b/theme/quotes/pagenumbers.tpl index 56bedef..57533be 100755 --- a/theme/quotes/pagenumbers.tpl +++ b/theme/quotes/pagenumbers.tpl
@@ -1,17 +1,17 @@
1<DIV CLASS="cleardiv"></DIV> 1<div class="cleardiv"></div>
2 2
3<CENTER> 3<center>
4 <A HREF="/quotes/<!--LORIGIN-->.php">First</A>&nbsp;&nbsp; 4 <a href="/quotes/<!--LORIGIN-->.php">First</a>&nbsp;&nbsp;
5 <A HREF="/quotes/<!--LORIGIN-->.php?page=<!--MINUSTEN-->">-10</A>&nbsp;&nbsp; 5 <a href="/quotes/<!--LORIGIN-->.php?page=<!--MINUSTEN-->">-10</a>&nbsp;&nbsp;
6 <!--BDDD--> 6 <span class="light-at-night"><!--BDDD--></span>
7 <!--BEGIN BPAGES--> 7 <!--BEGIN BPAGES-->
8 <A HREF="/quotes/<!--LORIGIN-->.php?page=<!--BPAGES.PAGENUM-->"><!--BPAGES.PAGENUM--></A>&nbsp;&nbsp; 8 <a href="/quotes/<!--LORIGIN-->.php?page=<!--BPAGES.PAGENUM-->"><!--BPAGES.PAGENUM--></a>&nbsp;&nbsp;
9 <!--END BPAGES--> 9 <!--END BPAGES-->
10 <!--CURPAGE-->&nbsp;&nbsp; 10 <span class="light-at-night"><!--CURPAGE--></span>&nbsp;&nbsp;
11 <!--BEGIN APAGES--> 11 <!--BEGIN APAGES-->
12 <A HREF="/quotes/<!--LORIGIN-->.php?page=<!--APAGES.PAGENUM-->"><!--APAGES.PAGENUM--></A>&nbsp;&nbsp; 12 <a href="/quotes/<!--LORIGIN-->.php?page=<!--APAGES.PAGENUM-->"><!--APAGES.PAGENUM--></a>&nbsp;&nbsp;
13 <!--END APAGES--> 13 <!--END APAGES-->
14 <!--ADDD--> 14 <span class="light-at-night"><!--ADDD--></span>
15 <A HREF="/quotes/<!--LORIGIN-->.php?page=<!--PLUSTEN-->">+10</A>&nbsp;&nbsp; 15 <a href="/quotes/<!--LORIGIN-->.php?page=<!--PLUSTEN-->">+10</a>&nbsp;&nbsp;
16 <A HREF="/quotes/<!--LORIGIN-->.php?page=<!--LASTPAGE-->">Last</A>&nbsp;&nbsp; 16 <a href="/quotes/<!--LORIGIN-->.php?page=<!--LASTPAGE-->">Last</a>&nbsp;&nbsp;
17</CENTER> 17</center>
diff --git a/theme/quotes/search.tpl b/theme/quotes/search.tpl index 60c0afc..6b123f4 100755 --- a/theme/quotes/search.tpl +++ b/theme/quotes/search.tpl
@@ -1,19 +1,19 @@
1<DIV CLASS="cleardiv"></DIV> 1<div class="cleardiv"></div>
2 2
3<H1>Search</H1> 3<h1 class="light-at-night">Search</h1>
4 4
5<FORM METHOD="POST" ACTION="/quotes/search.php?fetch="> 5<form method="POST" action="/quotes/search.php?fetch=">
6 <INPUT TYPE="text" NAME="search" SIZE="28">&nbsp; 6 <input type="text" name="search" size="28" />&nbsp;
7 <INPUT TYPE="submit" NAME="submit"><BR> 7 <input type="submit" name="submit" /><br />
8 Sort: <SELECT NAME="sortby" SIZE="1"> 8 <span class="light-at-night">Sort:</span> <select name="sortby" size="1">
9 <OPTION SELECTED>Rating</OPTION> 9 <option selected="selected">Rating</option>
10 <OPTION>ID</OPTION> 10 <option>ID</option>
11 </SELECT>&nbsp; 11 </select>&nbsp;
12 How many: <SELECT NAME="number" SIZE="1"> 12 <span class="light-at-night">How many:</span> <select name="number" size="1">
13 <OPTION SELECTED>10</OPTION> 13 <option selected="selected">10</option>
14 <OPTION>25</OPTION> 14 <option>25</option>
15 <OPTION>50</OPTION> 15 <option>50</option>
16 <OPTION>75</OPTION> 16 <option>75</option>
17 <OPTION>100</OPTION> 17 <option>100</option>
18 </SELECT> 18 </select>
19</FORM> 19</form>
diff --git a/theme/related.tpl b/theme/related.tpl index abba96e..783b253 100755 --- a/theme/related.tpl +++ b/theme/related.tpl
@@ -1,14 +1,9 @@
1<DIV CLASS="cleardiv"></DIV> 1<div class="cleardiv"></div>
2 2
3<DIV CLASS="bubble"> 3<div class="module rounded">
4 <DIV CLASS="rounded"> 4 <!--BEGIN POST-->
5 <BLOCKQUOTE> 5 <a href="/blog/<!--POST.CODED-->/"><!--POST.TITLE--></a> by <a href="/blog/author/<!--POST.AUTHOR-->.php"><!--POST.AUTHOR--></a> on <!--POST.DATE--><br />
6 <DIV> 6 <!--END POST-->
7 <!--BEGIN POST--> 7</div>
8 <A HREF="/blog/<!--POST.CODED-->/"><!--POST.TITLE--></A> by <A HREF="/blog/author/<!--POST.AUTHOR-->.php"><!--POST.AUTHOR--></A> on <!--POST.DATE--><BR> 8
9 <!--END POST--> 9<cite class="rounded light-at-night"><strong>Theoretically Related Posts</strong></cite>
10 </DIV>
11 </BLOCKQUOTE>
12 </DIV>
13 <CITE CLASS="rounded"><STRONG>Theoretically Related Posts</STRONG></CITE>
14</DIV>