From 893957c41481a0cd5eb624096337762ffa54ff28 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sun, 9 Aug 2009 09:14:58 -0400 Subject: 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 post (the < 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'); --- .hgignore | 1 + .htaccess | 2 +- includes/bbcode.php | 66 +++-- includes/comments.php | 6 +- includes/footer.php | 322 ++++++++-------------- includes/functions.php | 48 +++- includes/header.php | 47 ++-- includes/smilies.php | 2 +- includes/specialdates.php | 52 +++- index.php | 1 + pages/admin.php | 13 +- pages/blog.php | 23 +- pages/holidates.php | 35 ++- pages/poll-results.php | 54 ++++ pages/poll.php | 29 +- pages/post.php | 103 ++++--- pages/quotes.php | 261 +++++++++--------- pages/vote.php | 42 +-- pages/welcome.php | 22 +- theme/addresses.tpl | 8 +- theme/admin/deleteDraft.tpl | 8 +- theme/admin/deletePending.tpl | 8 +- theme/admin/deletePost.tpl | 8 +- theme/admin/deletedDraft.tpl | 8 +- theme/admin/deletedPending.tpl | 8 +- theme/admin/deletedPost.tpl | 8 +- theme/admin/draftSuccess.tpl | 12 +- theme/admin/editDraft.tpl | 26 +- theme/admin/editPending.tpl | 14 +- theme/admin/editPost.tpl | 14 +- theme/admin/index.tpl | 46 ++-- theme/admin/maintenanceMode.tpl | 24 +- theme/admin/manageDrafts.tpl | 36 +-- theme/admin/managePending.tpl | 40 +-- theme/admin/managePendingQuotes.tpl | 30 +- theme/admin/managePosts.tpl | 36 +-- theme/admin/moderateComments.tpl | 36 +-- theme/admin/newPoll.tpl | 18 +- theme/admin/pendingSuccess.tpl | 12 +- theme/admin/pollrss.tpl | 10 +- theme/admin/postSuccess.tpl | 12 +- theme/admin/viewComment.tpl | 20 +- theme/admin/write.tpl | 26 +- theme/archive.tpl | 6 +- theme/comments.tpl | 130 +++++---- theme/css.php | 32 +-- theme/css/blog.php | 18 +- theme/css/bubbles.css | 91 +++--- theme/css/day.css | 4 - theme/css/holiday.php | 43 ++- theme/css/ie.css | 44 --- theme/css/night.css | 25 -- theme/css/print.css | 38 ++- theme/css/quotes.css | 61 ++++ theme/css/website.css | 458 +++++++++++++++---------------- theme/datefinder.tpl | 0 theme/errors/404.tpl | 202 +++++++------- theme/footer.tpl | 91 +++--- theme/fuhsdiufgsadiufgaisfioas.tpl | 4 +- theme/header.tpl | 293 +++++++++++++------- theme/holidates.tpl | 15 + theme/images/fourisland_header.png | Bin 24124 -> 0 bytes theme/images/fourisland_header_night.png | Bin 19678 -> 0 bytes theme/images/header-repeat.png | Bin 0 -> 218 bytes theme/images/header.png | Bin 0 -> 16617 bytes theme/images/icons/xhtml_valid.png | Bin 0 -> 718 bytes theme/images/no-ie6.png | Bin 18666 -> 0 bytes theme/login.tpl | 17 -- theme/maintenance.tpl | 8 +- theme/msg.tpl | 2 +- theme/msg2.tpl | 2 +- theme/new-comment.tpl | 8 + theme/pingbacks.tpl | 21 +- theme/poll.tpl | 64 ++--- theme/pollIndex.tpl | 43 ++- theme/polloftheweek.tpl | 86 +++--- theme/post.tpl | 135 +++++---- theme/postLogin.tpl | 16 -- theme/quotes/add.tpl | 22 +- theme/quotes/browse.tpl | 92 ++++++- theme/quotes/pagenumbers.tpl | 24 +- theme/quotes/search.tpl | 34 +-- theme/related.tpl | 21 +- 83 files changed, 2019 insertions(+), 1728 deletions(-) create mode 100644 pages/poll-results.php mode change 100755 => 100644 theme/css.php delete mode 100755 theme/css/day.css delete mode 100644 theme/css/ie.css delete mode 100755 theme/css/night.css create mode 100644 theme/css/quotes.css mode change 100755 => 100644 theme/css/website.css delete mode 100755 theme/datefinder.tpl mode change 100755 => 100644 theme/footer.tpl mode change 100755 => 100644 theme/header.tpl create mode 100644 theme/holidates.tpl delete mode 100755 theme/images/fourisland_header.png delete mode 100644 theme/images/fourisland_header_night.png create mode 100644 theme/images/header-repeat.png create mode 100644 theme/images/header.png create mode 100644 theme/images/icons/xhtml_valid.png delete mode 100755 theme/images/no-ie6.png delete mode 100755 theme/login.tpl create mode 100644 theme/new-comment.tpl delete mode 100755 theme/postLogin.tpl diff --git a/.hgignore b/.hgignore index 9747ba0..c55862b 100644 --- a/.hgignore +++ b/.hgignore @@ -1 +1,2 @@ ^images +~$ diff --git a/.htaccess b/.htaccess index 3fd4fe2..bb11dba 100755 --- a/.htaccess +++ b/.htaccess @@ -1,4 +1,4 @@ -ErrorDocument 404 http://fourisland.com/error/404.php +ErrorDocument 404 /error/404.php RewriteEngine On 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 function init() { - $this->bbcodes['b'] = '{CONTENT}'; - $this->bbcodes['i'] = '{CONTENT}'; - $this->bbcodes['u'] = '{CONTENT}'; - $this->bbcodes['url'] = '{CONTENT}'; - $this->bbcodes2['url'] = '{CONTENT}'; - $this->bbcodes['img'] = 'Image'; - $this->bbcodes2['img'] = '{PARAM}'; - $this->bbcodes['big'] = '{CONTENT}'; - $this->bbcodes['small'] = '{CONTENT}'; - $this->bbcodes['ul'] = ''; - $this->bbcodes['ol'] = '
    {CONTENT}
'; - $this->bbcodes['li'] = '
  • {CONTENT}
  • '; - $this->bbcodes['code'] = '{CONTENT}'; - $this->bbcodes['pre'] = '

    {CONTENT}
    '; - $this->bbcodes2['blog'] = '{CONTENT}'; - $this->bbcodes2['quote'] = '{CONTENT}'; - $this->bbcodes['ins'] = '{CONTENT}'; - $this->bbcodes['del'] = '{CONTENT}'; - $this->bbcodes['bquote'] = '

    {CONTENT}
    Anonymous
    '; - $this->bbcodes2['bquote'] = '

    {CONTENT}
    {PARAM}
    '; - $this->bbcodes2['abbr'] = '{CONTENT}'; - $this->bbcodes['hidden'] = '{CONTENT}'; - $this->bbcodes['thumb'] = 'Image'; - $this->bbcodes['thumb2'] = 'Image'; + $this->bbcodes['b'] = '{CONTENT}'; + $this->bbcodes['i'] = '{CONTENT}'; + $this->bbcodes['u'] = '{CONTENT}'; + $this->bbcodes['url'] = '{CONTENT}'; + $this->bbcodes2['url'] = '{CONTENT}'; + $this->bbcodes['img'] = 'Image'; + $this->bbcodes2['img'] = '{PARAM}'; + $this->bbcodes['big'] = '{CONTENT}'; + $this->bbcodes['small'] = '{CONTENT}'; + $this->bbcodes['ul'] = ''; + $this->bbcodes['ol'] = '
      {CONTENT}
    '; + $this->bbcodes['li'] = '
  • {CONTENT}
  • '; + $this->bbcodes['code'] = '{CONTENT}'; + $this->bbcodes['pre'] = '
    {CONTENT}
    '; + $this->bbcodes['pref'] = '
    {CONTENT}
    '; + $this->bbcodes2['blog'] = '{CONTENT}'; + $this->bbcodes['quote'] = '#{CONTENT}'; + $this->bbcodes2['quote'] = '{CONTENT}'; + $this->bbcodes['ins'] = '{CONTENT}'; + $this->bbcodes['del'] = '{CONTENT}'; + $this->bbcodes['bquote'] = '
    {CONTENT}
    Anonymous
    '; + $this->bbcodes2['bquote'] = '
    {CONTENT}
    {PARAM}
    '; + $this->bbcodes2['abbr'] = '{CONTENT}'; + $this->bbcodes['hidden'] = '{CONTENT}'; + $this->bbcodes['thumb'] = 'Image'; + $this->bbcodes['thumb2'] = 'Image'; + $this->bbcodes['project'] = '{CONTENT}'; $this->init = true; } @@ -73,8 +76,15 @@ class BBCode { $bbcode_uid = unique_id(); $bbpos = strpos($to_parse, '[' . $name . ']'); - $to_parse = substr_replace($to_parse, '[' . $name . ':' . $bbcode_uid . ']', $bbpos, strlen($name) + 2); - $to_parse = substr_replace($to_parse, '[/' . $name . ':' . $bbcode_uid . ']', strpos(substr($to_parse, $bbpos), '[/' . $name . ']') + $bbpos, strlen($name) + 3); + $otag = '[' . $name . ':' . $bbcode_uid . ']'; + $ctag = '[/' . $name . ':' . $bbcode_uid . ']'; + $to_parse = substr_replace($to_parse, $otag, $bbpos, strlen($name) + 2); + $to_parse = substr_replace($to_parse, $ctag, strpos(substr($to_parse, $bbpos), '[/' . $name . ']') + $bbpos, strlen($name) + 3); + + if (strpos($this->bbcodes[$name], '
    ') !== -1)
    +				{
    +					$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)));
    +				}
     
     				$value = str_replace('{CONTENT}', '\1', $value);
     				$to_parse = preg_replace('/\[' . $name . ':' . $bbcode_uid . '\](.*)\[\/' . $name . ':' . $bbcode_uid . '\]/', $value, $to_parse);
    @@ -96,13 +106,13 @@ class BBCode
     			}
     		}
     
    -		return str_replace('[br]','
    ',$to_parse); + return str_replace('[br]','
    ',$to_parse); } } function parseBBCode($text) { - global $bbcode; + static $bbcode; if (!isset($bbcode)) { $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)) if (isset($username)) { $template->add_ref($curID, 'COMMENTS', array( 'CODEDEMAIL' => md5(strtolower($email)), - 'USERNAME' => (($website != '') ? '' . $username . '' : $username), - 'DATE' => date("F dS Y \a\\t g:i:s a",strtotime($getcomments3[$i]['posttime'])), + 'USERNAME' => (($website != '') ? '' . $username . '' : $username), + 'DATE' => date("F jS Y \a\\t g:i:s a",strtotime($getcomments3[$i]['posttime'])), 'ID' => $getcomments3[$i]['id'], 'TEXT' => parseText($getcomments3[$i]['comment']))); @@ -78,7 +78,7 @@ while ($getcomments3[$i] = mysql_fetch_array($getcomments2)) { if ((isAdmin()) || (($getcomments3[$i]['is_anon'] == 0) && (getSessionUserID() === $getcomments3[$i]['user_id']))) { - $template->adds_ref_sub($curID, 'EDITOR', array('BEFORE' => $getcomments3[$i]['comment'])); + $template->adds_ref_sub($curID, 'EDITOR', array('BEFORE' => htmlspecialchars($getcomments3[$i]['comment']))); } } } 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'); $template = new FITemplate('footer'); -if (isset($extraSidebars)) -{ - $template->adds_block('EXTRA', array('SIDEBARS' => $extraSidebars)); -} - if (isset($onFourm)) { $template->adds_block('ONFOURM',array('exi'=>1)); } -if (!isset($noRightbar)) +$getcomments = "SELECT * FROM comments ORDER BY id DESC LIMIT 0,5"; +$getcomments2 = mysql_query($getcomments); +$i=0; +while ($getcomments3[$i] = mysql_fetch_array($getcomments2)) { - $template->adds_block('RIGHTBAR',array('exi'=>1)); - - if (!isset($noHatNav)) - { - $cnthatnav = "SELECT COUNT(*) FROM hatnav WHERE category = \"" . $pageCategory . "\""; - $cnthatnav2 = mysql_query($cnthatnav); - $cnthatnav3 = mysql_fetch_array($cnthatnav2); + if ($getcomments3[$i]['is_anon'] == 0) + { + $getuser = "SELECT * FROM phpbb_users WHERE user_id = " . $getcomments3[$i]['user_id']; + $getuser2 = mysql_query($getuser); + $getuser3 = mysql_fetch_array($getuser2); - if ($cnthatnav3['COUNT(*)'] > 0) + $username = $getuser3['username']; + $website = $getuser3['user_website']; + } else if ($getcomments3[$i]['is_anon'] == 1) { - $template->adds_block('USEHATNAV', array('exi'=>1)); - if (!isset($genHatNav)) - { - $gethnis = 'SELECT * FROM hatnav WHERE category = "' . $pageCategory . '"'; - $gethnis2 = mysql_query($gethnis); - $i=0; - while ($gethnis3[$i] = mysql_fetch_array($gethnis2)) - { - $template->adds_block('HATNAV', array( 'AID' => $gethnis3[$i]['AID'], - 'HREF' => $gethnis3[$i]['href'], - 'IMAGE' => '/theme/images/icons/' . $gethnis3[$i]['image'] . '.png', - 'TEXT' => $gethnis3[$i]['text'], - 'NEW' => dispIfNotOld($gethnis3[$i]['lastEdit']))); - $i++; - } - } else { - $i=0; - while ($i < $genHatNavNum) + $getanon = "SELECT * FROM anon_commenters WHERE id = " . $getcomments3[$i]['user_id']; + $getanon2 = mysql_query($getanon); + $getanon3 = mysql_fetch_array($getanon2); + + if ($getanon3['id'] == $getcomments3[$i]['user_id']) { - $template->adds_block('HATNAV', array( 'AID' => 'post', - 'HREF' => $genHatNav[$i]['href'], - 'IMAGE' => '/theme/images/blue.PNG', - 'TEXT' => $genHatNav[$i]['text'], - 'NEW' => '')); - $i++; + $username = $getanon3['username'] . ' (Guest)'; + $website = $getanon3['website']; } - } } - } - include('pages/polloftheweek.php'); - - $getpopular = "SELECT * FROM updates ORDER BY popularity DESC LIMIT 0,5"; - $getpopular2 = mysql_query($getpopular); - $i=0; - while ($getpopular3[$i] = mysql_fetch_array($getpopular2)) + if (strpos($getcomments3[$i]['page_id'], 'updates') !== FALSE) { - $template->adds_block('POPULAR', array( 'CODED' => $getpopular3[$i]['slug'], - 'TITLE' => stripslashes($getpopular3[$i]['title']))); + $getpost = "SELECT * FROM updates WHERE id = " . substr($getcomments3[$i]['page_id'],strpos($getcomments3[$i]['page_id'],'-')+1); + $getpost2 = mysql_query($getpost); + $getpost3 = mysql_fetch_array($getpost2); + + $template->adds_block('COMMENTS', array( 'ID' => $getcomments3[$i]['id'], + 'AREA' => 'blog', + 'CODED' => $getpost3['slug'], + 'ENDING' => '/', + 'TITLE' => stripslashes($getpost3['title']), + 'AUTHOR' => (($website != '') ? '' . $username . '' : $username))); $i++; - } - - $getcomments = "SELECT * FROM comments ORDER BY id DESC LIMIT 0,5"; - $getcomments2 = mysql_query($getcomments); - $i=0; - while ($getcomments3[$i] = mysql_fetch_array($getcomments2)) + } else if (strpos($getcomments3[$i]['page_id'], 'quote') !== FALSE) { - if ($getcomments3[$i]['is_anon'] == 0) - { - $getuser = "SELECT * FROM phpbb_users WHERE user_id = " . $getcomments3[$i]['user_id']; - $getuser2 = mysql_query($getuser); - $getuser3 = mysql_fetch_array($getuser2); - - $username = $getuser3['username']; - $website = $getuser3['user_website']; - } else if ($getcomments3[$i]['is_anon'] == 1) - { - $getanon = "SELECT * FROM anon_commenters WHERE id = " . $getcomments3[$i]['user_id']; - $getanon2 = mysql_query($getanon); - $getanon3 = mysql_fetch_array($getanon2); - - if ($getanon3['id'] == $getcomments3[$i]['user_id']) - { - $username = $getanon3['username'] . ' (Guest)'; - $website = $getanon3['website']; - } - } - - if (strpos($getcomments3[$i]['page_id'], 'updates') !== FALSE) - { - $getpost = "SELECT * FROM updates WHERE id = " . substr($getcomments3[$i]['page_id'],strpos($getcomments3[$i]['page_id'],'-')+1); - $getpost2 = mysql_query($getpost); - $getpost3 = mysql_fetch_array($getpost2); - - $template->adds_block('COMMENTS', array( 'ID' => $getcomments3[$i]['id'], - 'AREA' => 'blog', - 'CODED' => $getpost3['slug'], - 'ENDING' => '/', - 'TITLE' => stripslashes($getpost3['title']), - 'AUTHOR' => (($website != '') ? '' . $username . '' : $username))); - $i++; - } else if (strpos($getcomments3[$i]['page_id'], 'quote') !== FALSE) - { - $num = substr($getcomments3[$i]['page_id'],strpos($getcomments3[$i]['page_id'],'-')+1); - - $template->adds_block('COMMENTS', array( 'ID' => $getcomments3[$i]['id'], - 'AREA' => 'quotes', - 'CODED' => $num, - 'ENDING' => '.php', - 'TITLE' => 'Quote #' . $num, - 'AUTHOR' => (($website != '') ? '' . $username . '' : $username))); - $i++; - } else if (strpos($getcomments3[$i]['page_id'], 'polloftheweek') !== FALSE) - { - $getpotw = "SELECT * FROM polloftheweek WHERE id = " . substr($getcomments3[$i]['page_id'],strpos($getcomments3[$i]['page_id'],'-')+1); - $getpotw2 = mysql_query($getpotw); - $getpotw3 = mysql_fetch_array($getpotw2); - - $template->adds_block('COMMENTS', array( 'ID' => $getcomments3[$i]['id'], - 'AREA' => 'poll', - 'CODED' => $getpotw3['id'], - 'ENDING' => '.php', - 'TITLE' => 'Poll "' . $getpotw3['question'] . '"', - 'AUTHOR' => (($website != '') ? '' . $username . '' : $username))); - $i++; - } - } - - $users = array(); - $getusers = "SELECT DISTINCT user_id FROM comments WHERE is_anon = 0"; - $getusers2 = mysql_query($getusers); - $i=0; - while ($getusers3[$i] = mysql_fetch_array($getusers2)) + $num = substr($getcomments3[$i]['page_id'],strpos($getcomments3[$i]['page_id'],'-')+1); + + $template->adds_block('COMMENTS', array( 'ID' => $getcomments3[$i]['id'], + 'AREA' => 'quotes', + 'CODED' => $num, + 'ENDING' => '.php', + 'TITLE' => 'Quote #' . $num, + 'AUTHOR' => (($website != '') ? '' . $username . '' : $username))); + $i++; + } else if (strpos($getcomments3[$i]['page_id'], 'polloftheweek') !== FALSE) { - $getcount = "SELECT COUNT(*) FROM comments WHERE user_id = " . $getusers3[$i]['user_id']; - $getcount2 = mysql_query($getcount); - $getcount3 = mysql_fetch_array($getcount2); - - $getuser = "SELECT * FROM phpbb_users WHERE user_id = " . $getusers3[$i]['user_id']; - $getuser2 = mysql_query($getuser); - $getuser3 = mysql_fetch_array($getuser2); - - $username = $getuser3['username']; - $website = $getuser3['user_website']; - - $name = (($website != '') ? '' . $username . '' : $username); - $users[] = array('name' => $name, 'count' => $getcount3['COUNT(*)']); - - $i++; + $getpotw = "SELECT * FROM polloftheweek WHERE id = " . substr($getcomments3[$i]['page_id'],strpos($getcomments3[$i]['page_id'],'-')+1); + $getpotw2 = mysql_query($getpotw); + $getpotw3 = mysql_fetch_array($getpotw2); + + $template->adds_block('COMMENTS', array( 'ID' => $getcomments3[$i]['id'], + 'AREA' => 'poll', + 'CODED' => $getpotw3['id'], + 'ENDING' => '.php', + 'TITLE' => 'Poll "' . $getpotw3['question'] . '"', + 'AUTHOR' => (($website != '') ? '' . $username . '' : $username))); + $i++; } +} - function count_sort($a, $b) - { - $a = $a['count']; - $b = $b['count']; +$users = array(); +$getusers = "SELECT DISTINCT user_id FROM comments WHERE is_anon = 0"; +$getusers2 = mysql_query($getusers); +$i=0; +while ($getusers3[$i] = mysql_fetch_array($getusers2)) +{ + $getcount = "SELECT COUNT(*) FROM comments WHERE user_id = " . $getusers3[$i]['user_id']; + $getcount2 = mysql_query($getcount); + $getcount3 = mysql_fetch_array($getcount2); - if ($a > $b) - { - return -1; - } else if ($a < $b) - { - return 1; - } else { - return 0; - } - } + $getuser = "SELECT * FROM phpbb_users WHERE user_id = " . $getusers3[$i]['user_id']; + $getuser2 = mysql_query($getuser); + $getuser3 = mysql_fetch_array($getuser2); - usort($users, 'count_sort'); - $i=0; - foreach ($users as $value) - { - if ($i == 5) - { - break; - } + $username = $getuser3['username']; + $website = $getuser3['user_website']; - $template->adds_block('TOP', array( 'USERNAME' => $value['name'], - 'COUNT' => $value['count'])); - $i++; - } + $name = (($website != '') ? '' . $username . '' : $username); + $users[] = array('name' => $name, 'count' => $getcount3['COUNT(*)']); - $gethits = "SELECT * FROM config WHERE name = \"hits\""; - $gethits2 = mysql_query($gethits); - $gethits3 = mysql_fetch_array($gethits2); - $template->add('HITS', $gethits3['value']); + $i++; +} - $gethits = "SELECT * FROM config WHERE name = \"todayHits\""; - $gethits2 = mysql_query($gethits); - $gethits3 = mysql_fetch_array($gethits2); - $template->add('TODAY', $gethits3['value']); +function count_sort($a, $b) +{ + $a = $a['count']; + $b = $b['count']; - $getpost = "SELECT * FROM phpbb_posts ORDER BY post_id DESC LIMIT 0,5"; - $getpost2 = mysql_query($getpost) or die($getpost); - $i=0; - while ($getpost3[$i] = mysql_fetch_array($getpost2)) + if ($a > $b) { - $getuser = "SELECT * FROM phpbb_users WHERE user_id = " . $getpost3[$i]['poster_id']; - $getuser2 = mysql_query($getuser) or die($getuser); - $getuser3 = mysql_fetch_array($getuser2); - - $template->adds_block('FOURM', array( 'SUBJECT' => $getpost3[$i]['post_subject'], - 'TOPIC' => $getpost3[$i]['topic_id'], - 'POST' => $getpost3[$i]['post_id'], - 'USERNAME' => $getuser3['username'])); + return -1; + } else if ($a < $b) + { + return 1; + } else { + return 0; } +} - $gettags = "SELECT DISTINCT tag FROM tags WHERE post_type = \"published\""; - $gettags2 = mysql_query($gettags); - $i=0; - while ($gettags3[$i] = mysql_fetch_array($gettags2)) +usort($users, 'count_sort'); +$i=0; +foreach ($users as $value) +{ + if ($i == 5) { - $cnttag = "SELECT COUNT(*) FROM tags WHERE tag = \"" . $gettags3[$i]['tag'] . "\" AND post_type = \"published\""; - $cnttag2 = mysql_query($cnttag); - $cnttag3 = mysql_fetch_array($cnttag2); + break; + } - $counts[$gettags3[$i]['tag']] = $cnttag3[0]; + $template->adds_block('TOP', array( 'USERNAME' => $value['name'], + 'COUNT' => $value['count'])); + $i++; +} - $i++; - } +$getpost = "SELECT * FROM phpbb_posts ORDER BY post_id DESC LIMIT 0,5"; +$getpost2 = mysql_query($getpost) or die($getpost); +$i=0; +while ($getpost3[$i] = mysql_fetch_array($getpost2)) +{ + $getuser = "SELECT * FROM phpbb_users WHERE user_id = " . $getpost3[$i]['poster_id']; + $getuser2 = mysql_query($getuser) or die($getuser); + $getuser3 = mysql_fetch_array($getuser2); + + $template->adds_block('FOURM', array( 'SUBJECT' => $getpost3[$i]['post_subject'], + 'TOPIC' => $getpost3[$i]['topic_id'], + 'POST' => $getpost3[$i]['post_id'], + 'USERNAME' => $getuser3['username'])); +} - $min_count = min($counts); - $spread = max($counts) - $min_count; - $spread = ($spread <= 0) ? 1 : $spread; - $font_step = 8 / $spread; - foreach ($counts as $tag => $count) - { - if ($count != $min_count) - { - $template->adds_block('TAGCLOUD', array( 'TAG' => $tag, - 'SIZE' => (8 + (($count - $min_count) * $font_step)), - 'COUNT' => $count)); - } - } +$getpopular = "SELECT * FROM updates ORDER BY popularity DESC LIMIT 0,5"; +$getpopular2 = mysql_query($getpopular); +$i=0; +while ($getpopular3[$i] = mysql_fetch_array($getpopular2)) +{ + $template->adds_block('POPULAR', array( 'CODED' => $getpopular3[$i]['slug'], + 'TITLE' => stripslashes($getpopular3[$i]['title']))); + $i++; } -$template->add('REVISION', exec('hg tip --template {rev}')); +$template->add('REVISION', exec('hg -R "' . $_SERVER['DOCUMENT_ROOT'] . '" tip --template {rev}')); $template->display(); 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) $template->adds_block('POST', array( 'TITLE' => $getrelated3[$i]['title'], 'CODED' => $getrelated3[$i]['slug'], 'AUTHOR' => $getrelated3[$i]['author'], - 'DATE' => date('F d<\S\U\P>S Y',strtotime($getrelated3[$i]['pubDate'])))); + 'DATE' => date('F jS Y',strtotime($getrelated3[$i]['pubDate'])))); $i++; } @@ -304,4 +304,50 @@ function getCommentUrl($getcomment3) } } +function getPollOfTheWeek($id = -1) +{ + static $showed_form = false; + + $potw = new FITemplate('polloftheweek'); + + if ($id == -1) + { + $getpoll = "SELECT * FROM polloftheweek ORDER BY id DESC LIMIT 0,1"; + } else { + $getpoll = "SELECT * FROM polloftheweek WHERE id = " . $id; + } + $getpoll2 = mysql_query($getpoll); + $getpoll3 = mysql_fetch_array($getpoll2); + + $potw->add('QUESTION', $getpoll3['question']); + $potw->add('OPTION1', $getpoll3['option1']); + $potw->add('OPTION2', $getpoll3['option2']); + $potw->add('OPTION3', $getpoll3['option3']); + $potw->add('OPTION4', $getpoll3['option4']); + + $getip = "SELECT * FROM didpollalready WHERE ip = \"" . $_SERVER['REMOTE_ADDR'] . "\""; + $getip2 = mysql_query($getip); + $getip3 = mysql_fetch_array($getip2); + + if (($getip3['ip'] != $_SERVER['REMOTE_ADDR']) && ($id == -1) && ($showed_form == false)) + { + $potw->adds_block('FORM',array('exi'=>1)); + $showed_form = true; + } else { + $potw->adds_block('DISPLAY',array('exi'=>1)); + + $potw->add('PERCENT1', getpercent($getpoll3,'1')); + $potw->add('PERCENT2', getpercent($getpoll3,'2')); + $potw->add('PERCENT3', getpercent($getpoll3,'3')); + $potw->add('PERCENT4', getpercent($getpoll3,'4')); + } + + ob_start(); + $potw->display(); + $result = ob_get_contents(); + ob_end_clean(); + + return $result; +} + ?> 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'); $headerTemp = new FITemplate('header'); -if (!isset($_GET['emulateTime'])) -{ - if ((date('G') >= 20) || (date('G') <= 6)) - { - $bodyID = 'night'; - } else { - $bodyID = 'day'; - } -} else { - $bodyID = $_GET['emulateTime']; -} - -$headerTemp->add('BODYID',$bodyID); $headerTemp->add('CATEGORY',(isset($pageCategory)) ? $pageCategory : 'none'); $headerTemp->add('AID',(isset($pageAID)) ? $pageAID : 'none'); -$headerTemp->add('BODYTAGS',(isset($bodyTags)) ? $bodyTags : ''); -$headerTemp->add('HEADTAGS',isset($headtags) ? $headtags : ''); $headerTemp->add('EXTRATITLE',isset($title) ? ($title . ' - ') : ''); -$headerTemp->add('PAGEID',(isset($pageID)) ? $pageID : 'none'); -$headerTemp->add(strtoupper($pageCategory) . 'ACTIVE', ' CLASS="active"'); - -if (isset($_POST['message'])) -{ - $headerTemp->adds_block('MESSAGE',array('MSG' => $_POST['message'])); -} +$headerTemp->add(strtoupper($pageCategory) . 'ACTIVE', ' class="active"'); if (($pageCategory != 'fourm') && ($pageCategory != 'wiki')) { @@ -63,6 +42,30 @@ if (($pageCategory != 'fourm') && ($pageCategory != 'wiki')) } } +if (isset($hatNav) && is_array($hatNav)) +{ + $headerTemp->adds_block('CREATE_HATNAV', array('exi'=>1)); + + foreach ($hatNav as $item) + { + $headerTemp->adds_block('HATNAV',array('TITLE' => $item['title'], 'URL' => $item['url'], 'ICON' => $item['icon'])); + } +} + +$headerTemp->add('POTW', getPollOfTheWeek()); + +$gethits = "SELECT * FROM config WHERE name = \"hits\""; +$gethits2 = mysql_query($gethits); +$gethits3 = mysql_fetch_array($gethits2); +$headerTemp->add('HITS', $gethits3['value']); + +$gethits = "SELECT * FROM config WHERE name = \"todayHits\""; +$gethits2 = mysql_query($gethits); +$gethits3 = mysql_fetch_array($gethits2); +$headerTemp->add('TODAY', $gethits3['value']); + +$headerTemp->add('DATEFINDER', sd_dateFinder()); + $headerTemp->display(); ?> 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 foreach ($this->smilies as $name => $value) { - $text = str_replace($name, '' . $name . '', $text); + $text = str_replace($name, '' . $name . '', $text); } 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 sd_lunar_annual('Mothers Day',5,7,2); //BG Pic; DateFinder; Header Pic sd_lunar_annual('Memorial Day',5,1,4); //BG Pic; DateFinder; Header Pic sd_easter(); //BG Pic; DateFinder -sd_solar_annual('Hatkirbys B-Day',6,7); //BG Pic; DateFinder; Header Pic sd_solar_annual('Flag Day',6,14); //BG Pic; DateFinder +sd_solar_annual('Hatkirbys B-Day',6,17); //BG Pic; DateFinder; Header Pic sd_lunar_annual('Fathers Day',6,7,3); //BG Pic; DateFinder -sd_solar_annual('CTNH',6,17); //Header Pic +sd_solar_annual('CTNH',6,17); //Header Pic; DateFinder sd_solar_annual('Independance Day',7,4); //BG Pic; DateFinder sd_lunar_annual('SysAdminDay',7,5,4); //DateFinder sd_lunar_annual('Labor Day',9,1,1); //Yet to be implemented @@ -308,4 +308,52 @@ function sd_addDateIn($id,$dateid) $specialdates[$dateid] = $id; } +function sd_dateFinder() +{ + if (sd_ifNoSpecialDay()) + { + $did = sd_getMonthStart(date('n')-1); + $did += (date('j')-1); + $did = sd_findNextDay() - $did; + return ($did . ' more days until the next holiday!'); + } else { + switch (sd_getCurrentDay()) + { + case 'New Years Day': return 'Happy new years!'; + case 'Martin Luther King Day': return 'Happy Martin Luther King Day!'; + case 'Groundhog Day': return 'It\'s groundhog day? Will he see his shadow?'; + case 'Presidents Day': return 'Happy President\'s Day!'; + case 'Valentines Day': return 'Happy Valentines Day! Will you be mine?'; + case 'St Patricks Day': return 'Happy St. Patrick\'s Day! If you\'re not wearing green, I\'ll pinch you!'; + case 'Mothers Day': return 'Happy Mothers Day!'; + case 'Memorial Day': return 'Remember...'; + case 'Easter': return 'Happy Easter! Where are those eggs?'; + case 'Mardi Gras': return 'Happy Mardi Gras! Time to get fat!'; + case 'Ash Wednesday': return 'Happy Ash Wednesday! Did you get your ashes?'; + case 'Palm Sunday': return 'Happy Palm Sunday!'; + case 'Holy Thursday': return 'Happy Holy Thursday!'; + case 'Hatkirbys B-Day': return 'Happy Birthday to me! Happy Birthday to me! Happy Birthday dear Hatkirby! Happy Birthday to me!'; + case 'Flag Day': return 'Happy Flag Day!'; + case 'Fathers Day': return 'Happy Fathers Day!'; + case 'Independance Day': return 'Happy 4th of July!'; + case 'Labor Day': return 'Happy Labor Day!'; + case 'Four Island A': return ('Happy birthday Four Island! Four Island is ' . (date('Y')-2007) . ' years old!'); + case 'Columbus Day': return 'Happy Columbus Day!'; + case 'Halloween': return 'Happy Halloween!'; + case 'Veterans Day': return 'Only 2 minutes of silence. Remember... remember...'; + case 'Thanksgiving': return 'Happy Thanksgiving! Gobble gobble gobble gobble!'; + 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!'; + case 'Christmas Eve': return '"1 Day Left" says Fourie!'; + case 'Christmas Day': return 'Merry Christmas! Time for presents!'; + case 'New Years Eve': return '5... 4... 3... 2...'; + case 'SysAdminDay': return 'If you can read this, thank your sysadmin'; + case 'WCA Day': return 'Webcomic Appreciation Day! Stare in wonder at all of your favorite webcomics! Like Pillowcase, for instance!'; + case 'Leap Day': return 'What day is it? LEAP DAY? This only happens once every four years! LET\'S LEAP IN JOY!'; + case 'Tris CIEday': return 'This is the day that shei came.'; + case 'Silence Day': return 'Support LGBT people by keeping the silence until 5 PM.'; + case 'CTNH': return 'It never happened.'; + } + } +} + ?> diff --git a/index.php b/index.php index 53edd33..58b66d2 100755 --- a/index.php +++ b/index.php @@ -20,6 +20,7 @@ require('headerproc.php'); +header('Content-type: application/xhtml+xml'); header('X-Pingback: http://fourisland.com/xmlrpc.php'); include('../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()) $template->adds_block('INTERNAL',array('exi'=>1)); $template->add_ref(0, 'POST', array( 'ID' => $getdraft3['id'], 'YEARID' => ((date('Y')-2006) % 4), - 'DATE' => date('F dS Y \a\\t g:i:s a'), + 'DATE' => date('F jS Y \a\\t g:i:s a'), 'MONTH' => date('M'), 'DAY' => date('d'), 'CODED' => $getdraft3['slug'], @@ -335,7 +335,7 @@ if (isLoggedIn()) $template->adds_block('INTERNAL',array('exi'=>1)); $template->add_ref(0, 'POST', array( 'ID' => $getpending3['id'], 'YEARID' => ((date('Y')-2006) % 4), - 'DATE' => date('F dS Y \a\\t g:i:s a'), + 'DATE' => date('F jS Y \a\\t g:i:s a'), 'MONTH' => date('M'), 'DAY' => date('d'), 'CODED' => $getpending3['slug'], @@ -544,7 +544,7 @@ if (isLoggedIn()) $template->add('USERNAME', $getcomment3['author']); $template->add('CODEDEMAIL', md5(strtolower($getcomment3['email']))); $template->add('TEXT', parseText($getcomment3['comment'])); - $template->add('DATE', date("F dS Y \a\\t g:i:s a",strtotime($getcomment3['pubDate']))); + $template->add('DATE', date("F jS Y \a\\t g:i:s a",strtotime($getcomment3['pubDate']))); } else { $template = new FITemplate('msg'); $template->add('BACK', 'the previous page'); @@ -649,8 +649,7 @@ if (isLoggedIn()) { if (isset($_GET['approve'])) { - $today = mktime(date('G'),date('i'),date('s'),date('m'),date('d'),date('Y')); - $insquote = "INSERT INTO rash_quotes (quote,date) VALUES (\"" . mysql_real_escape_string($getpending3['quote']) . "\",\"" . $today . "\")"; + $insquote = "INSERT INTO rash_quotes (quote,date) VALUES (\"" . mysql_real_escape_string($getpending3['quote']) . "\",\"" . time() . "\")"; $insquote2 = mysql_query($insquote); $delpending = "DELETE FROM rash_queue WHERE id = " . $_GET['id']; @@ -721,9 +720,9 @@ if (isLoggedIn()) $getconfig3 = mysql_fetch_array($getconfig2); if ($getconfig3['value'] == '1') { - $template->add('ON', ' CHECKED="CHECKED"'); + $template->add('ON', ' checked="checked"'); } else { - $template->add('OFF', ' CHECKED="CHECKED"'); + $template->add('OFF', ' checked="checked"'); } } } 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']))) header('Location: /blog/' . $_GET['post'] . '/'); } -$pageCategory = 'home'; +$pageCategory = 'blog'; $pageAID = 'archive'; if (isset($_GET['post'])) @@ -65,7 +65,7 @@ if (isset($_GET['post'])) $template->add_ref(0, 'POST', array( 'ID' => $getpost3['id'], 'YEARID' => ((date('Y',strtotime($getpost3['pubDate']))-2006) % 4), - 'DATE' => date('F dS Y \a\\t g:i:s a',strtotime($getpost3['pubDate'])), + 'DATE' => date('F jS Y \a\\t g:i:s a',strtotime($getpost3['pubDate'])), 'MONTH' => date('M',strtotime($getpost3['pubDate'])), 'DAY' => date('d',strtotime($getpost3['pubDate'])), 'CODED' => $getpost3['slug'], @@ -80,6 +80,19 @@ if (isset($_GET['post'])) $template->adds_ref_sub(0, 'TAGS', array('TAG' => $tag)); } + $gettrack = "SELECT * FROM tracking WHERE ip = \"" . $_SERVER['REMOTE_ADDR'] . "\""; + $gettrack2 = mysql_query($gettrack); + $gettrack3 = mysql_fetch_array($gettrack2); + + $trackArr = explode(',',$gettrack3['rating']); + + if (($gettrack3['ip'] != $_SERVER['REMOTE_ADDR']) || (array_search($getpost3['id'],$trackArr) === FALSE)) + { + $template->adds_ref_sub(0, 'CANVOTE', array('exi'=>1)); + } else { + $template->adds_ref_sub(0, 'NOVOTE', array('exi'=>1)); + } + $template->display(); $getpings = "SELECT * FROM pingbacks WHERE post_id = " . $getpost3['id']; @@ -93,8 +106,8 @@ if (isset($_GET['post'])) } $template->adds_block('PINGBACK', array( 'TITLE' => $getpings3[$i]['title'], - 'URL' => $getpings3[$i]['url'], - 'DATE' => date('F d<\S\U\P>S Y', strtotime($getpings3[$i]['pubDate'])))); + 'URL' => htmlspecialchars($getpings3[$i]['url']), + 'DATE' => date('F jS Y', strtotime($getpings3[$i]['pubDate'])))); $i++; } @@ -124,7 +137,7 @@ if (isset($_GET['post'])) { $template->adds_block('BIO', array( 'TEXT' => $getbio3['text'], 'USERNAME' => $getbio3['username'], - 'DATE' => date('F dS Y \a\\t g:i:s a',strtotime($getbio3['lastUpdated'])))); + 'DATE' => date('F jS Y \a\\t g:i:s a',strtotime($getbio3['lastUpdated'])))); } } elseif (isset($_GET['tag'])) { 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 @@ - $val) { $date = sd_clearDate(); $date += ($num*60*60*24); - echo(''); + $template->adds_block('DATE', array( 'EVEN' => (($num % 2 == 0) ? ' CLASS="even"' : ''), + 'NUM' => $num, + 'DATE' => date('F jS', $date), + 'TEXT' => $val)); } -?>
    IDDateHolidate
    ' . $num . '' . date('F jS',$date) . '' . $val . '
    +$template->display(); + +?> 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) && ($_GET['id'] <= 4)) +{ + if (isLoggedIn()) + { + $getip = "SELECT * FROM didpollalready WHERE ip = \"" . $_SERVER['REMOTE_ADDR'] . "\""; + $getip2 = mysql_query($getip); + $getip3 = mysql_fetch_array($getip2); + + if ($getip3['ip'] != $_SERVER['REMOTE_ADDR']) + { + $setip = "INSERT INTO didpollalready SET ip = \"" . $_SERVER['REMOTE_ADDR'] . "\""; + $setip2 = mysql_query($setip); + $getpoll = "SELECT * FROM polloftheweek ORDER BY id DESC LIMIT 0,1"; + $getpoll2 = mysql_query($getpoll); + $getpoll3 = mysql_fetch_array($getpoll2); + $setpoll = "UPDATE polloftheweek SET clicks" . $_GET['id'] . " = " . ($getpoll3['clicks' . $_GET['id']]+1) . " WHERE id = " . $getpoll3['id']; + $setpoll2 = mysql_query($setpoll); + + die(getPollOfTheWeek()); + } else { + generateError('404'); + } + } else { + generateError('404'); + } +} else { + generateError('404'); +} + +?> 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'); $pageCategory = 'poll'; -if (isset($_GET['submit'])) -{ - $setip = "INSERT INTO didpollalready SET ip = \"" . $_SERVER['REMOTE_ADDR'] . "\""; - $setip2 = mysql_query($setip); - $getpoll = "SELECT * FROM polloftheweek ORDER BY id DESC LIMIT 0,1"; - $getpoll2 = mysql_query($getpoll); - $getpoll3 = mysql_fetch_array($getpoll2); - $setpoll = "UPDATE polloftheweek SET clicks" . $_POST['options'] . " = " . ($getpoll3['clicks' . $_POST['options']]+1) . " WHERE id = " . $getpoll3['id']; - $setpoll2 = mysql_query($setpoll); - - $template = new FITemplate('msg'); - - $template->add('MSG','

    ' . $getpoll3['question'] . '

    Thank you for voting on the Poll of the Week!
    Click here to visit the page for this poll.'); - - $template->display(); -} else if (!isset($_GET['id'])) +if (!isset($_GET['id'])) { $template = new FITemplate('pollIndex'); @@ -70,7 +55,7 @@ if (isset($_GET['submit'])) $template->adds_block('POLL', array( 'ID' => $getpolls3[$i]['id'], 'QUESTION' => $question, 'WEEK' => date('F jS Y', strtotime($getpolls3[$i]['week'])), - 'EVEN' => (($i % 2 == 1) ? ' CLASS="even"' : ''))); + 'EVEN' => (($i % 2 == 1) ? ' class="even"' : ''))); $i++; } @@ -94,8 +79,7 @@ if (isset($_GET['submit'])) $template->adds_block('NEXT', array('ID' => ($start+1))); } - include('pages/polloftheweek.php'); - + $template->add('POTW', getPollOfTheWeek()); $template->display(); } else { $template = new FITemplate('poll'); @@ -114,7 +98,7 @@ if (isset($_GET['submit'])) { $template->adds_block('COMPLETE', array( 'RSS' => parseText($getrss3['rss']), 'AUTHOR' => $getrss3['author'], - 'DATE' => date("F dS Y \a\\t g:i:s a",strtotime($getrss3['date'])), + 'DATE' => date("F jS Y \a\\t g:i:s a",strtotime($getrss3['date'])), 'OPTION1' => $getpoll3['option1'], 'OPTION2' => $getpoll3['option2'], 'OPTION3' => $getpoll3['option3'], @@ -127,10 +111,7 @@ if (isset($_GET['submit'])) $template->adds_block('INCOMPLETE', array('exi'=>1)); } - $forceDisplay = $_GET['id']; - include('pages/polloftheweek.php'); - unset($forceDisplay); - + $template->add('POTW', getPollOfTheWeek($_GET['id'])); $template->display(); $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);} require('headerproc.php'); -$pageCategory = 'home'; -$pageAID = 'archive'; - include('includes/recaptchalib.php'); $privatekey = "6LfgvgEAAAAAAD0_UVLp57MU7tqcypsbZPS9qTnr"; -$template = new FITemplate('msg'); -$template->add('BACK','the previous page'); - -if (!isset($_GET['id'])) +if (!isset($_POST['id'])) { - $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?'); + generateError('404'); } else { if ($_POST['comment'] == "") { - $template->add('MSG','I\'m sorry, but you didn\'t enter a comment!'); + die('I\'m sorry, but you didn\'t enter a comment!'); } else { if (!isLoggedIn()) { - $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); - if (!$resp->is_valid) + if ($_POST['username'] == "") { - $template->add('MSG',"The reCAPTCHA wasn't entered correctly. Go back and try it again. (reCAPTCHA said: " . $resp->error . ")"); + die('You forgot to enter a username.'); } else { if (preg_match('/^[A-Za-z0-9!#$&\'*+-\/=?^_`{|}~]+@[-A-Za-z0-9]+(\.[-A-Za-z0-9]+)+[A-Za-z]$/', $_POST['email'])) { - $getanon = "SELECT * FROM anon_commenters WHERE username = \"" . $_POST['username'] . "\""; - $getanon2 = mysql_query($getanon); - $getanon3 = mysql_fetch_array($getanon2); - - if ($getanon3['username'] == $_POST['username']) + $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); + if (!$resp->is_valid) { - if ($getanon3['email'] == $_POST['email']) - { - $setcomment = "INSERT INTO comments SET page_id = \"" . $_GET['id'] . "\", user_id = " . $getanon3['id'] . ", comment = \"" . $_POST['comment'] . "\", is_anon = 1"; - $setcomment2 = mysql_query($setcomment); + die('The reCAPTCHA wasn\'t entered correctly. Go back and try it again.'); + } else { + $getanon = "SELECT * FROM anon_commenters WHERE username = \"" . $_POST['username'] . "\""; + $getanon2 = mysql_query($getanon); + $getanon3 = mysql_fetch_array($getanon2); - $page_id = $_GET['id']; - $comType = substr($page_id,0,strpos($page_id,'-')); - $comID = substr($page_id,strpos($page_id,'-')+1); - if ($comType == 'updates') + if ($getanon3['username'] == $_POST['username']) + { + if ($getanon3['email'] == $_POST['email']) { - recalcPop($comID); + $setcomment = "INSERT INTO comments SET page_id = \"" . $_POST['id'] . "\", user_id = " . $getanon3['id'] . ", comment = \"" . $_POST['comment'] . "\", is_anon = 1"; + $setcomment2 = mysql_query($setcomment); + $cid = mysql_insert_id(); + + $page_id = $_POST['id']; + $comType = substr($page_id,0,strpos($page_id,'-')); + $comID = substr($page_id,strpos($page_id,'-')+1); + if ($comType == 'updates') + { + recalcPop($comID); + } + + $template = new FITemplate('new-comment'); + $template->add('ID', $cid); + $template->add('CODEDEMAIL', md5(strtolower($getanon3['email']))); + $template->add('TEXT', stripslashes($_POST['comment'])); + $template->add('USERNAME', $getanon3['username']); + $template->add('DATE', date("F jS Y \a\\t g:i:s a")); + $template->display(); + + exit; + } else { + 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.'); } - - $template->add('MSG',"Thank you, " . $getanon3['username'] . ", for posting your valuable comment!"); } else { - $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."); - } - } else { - $setcomment = "INSERT INTO moderation SET page_id = \"" . $_GET['id'] . "\", author = \"" . $_POST['username'] . "\", email = \"" . $_POST['email'] . "\", comment = \"" . $_POST['comment'] . "\", website = \"" . $_POST['website'] . "\""; - $setcomment2 = mysql_query($setcomment); - - 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.'); + $setcomment = "INSERT INTO moderation SET page_id = \"" . $_POST['id'] . "\", author = \"" . $_POST['username'] . "\", email = \"" . $_POST['email'] . "\", comment = \"" . $_POST['comment'] . "\", website = \"" . $_POST['website'] . "\""; + $setcomment2 = mysql_query($setcomment); - $template->add('MSG',"Thank you for posting your valuable comment!

    However, as you aren't logged in, your comment will have to be verified by a moderator before it appears. Sorry!"); + die('Thank you for posting your valuable comment!
    However, as you aren\'t logged in, your comment will have to be verified by a moderator before it appears. Sorry!'); + } } } else { - $template->add('MSG',"I'm sorry, but you've entered an invalid email address."); + die('I\'m sorry, but you\'ve entered an invalid email address.'); } } } else { - $setcomment = "INSERT INTO comments SET page_id = \"" . $_GET['id'] . "\", user_id = " . getSessionUserID() . ", comment = \"" . $_POST['comment'] . "\", is_anon = 0"; + $setcomment = "INSERT INTO comments SET page_id = \"" . $_POST['id'] . "\", user_id = " . getSessionUserID() . ", comment = \"" . $_POST['comment'] . "\", is_anon = 0"; $setcomment2 = mysql_query($setcomment); + $cid = mysql_insert_id(); - mail('hatkirby@fourisland.com', 'New comment on Four Island!', getSessionUsername() . ' has posted a comment on Four Island under the "page id" ' . $_GET['id']); - - $page_id = $_GET['id']; + $page_id = $_POST['id']; $comType = substr($page_id,0,strpos($page_id,'-')); $comID = substr($page_id,strpos($page_id,'-')+1); if ($comType == 'updates') @@ -97,11 +102,21 @@ if (!isset($_GET['id'])) recalcPop($comID); } - $template->add('MSG',"Thank you, " . getSessionUsername() . ", for posting your valuable comment!"); + $getuser = "SELECT * FROM phpbb_users WHERE user_id = " . getSessionUserID(); + $getuser2 = mysql_query($getuser); + $getuser3 = mysql_fetch_array($getuser2); + + $template = new FITemplate('new-comment'); + $template->add('ID', $cid); + $template->add('CODEDEMAIL', md5(strtolower($getuser3['user_email']))); + $template->add('TEXT', stripslashes($_POST['comment'])); + $template->add('USERNAME', getSessionUsername()); + $template->add('DATE', date("F jS Y \a\\t g:i:s a")); + $template->display(); + + exit; } } } -$template->display(); - ?> 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'); $pageCategory = 'quotes'; -if (isset($_GET['id'])) +$hatNav = array( array( 'title' => 'Latest', + 'url' => 'http://fourisland.com/quotes/latest.php', + 'icon' => '16-star-hot' + ), + array( 'title' => 'Best', + 'url' => 'http://fourisland.com/quotes/top.php', + 'icon' => 'medal_gold_1' + ), + array( 'title' => 'Worst', + 'url' => 'http://fourisland.com/quotes/bottom.php', + 'icon' => '16-message-warn' + ), + array( 'title' => 'Browse All', + 'url' => 'http://fourisland.com/quotes/browse.php', + 'icon' => '16-file-archive' + ), + array( 'title' => 'Random', + 'url' => 'http://fourisland.com/quotes/random.php', + 'icon' => '16-clock' + ), + array( 'title' => 'Add', + 'url' => 'http://fourisland.com/quotes/add.php', + 'icon' => '16-em-pencil' + ), + array( 'title' => 'Search', + 'url' => 'http://fourisland.com/quotes/search.php', + 'icon' => 'book_open' + )); + +if (isset($_GET['id']) && is_numeric($_GET['id'])) { $quote_num = $_GET['id']; } -if ((!isset($_GET['act'])) || ($_GET['act'] == 'latest')) +if (isset($_GET['id']) && !(is_numeric($_GET['id']))) +{ + generateError('404'); +} else if ((!isset($_GET['act'])) || ($_GET['act'] == 'latest')) { - $query = "SELECT id, quote, rating, flag FROM rash_quotes ORDER BY id DESC LIMIT 50"; + $query = "SELECT * FROM rash_quotes ORDER BY id DESC LIMIT 50"; quote_generation($query, "Latest", -1); } else if ($_GET['act'] == 'add') { $template = new FITemplate('quotes/add'); if (isset($_GET['submit'])) { - $template->adds_block('SUBMITTED',array('QUOTE' => (nl2br(htmlspecialchars($_POST['rash_quote'])) . "\n"))); + $template->adds_block('SUBMITTED',array('QUOTE' => str_replace("\n","
    ",htmlentities($_POST['rash_quote'])))); if (!isLoggedIn()) { $insquote = "INSERT INTO rash_queue (quote) VALUES(\"" . mysql_real_escape_string(htmlspecialchars($_POST['rash_quote'])) . "\")"; } else { - $today = mktime(date('G'),date('i'),date('s'),date('m'),date('d'),date('Y')); - $insquote = "INSERT INTO rash_quotes (quote, rating, flag, date) VALUES (\"" . mysql_real_escape_string($_POST['rash_quote']) . "\", 0, 0, \"" . $today . "\")"; + $insquote = "INSERT INTO rash_quotes (quote, rating, flag, date) VALUES (\"" . mysql_real_escape_string($_POST['rash_quote']) . "\", 0, 0, \"" . time() . "\")"; } $insquote2 = mysql_query($insquote); } $template->display(); } elseif ($_GET['act'] == 'bottom') { - $query = "SELECT id, quote, rating, flag FROM rash_quotes WHERE rating < 0 ORDER BY rating ASC LIMIT 50"; + $query = "SELECT * FROM rash_quotes WHERE rating < 0 ORDER BY rating ASC LIMIT 50"; quote_generation($query, "Bottom", -1); } elseif ($_GET['act'] == 'browse') { - $query = "SELECT id, quote, rating, flag FROM rash_quotes ORDER BY id ASC "; + $query = "SELECT * FROM rash_quotes ORDER BY id ASC "; quote_generation($query, "Browse", (isset($_GET['page']) ? $_GET['page'] : 1), 10, 5); } elseif ($_GET['act'] == 'flag') { - $template = new FITemplate('msg'); - $tracking_verdict = user_quote_status('flag', $quote_num, $template); - if ($tracking_verdict < 3) + $getfla = "SELECT * FROM rash_quotes WHERE id = " . $quote_num . " LIMIT 0,1"; + $getfla2 = mysql_query($getfla); + $getfla3 = mysql_fetch_array($getfla2); + + if ($getfla3['flag'] == 2) { - $getfla = "SELECT flag FROM rash_quotes WHERE id = " . $quote_num . " LIMIT 0,1"; - $getfla2 = mysql_query($getfla); - $getfla3 = mysql_fetch_array($getfla2); + die('0'); + } else { + $setfla = "UPDATE rash_quotes SET flag = 1 WHERE id = " . $quote_num; + $setfla2 = mysql_query($setfla); - if ($getfla3['flag'] == 2) - { - $template->add('MSG',"This quote has been flagged and rechecked by a moderator already."); - } elseif ($getfla3['flag'] == 1) - { - $template->add('MSG',"This quote is currently pending deletion."); - } else { - $template->add('MSG',"You have marked this quote for deletion."); - $setfla = "UPDATE rash_quotes SET flag = 1 WHERE id = " . $quote_num; - $setfla2 = mysql_query($setfla); - } + die('1'); } - $template->add('BACK','Quote #' . $quote_num); - $template->display(); } elseif ($_GET['act'] == 'random') { - $query = "SELECT id, quote, rating, flag FROM rash_quotes ORDER BY rand() LIMIT 50"; + $query = "SELECT * FROM rash_quotes ORDER BY rand() LIMIT 50"; quote_generation($query, "Random", -1); } elseif ($_GET['act'] == 'random2') { - $query = "SELECT id, quote, rating, flag FROM rash_quotes WHERE rating > 1 ORDER BY rand() LIMIT 50"; + $query = "SELECT * FROM rash_quotes WHERE rating > 1 ORDER BY rand() LIMIT 50"; quote_generation($query, "Random2", -1); } elseif ($_GET['act'] == 'search') { @@ -99,22 +121,24 @@ if ((!isset($_GET['act'])) || ($_GET['act'] == 'latest')) } else { $how = 'asc'; } - $getquotes = "SELECT id, quote, rating, flag FROM rash_quotes WHERE quote LIKE \"%" . $_POST['search'] . "%\" ORDER BY " . $_POST['sortby'] . " " . $how . " LIMIT 0," . $_POST['number']; + $getquotes = "SELECT * FROM rash_quotes WHERE quote LIKE \"%" . $_POST['search'] . "%\" ORDER BY " . $_POST['sortby'] . " " . $how . " LIMIT 0," . $_POST['number']; quote_generation($getquotes, "Query Results", -1); } $template = new FITemplate('quotes/search'); $template->display(); } elseif ($_GET['act'] == 'top') { - $query = "SELECT id, quote, rating, flag FROM rash_quotes WHERE rating > 0 ORDER BY rating DESC LIMIT 50"; + $query = "SELECT * FROM rash_quotes WHERE rating > 0 ORDER BY rating DESC LIMIT 50"; quote_generation($query, "Top", -1); } elseif ($_GET['act'] == 'vote') { - $template = new FITemplate('msg'); - $tracking_verdict = user_quote_status('vote', $quote_num,$template); - $template->add('BACK','Quote #' . $quote_num); - $template->display(); - if ($tracking_verdict < 3) + $gettrack = "SELECT * FROM rash_tracking WHERE ip = \"" . $_SERVER['REMOTE_ADDR'] . "\""; + $gettrack2 = mysql_query($gettrack); + $gettrack3 = mysql_fetch_array($gettrack2); + + $trackArr = explode(',',$gettrack3['vote']); + + if (($gettrack3['ip'] != $_SERVER['REMOTE_ADDR']) || (array_search($quote_num,$trackArr) === FALSE)) { if ($_GET['dir'] == "plus") { @@ -125,18 +149,32 @@ if ((!isset($_GET['act'])) || ($_GET['act'] == 'latest')) $setquote = "UPDATE rash_quotes SET rating = rating-1 WHERE id = " . $quote_num; $setquote2 = mysql_query($setquote); } - } -} else { - if ((is_int($_GET['act']) || ($_GET['act'] != false)) && (verify_int($_GET['act']))) - { - $query = "SELECT id, quote, rating, flag FROM rash_quotes WHERE id = " . $_GET['act']; - quote_generation($query, "#" . $_GET['act'], -1); - $page_id = 'quote-' . $_GET['act']; - include('includes/comments.php'); + if ($gettrack3['ip'] == $_SERVER['REMOTE_ADDR']) + { + $settrack = "UPDATE rash_tracking SET vote = \"" . $gettrack3['vote'] . "," . $quote_num . "\" WHERE id = " . $gettrack3['id']; + } else { + $settrack = "INSERT INTO tracking (ip,vote) VALUES (\"" . $_SERVER['REMOTE_ADDR'] . "\",\"" . $quote_num . "\")"; + } + $settrack2 = mysql_query($settrack) or die($settrack); + + $getquote = "SELECT * FROM rash_quotes WHERE id = " . $quote_num; + $getquote2 = mysql_query($getquote); + $getquote3 = mysql_fetch_array($getquote2); + + die($getquote3['rating']); } else { - generateError('404'); + die; } +} else if (is_numeric($_GET['act'])) +{ + $query = "SELECT * FROM rash_quotes WHERE id = " . $_GET['act']; + quote_generation($query, "#" . $_GET['act'], -1); + + $page_id = 'quote-' . $_GET['act']; + include('includes/comments.php'); +} else { + generateError('404'); } function 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 } $template->add('ORIGIN',$origin); + $gettrack = "SELECT * FROM rash_tracking WHERE ip = \"" . $_SERVER['REMOTE_ADDR'] . "\""; + $gettrack2 = mysql_query($gettrack); + $gettrack3 = mysql_fetch_array($gettrack2); + + $trackArr = explode(',',$gettrack3['vote']); + $getquotes2 = mysql_query($query); $i=0; while ($getquotes3[$i] = mysql_fetch_array($getquotes2)) { - $template->adds_block('QUOTES',array( 'NUMBER' => $getquotes3[$i]['id'], - 'RATING' => $getquotes3[$i]['rating'], - 'QUOTE' => parseSmilies(str_replace("\n","
    ",stripslashes($getquotes3[$i]['quote']))))); + if (!isset($curID)) + { + $curID = 0; + } else { + $curID++; + } + + $cntcomments = "SELECT COUNT(*) FROM comments WHERE page_id = \"quote-" . $getquotes3[$i]['id'] . "\""; + $cntcomments2 = mysql_query($cntcomments); + $cntcomments3 = mysql_fetch_array($cntcomments2); + + if ($cntcomments3['COUNT(*)'] == 0) + { + $comments = ''; + } else if ($cntcomments3['COUNT(*)'] == 1) + { + $comments = '1 Comment'; + } else { + $comments = $cntcomments3['COUNT(*)'] . ' Comments'; + } + + $template->add_ref($curID,'QUOTES',array( 'NUMBER' => $getquotes3[$i]['id'], + 'RATING' => $getquotes3[$i]['rating'], + 'DATE' => ($getquotes3[$i]['date'] != 0 ? date('F jS Y \a\\t g:i:s a', $getquotes3[$i]['date']) : ''), + 'QUOTE' => str_replace("\n","
    ",htmlentities(stripslashes($getquotes3[$i]['quote']))), + 'COMMENTS' => $comments)); + + if (($gettrack3['ip'] != $_SERVER['REMOTE_ADDR']) || (array_search($getquotes3[$i]['id'],$trackArr) === FALSE)) + { + $template->adds_ref_sub($curID, 'CANVOTE', array('exi'=>1)); + } else { + $template->adds_ref_sub($curID, 'NOVOTE', array('exi'=>1)); + } + + if ($getquotes3[$i]['flag'] == 0) + { + $template->adds_ref_sub($curID, 'CANFLAG', array('exi'=>1)); + } else { + $template->adds_ref_sub($curID, 'NOFLAG', array('exi'=>1)); + } $i++; } @@ -170,7 +251,7 @@ function page_numbers($template, $origin, $quote_limit, $page_default, $page_lim { $numrows = countRows('rash_quotes'); $testrows = $numrows; - $pagenum = (($testrows + 1) / ($quote_limit > 0 ? $quote_limit : 1)); + $pagenum = floor(($testrows + 1) / ($quote_limit > 0 ? $quote_limit : 1)); if (($page_limit % 2)) { @@ -227,86 +308,4 @@ function page_numbers($template, $origin, $quote_limit, $page_default, $page_lim $template->add('LASTPAGE',$pagenum); } -function user_quote_status($where, $quote_num, $template) -{ - $tracking_verdict = ip_track($where, $quote_num); - if ($where != 'flag') - { - switch ($tracking_verdict) - { - case 1: - $template->add('TRACKING',"Quote has been modified, and data of your action has been recorded in the database."); - break; - case 2: - $template->add('TRACKING',"Quote has been modified, your IP has been logged, and data of your action has been recorded in the database."); - break; - case 3: - $template->add('TRACKING',"You have already voted on this quote, please try again later."); - break; - } - } - return $tracking_verdict; -} - -function ip_track($where, $quote_num) -{ - switch ($where) - { - case 'flag': - $where2 = 'vote'; - break; - case 'vote': - $where2 = 'flag'; - break; - } - - $getip = "SELECT * FROM rash_tracking WHERE ip = \"" . $_SERVER['REMOTE_ADDR'] . "\""; - $getip2 = mysql_query($getip); - $getip3 = mysql_fetch_array($getip2); - - if ($getip3['ip'] == $_SERVER['REMOTE_ADDR']) - { - $quote_array = explode(",", $getip3['quote_id']); - $quote_place = array_search($quote_num, $quote_array); - if (in_array($quote_num, $quote_array)) - { - $where_result = explode(",", $getip3[$where]); - if (!isset($where_result[$quote_place])) - { - $where_result[$quote_place] = 1; - $where_result = implode(",", $where_result); - $setip = "UPDATE rash_tracking SET " . $where . " = \"" . $where_result . "\" WHERE ip = \"" . $_SERVER['REMOTE_ADDR'] . "\""; - $setip2 = mysql_query($getip); - return 1; - } else { - return 3; - } - } else { - $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'] . "\""; - $setip2 = mysql_query($setip); - return 1; - } - } else { - $insip = "INSERT INTO rash_tracking (ip, quote_id, " . $where . ", " . $where2 . ") VALUES (\"" . $_SERVER['REMOTE_ADDR'] . "\", \"" . $quote_num . "\", 1, 0)"; - $insip2 = mysql_query($insip); - return 2; - } -} - -function verify_int($subject) -{ - $ymax = strlen($subject); - $y = 0; - while($y < $ymax) - { - if ((is_int((int)($subject{$y})) && (int)($subject{$y})) || (int)($subject{$y}) === 0 ) - { - $y++; - } else { - return false; - } - } - return true; -} - ?> 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);} require('headerproc.php'); -$pageCategory = 'home'; -$pageAID = 'archive'; - $getpost = "SELECT * FROM updates WHERE id = " . $_GET['id']; $getpost2 = mysql_query($getpost); $getpost3 = mysql_fetch_array($getpost2); if ($getpost3['id'] == $_GET['id']) { - $template = new FITemplate('msg2'); - $template->add('BACK','Back to ' . stripslashes($getpost3['title'])); - $template->add('LINK','/blog/' . $getpost3['slug'] . '/'); - if ($_GET['dir'] == 'plus') { - if (updatePop($_GET['id'],'rating')) - { - $template->add('MSG','Thank you for voting!'); - } else { - $template->add('MSG','I\'m sorry, but you\'ve already voted on this post.'); - } + $add = 1; } else if ($_GET['dir'] == 'minus') { - if (updatePop($_GET['id'],'rating',-1)) - { - $template->add('MSG','Thank you for voting!'); - } else { - $template->add('MSG','I\'m sorry, but you\'ve already voted on this post.'); - } + $add = -1; + } else { + die; + } + + if (updatePop($_GET['id'],'rating',$add)) + { + $getpost = "SELECT * FROM updates WHERE id = " . $_GET['id']; + $getpost2 = mysql_query($getpost); + $getpost3 = mysql_fetch_array($getpost2); + + die($getpost3['rating']); } else { - $template = new FITemplate('msg'); - $template->add('BACK','the previous page'); - $template->add('MSG','Um, what on earth are you doing?'); + die; } } else { - $template = new FITemplate('msg'); - $template->add('BACK','the previous page'); - $template->add('MSG','Um, what on earth are you doing?'); + generateError('404'); } -$template->display(); - ?> 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);} require('headerproc.php'); -$pageCategory = 'home'; +$pageCategory = 'blog'; + +$hatNav = array( array( 'title' => 'Archive', + 'url' => 'http://fourisland.com/blog/', + 'icon' => '16-file-archive')); + $template = new FITemplate('post'); $template->adds_block('EXTERNAL',array('exi'=>1)); $curID = 0; +$gettrack = "SELECT * FROM tracking WHERE ip = \"" . $_SERVER['REMOTE_ADDR'] . "\""; +$gettrack2 = mysql_query($gettrack); +$gettrack3 = mysql_fetch_array($gettrack2); + +$trackArr = explode(',',$gettrack3['rating']); + $getpost = "SELECT * FROM updates ORDER BY id DESC LIMIT 0,4"; $getpost2 = mysql_query($getpost); while ($getpost3 = mysql_fetch_array($getpost2)) @@ -59,7 +70,7 @@ while ($getpost3 = mysql_fetch_array($getpost2)) $template->add_ref($curID, 'POST', array( 'ID' => $getpost3['id'], 'YEARID' => ((date('Y',strtotime($getpost3['pubDate']))-2006) % 4), - 'DATE' => date('F dS Y \a\\t g:i:s a',strtotime($getpost3['pubDate'])), + 'DATE' => date('F jS Y \a\\t g:i:s a',strtotime($getpost3['pubDate'])), 'MONTH' => date('M',strtotime($getpost3['pubDate'])), 'DAY' => date('d',strtotime($getpost3['pubDate'])), 'CODED' => $getpost3['slug'], @@ -76,6 +87,13 @@ while ($getpost3 = mysql_fetch_array($getpost2)) $template->adds_ref_sub($curID, 'TAGS', array('TAG' => $tag)); } + if (($gettrack3['ip'] != $_SERVER['REMOTE_ADDR']) || (array_search($getpost3['id'],$trackArr) === FALSE)) + { + $template->adds_ref_sub($curID, 'CANVOTE', array('exi'=>1)); + } else { + $template->adds_ref_sub($curID, 'NOVOTE', array('exi'=>1)); + } + $curID++; } 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 @@ -

    Click here for information about this page.

    +

    Click here for information about this page.

    -

    Calling all email-harvesting robots!

    +

    Calling all email-harvesting robots!

    -

    Come fetch 1000 juicy email addresses here:

    +

    Come fetch 1000 juicy email addresses here:

    -
    +
    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 @@ -

    Delete a Draft

    +

    Delete a Draft

    -Are you ABSOLUTELY SURE that you want to delete this draft?

    +

    Are you ABSOLUTELY SURE that you want to delete this draft?

    -Yes
    -Ummm.... actually I'd rather not +

    Yes
    +Ummm.... actually I'd rather not

    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 @@ -

    Delete a Pending Post

    +

    Delete a Pending Post

    -Are you ABSOLUTELY SURE that you want to delete this pending post?

    +

    Are you ABSOLUTELY SURE that you want to delete this pending post?

    -Yes
    -Ummm.... actually I'd rather not +

    Yes
    +Ummm.... actually I'd rather not

    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 @@ -

    Delete a Post

    +

    Delete a Post

    -Are you ABSOLUTELY SURE that you want to delete this post?

    +

    Are you ABSOLUTELY SURE that you want to delete this post?

    -Yes
    -Ummm.... actually I'd rather not +

    Yes
    +Ummm.... actually I'd rather not

    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 @@ You've just deleted a draft! - + 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 @@ You've just deleted a pending post! - + 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 @@ You've just deleted a post! - + 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 @@ Congradulations, you've just made/edited a draft! - + 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 @@ -

    Edit a draft

    +

    Edit a draft

    -
    - Draft Title:
    -

    - Tags (comma-seperated):
    - Post Type:
    - -

    +

    + Draft Title:
    +
    + Tags (comma-seperated):
    + Post Type:
    + +

    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 @@ -

    Edit a pending post

    +

    Edit a pending post

    -
    - Post Title:
    -

    - Tags (comma-seperated):
    - -

    +
    + Post Title:
    +
    + Tags (comma-seperated):
    + +
    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 @@ -

    Edit a post

    +

    Edit a post

    -
    - Post Title:
    -

    - Tags (comma-seperated):
    - -

    +
    + Post Title:
    +
    + Tags (comma-seperated):
    + +
    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 @@ -

    Admin Panel

    +

    Admin Panel

    -Welcome to the ubiquitous administration panel!

    +Welcome to the ubiquitous administration panel!

    -

    Blog

    +

    Blog

    - + -

    Poll

    +

    Poll

    - + -

    Quotes

    +

    Quotes

    - + -

    Administration

    +

    Administration

    - + 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 @@ -

    Maintenance Mode

    +

    Maintenance Mode

    -

    Here you can enable/disable Maintenance Mode. When Maintenance Mode is enabled, no one can access Four Island except localhost.

    +

    Here you can enable/disable Maintenance Mode. When Maintenance Mode is enabled, no one can access Four Island except localhost.

    -
    -
    - >On
    - >Off
    - -
    -
    +
    +
    + />On
    + />Off
    + +
    +
    -

    - Back to Admin Panel -

    +

    + Back to Admin Panel +

    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 @@ -

    Manage Drafts

    +

    Manage Drafts

    - - - - - - +
    Draft TitleDraft AuthorActions
    + + + + + - - - + + + - - + + -
    Draft TitleDraft AuthorActions
    - Edit - Delete - View -
    + Edit + Delete + View +
    + -Back to Admin Panel +Back to Admin Panel 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 @@ -

    Manage Pending

    +

    Manage Pending

    - - - - - - +
    Pending Post TitlePending Post AuthorActions
    + + + + + - - - + + + - - + + -
    Pending Post TitlePending Post AuthorActions
    - Edit - Delete - View - Move Up - Move Down -
    + Edit + Delete + View + Move Up + Move Down +
    + -Back to Admin Panel +Back to Admin Panel 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 @@ -

    Manage Pending Quotes

    +

    Manage Pending Quotes

    - - - - - +
    QuoteActions
    + + + + - - + + - - + + -
    QuoteActions
    - Approve - Deny -
    + Approve + Deny +
    + -Back to Admin Panel +Back to Admin Panel 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 @@ -

    Manage Posts

    +

    Manage Posts

    - - - - - - +
    Post TitlePost AuthorActions
    + + + + + - - - + + + - - + + -
    Post TitlePost AuthorActions
    - Edit - Delete - View -
    + Edit + Delete + View +
    + -Back to Admin Panel +Back to Admin Panel 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 @@ -

    Moderate Comments

    +

    Moderate Comments

    - - - - - - +
    Title of Article Commented UponComment AuthorActions
    + + + + + - - - + + + - - + + -
    Title of Article Commented UponComment AuthorActions
    - View - Approve - Deny -
    + View + Approve + Deny +
    + -Back to Admin Panel +Back to Admin Panel 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 @@ -Congradulations! You've successfully added a Poll RSS. Now it's time to add the new Poll Of The Week:

    +Congradulations! You've successfully added a Poll RSS. Now it's time to add the new Poll Of The Week: -

    - Question:
    - Option 1:
    - Option 2:
    - Option 3:
    - Option 4:
    - -
    +
    + Question:
    + Option 1:
    + Option 2:
    + Option 3:
    + Option 4:
    + +
    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 @@ Congradulations, you've just made/edited a pending post! - + 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 @@ -

    Write a Poll RSS

    +

    Write a Poll RSS

    -
    -

    - -

    +
    +
    + +
    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 @@ Congradulations, you've just made/edited a post! - + 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 @@ -
    -
    -
    - +
    +
    +
    + -
    -
    - on -

    +

    +
    + on +
    -Back to Comment Moderation
    -Back to Admin Panel +

    Back to Comment Moderation
    +Back to Admin Panel

    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 @@ -

    Write a post

    +

    Write a post

    -
    - Post Title:
    -

    - Tags (comma-seperated):
    - Post Type:
    - -

    +
    + Post Title:
    +
    + Tags (comma-seperated):
    + Post Type:
    + +
    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 @@ -

    +

    -

    +

    - |
    + |
    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 @@ - + - + -
    + - + + on - -
    + + Edit + Delete + + + + - +function postComment() +{ + jQuery("#newComment textarea, #newComment input, #newComment button").attr("disabled", "disabled"); + jQuery("#flash").text("Processing....").slideDown(); + jQuery.ajax({ + type: "POST", + url: "/post.php", + data: ({ + id: "", + comment: jQuery("#newComment textarea").val(), + username: jQuery("#newComment input:text[name=username]").val(), + email: jQuery("#newComment input:text[name=email]").val(), + website: jQuery("#newComment input:text[name=website]").val(), + recaptcha_challenge_field: jQuery("#newComment input[name=recaptcha_challenge_field]").val(), + recaptcha_response_field: jQuery("#newComment input[name=recaptcha_response_field]").val() + }), + dataType: "text", + success: function(msg) { + if (msg.indexOf("textBubble") != -1) + { + jQuery("#flash").text("Your comment has been posted."); + jQuery("#newComment").html(msg); + } else { + jQuery("#newComment textarea, #newComment input, #newComment button").removeAttr("disabled"); + jQuery("#flash").text(msg); + } + }, + error: function() { + jQuery("#newComment textarea, #newComment input, #newComment button").removeAttr("disabled"); + jQuery("#flash").text("There was an error posting your comment."); + } + }); +} + + -
    -
    -
    -
    -
    - -
    -
    - , feel free to post a comment -
    +
    + +
    + +
    + + , feel free to post a comment -
    +
    -

    - Name:
    - Email:
    - Website (Optional): -

    +

    + Name:
    + Email:
    + Website (Optional): +

    - -
    - -
    + + + +
    diff --git a/theme/css.php b/theme/css.php old mode 100755 new mode 100644 index 352caaa..8c8b7ec --- a/theme/css.php +++ b/theme/css.php @@ -22,32 +22,10 @@ require('../headerproc.php'); header('Content-type: text/css'); -include('../../security/config.php'); -include('../includes/db.php'); -include('../includes/specialdates.php'); - -include("css/website.css"); -include("css/bubbles.css"); - -if (sd_ifNoSpecialDay()) -{ - if ($_GET['id'] == 'day') - { - include("css/day.css"); - } else if ($_GET['id'] == 'night') - { - include("css/night.css"); - } -} else { - include("css/holiday.php"); -} - -if ($_GET['cat'] == 'home') -{ - include('css/blog.php'); -} else if ($_GET['cat'] == 'panel') -{ - include('css/blog.php'); -} +include('css/website.css'); +include('css/blog.php'); +include('css/bubbles.css'); +include('css/quotes.css'); +include('css/holiday.php'); ?> 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 @@ if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);} require('headerproc.php'); +include_once('../../security/config.php'); +include_once('../includes/db.php'); ?> @@ -82,13 +84,14 @@ span.post-day { div.post-title { float: left; margin-left: 10px; - width: 500px; /* 430px */ + width: 90%; /* 500px */ } div.entry { clear: both; padding-top: 10px; - font: 75%/150% Arial, "Trebuchet MS", Tahoma; + /*font-size: 75%; + line-height: 150%;*/ } div.entry ol, @@ -218,5 +221,14 @@ div.post-date-4 { span.post-vote { float: right; position: relative; - top: -10px; + top: -2em; + right: 1em; +} + +span.post-rating { + font-size: big; +} + +span.post-action-done { + opacity: 0.2; } 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 @@ -/* Normal Bubble */ - -div.bubble { - width: auto; - font-size: 0.75em; - margin-bottom: 14px; - font: 1em "Lucida Grande", Lucida, Verdana, sans-serif; -} - -div.bubble blockquote { - margin: 0px; - padding: 0px; - border: 1px solid #c9c2c1; - background-color: #fff; -} - -div.bubble blockquote div { - margin: 10px; - padding: 0px; +.rounded { + -moz-border-radius: 10px; + -webkit-border-radius: 10px; + -khtml-border-radius: 10px; + border-radius: 10px; + padding: 4px; } -div.bubble cite { +div.module + cite { position: relative; - top: 6px; + top: -1em; margin: 0; padding: 7px 0px 0px 15px; background: transparent url(/theme/images/tip.gif) no-repeat 20px 0; @@ -29,56 +16,46 @@ div.bubble cite { font-size: small; } -/* Rounded Bubble */ -div.bubble div.rounded { - margin-bottom: 10px; - border: 3px solid #fff; - background-color: #b7e0ff; -} - -div.bubble div.rounded blockquote, -div.bubble div.navbar-rounded blockquote { - border: 0; - background-color: transparent; +div.module.unrounded + cite { + top: -0.9em; } -div.bubble div.rounded blockquote div { - margin: 0px 10px; +div.module.bquote + cite { + top: -0.8em; } -div.bubble cite.rounded { +div.module.rounded + cite { margin: 0px; - padding: 19px 0 0 15px; background: transparent url(/theme/images/tip-rounded.gif) no-repeat 15px 0; } -/* Pimped Bubble */ - -div.pimped { - font-size: 0.9em; -} - -div.pimped div.rounded { +div.module.pimped { color: #fff; border: 3px solid #fff; - background-color: #111; + background-color: #111 !important; + padding-top: 5px; + padding-bottom: 5px; } -div.pimped cite.rounded { - background: transparent url(/theme/images/tip-pimped.gif) no-repeat 15px 0; +div.module.pimped + cite { + background: transparent url(/theme/images/tip-pimped.gif) no-repeat 20px 0; } -div.bubble div.bquote blockquote { - margin: 0; - padding: 4px 0; - border: 1px solid #c9c2c1; - background-color: #fff; +div.module { + margin: auto 10px 14px 10px; + margin-left: 10px; + margin-right: 10px; + font-size: 0.9em; + background-color: #B7E0FF !important; + border: 3px solid #FFFFFF; } -.rounded { - -moz-border-radius: 10px; - -webkit-border-radius: 10px; - -khtml-border-radius: 10px; - border-radius: 10px; - padding: 4px; +div.module.unrounded { + background-color: white !important; + border: 1px solid #c9c2c1 !important; + padding: 5px; +} + +div.module.sidebar { + width: 250px; } 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 @@ -body { - background-color: aqua; - background-image: url(/theme/images/backgrounds/island6.PNG); -} 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 @@ if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);} require('headerproc.php'); +include('../includes/specialdates.php'); + +$bgcolor='aqua'; if (sd_isSpecialDay('Four Island A')) { @@ -93,20 +96,44 @@ if (sd_isSpecialDay('Four Island A')) } elseif (sd_isSpecialDay('Valentines Day')) { $bgimgm = 'valentines'; +} else { + $bgimgm = 'island6'; +} + +?> + +div#window { + background-color: ; + background-image: url(/theme/images/backgrounds/.PNG); + background-position: bottom left; + background-repeat: repeat-x; + background-attachment: fixed; + padding: 0 !important; } -$bodyID = $_GET['id']; -if (!isset($bgcolor)) + - include("css/day.css"); -} else { - include("css/night.css"); +div#content div#actual-content { + background-color: rgba(255, 255, 255, 0.5); } + -body { - background-image: url(/theme/images/backgrounds/.PNG) !important; +div#content div#actual-content { + background-color: rgba(0, 0, 0, 0.75); } + +.light-at-night { + color: #536482; +} + + 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 @@ -body * { - overflow: hidden; -} - -dl.icon { - height: 50px; -} - -#wrap { - text-align: center; - background:transparent; - filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99FFFFFF,endColorstr=#99FFFFFF); - zoom: 1; -} - -#wrap #page-body { - text-align: left; -} - -body#night #wrap { - filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000,endColorstr=#99000000); -} - -div#fi-navbar ul li a { - position: relative; - top: -0.4em; -} - -div.bubble cite { - position: static; - padding-top: 4px; -} - -div.bubble cite.rounded { - padding-top: 13px; -} - -div.pimped cite.rounded { - padding-top: 14px; -} - -span.post-vote { - position: static; -} 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 @@ -body { - background-color: black; - background-image: url(/theme/images/backgrounds/island6night.PNG); -} - -div#wrap { - background-color: rgba(0, 0, 0, 0.75); -} - -div#banner { - background-color: black; - background-image: url(/theme/images/fourisland_header_night.png); -} - -div#fi-navbar ul li.active img { - background-color: black; - outline: black solid .5em; -} - -#rightbar .sidebar .pimped cite, -.post .entry .bubble cite, -#footer, -body.quotes #content { - color: #555555; -} 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 @@ -body { - width: 100% !important; -} - -div#footer, div#rightbar, div#push { +div#sidebar, div#footer .foot-module, div#newComment { display: none; } -div#banner { - background-image: none; - height: auto !important; +div#content div#window, div#content div#actual-content { + background-color: white; + padding: 0; + -moz-border-radius: 0; + -webkit-border-radius: 0; + -khtml-border-radius: 0; + border-radius: 0; + margin: 0; } -div#banner h1 a { - text-indent: 0 !important; - color: black; - text-align: center; - height: auto !important; -} - -span.print { - display: inline; -} - div#cleardiv { clear: none; } div#content { - width: 100%; + width: 95%; } div.post-title { width: 90%; } +div#banner a { + text-indent: 0 !important; + color: black; + text-align: center; + height: auto !important; + font-size: 4em; + padding-top: 1em; +} 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 @@ +ul.quote-list { + list-style-type: none; +} + +li.quote { + margin: 0 0 1em; + padding-bottom: 0.1em; + background-color: #FCFCFC; +} + +h3.quote-header { + background-color: #F7F7F7; + border: 1px solid #F4F4F4; + margin: 0; + padding: 0.25em 0.75em; +} + +li.quote, h3.quote-header { + -moz-border-radius-topleft: 0.5em; + -moz-border-radius-topright: 0.5em; + -webkit-border-top-left-radius: 0.5em; + -webkit-border-top-right-radius: 0.5em; + -khtml-border-top-left-radius: 0.5em; + -khtml-border-top-right-radius: 0.5em; + border-top-left-radius: 0.5em; + border-top-right-radius: 0.5em; +} + +span.quote-date { + font-size: 70%; +} + +blockquote.quote-body { + font-family: Consolas, Monaco, Courier New, monospace; + font-size: 12px; + margin: 0.5em 0.75em; + padding: 0; + position: static; + width: 100%; +} + +ul.quote-list li:hover { + background: #FFFCEC; +} + +ul.quote-list li:hover h3.quote-header { + background: #FEC; + border-color: #FFE9C9; +} + +span.quote-action-done { + opacity: 0.2; +} + +span.quote-update-result { + float: right; + text-transform: uppercase; + font-size: 70%; + position: relative; + top: -1.2em; +} diff --git a/theme/css/website.css b/theme/css/website.css old mode 100755 new mode 100644 index f0f2a0e..145bcdf --- a/theme/css/website.css +++ b/theme/css/website.css @@ -1,14 +1,6 @@ -/* Four Island CSS */ - -body { - background: repeat-x bottom left fixed; - font-family: Arial, FreeSans; - margin: 0px; - padding: 0px 0px 30px !important; -} - -body.fourm { - font-family: Verdana, Helvetica, Arial, sans-serif; +* { + margin: 0; + padding: 0; } /* Effects */ @@ -27,349 +19,345 @@ body.fourm { } form textarea:focus, form input:focus { - border: 2px solid #900; - background-color: #FEFFB2; + border: 2px solid #900; + background-color: #FEFFB2; } /* Links */ a:link { - color: blue; - font-weight: bold; - text-decoration: none; + color: blue; + font-weight: bold; + text-decoration: none; } a:visited, a:active { - color: blue; - text-decoration: none; + color: blue; + text-decoration: none; } a:hover, a:focus { - color: blue; - font-weight: bold; - text-decoration: none; - font-variant: small-caps; - text-transform: capitalize; + color: blue; + font-weight: bold; + text-decoration: none; + font-variant: small-caps; + text-transform: capitalize; } a img { - border: 0; + border: 0; } -/* Random Elements */ +/* Body */ -* { - margin:0pt; - padding:0pt; +body { + font-family: "Lucida Grande", "Arial", sans; + background-color: #111; } -p {margin-top: 1em;} -ul, ol {margin-top: 1em; margin-bottom: 1em} - -img.center, img[align="center"] { - display: block; - margin-left: auto; - margin-right: auto; +div#header { + width: 100%; + height: 200px; + background-image: url(http://fourisland.com/theme/images/header-repeat.png); + background-repeat: repeat-x; } -acronym, abbr, span.caps { - cursor: help; +div#banner { + width: 800px; + height: 200px; + margin: 0 auto; + background-image: url(http://fourisland.com/theme/images/header.png); + background-position: bottom right; } -acronym, abbr { - border-bottom: 1px dashed #999; +div#header a { + width: 800px; + height: 200px; + text-indent: -5000px; + display: block; } -blockquote { - padding-left: 10px; - border-left: 3px solid #CCC; - font-family: Helvetica, sans-serif; - font-size: 14px; - margin: 10px 0 10px 50px; +div#sidebar { + width: 21%; + float: left; } -pre { - line-height: 12px; +div#content { + width: 69%; + float: right; + padding-left: 5%; + padding-right: 5%; + padding-top: 20px; } -/* Banner */ - -div#banner, div#fi-banner { - background-repeat: no-repeat; - width: 900px; /*728*/ - height: 200px; - float: left; -/* margin-top: 21px; */ +div#content div.rounded { + padding: 10px; } -div#banner { - background: white url("/theme/images/fourisland_header.png") center no-repeat; - width: 100%; +div#footer { + width: 100%; + padding-top: 20px; + padding-bottom: 20px; } -body div#banner h1, body div#fi-banner h1 { - margin: 0; +div#footer div.foot-module { + margin: 0 auto; + float: left; + width: 20%; + margin-left: 4%; + color: white; + font-size: 0.9em; } -body div#banner h1 a, body div#fi-banner h1 a { - display: block; - width: 900px; - height: 200px; - text-indent: -5000px; - text-decoration: none; - margin: 0; +div#footer a { + color: white; + border-bottom: 1px dotted white; } -div#banner h1, div#fi-banner h1 { - margin: 0; - font-size: 3.0em; - font-weight: normal; +div#footer div.foot-module ul { + list-style-type: square; } -/* NavBar */ - -div#fi-navbar { - position: relative; - background-color: #b7e0ff; - width: auto; - margin-bottom: 14px; - font: 0.9em "Lucida Grande", Lucida, Verdana, sans-serif; - height: 1.9em; - clear: both; +div#footer p { + font-size: 0.5em; + color: white; + text-align: center; } -div#fi-navbar div { - padding: .001em 0; - margin: 10px; +div#page-content { + background-color: #00ff00; /*#8B4513;*/ + padding-bottom: 10px; } -div#fi-navbar ul { - margin: .25em 0; - padding-left: 1em; - text-align: center; +body[id^=fourm] div#page div#content code { + display: block; + border: solid black 1px; + background-color: #FFFF64; + width: 485px; + overflow: visible; } -div#fi-navbar ul li { - display: inline; - font-family: Verdana, sans-serif; - font-size: 1.1em; +body[id^=fourm] div#content h2 { + color: #59770e; + margin: 0px 0px 2px; + border-bottom: 1px dotted #CCCCCC; + letter-spacing: -1px; + font-size: 140%; + padding-bottom: 3px; } -div#fi-navbar ul li+li:before { - content: " - "; +body#fourm div#actual-content { + font-size: 60%; } -div#fi-navbar ul li img, -div#fi-navbar ul li.active span { - display: none; +ul#navbar { + text-align: center; + margin-top: 0; } -div#fi-navbar ul li.active img { - display: inline; - background-color: white; - outline: white solid .5em; - margin: 0 .5em; +ul#navbar li { + display: inline; + font-family: Verdana, sans-serif; + font-size: 1.1em; } -div#fi-navbar div.bubble blockquote { - background: none; - font-size: 0.9em; +ul#navbar li+li:before { + content: " - "; } -div#fi-navbar div.bubble blockquote a { - color: blue; +ul#navbar li img, ul#navbar li.active span { + display: none; } -/* Sidebar */ - -div#rightbar { - float: left; - width: 270px; /*210*/ +ul#navbar li.active img { + display: inline; + background-color: white; + outline: white solid .5em; + margin: 0 .5em; } -div.sidebar { - width: 250px; /*250*/ /*240*/ /*210*/ - padding: 0 10px; - margin-bottom: 5px; +.invisible { + display: none; } -div.sidebar h3 { - font-family: Verdana, Helvetica, Arial, sans-serif; - margin: 5px 0 0 0; - font-weight: bold; - color: #333333; +a img { + border: 0; } -div.sidebar p { - font-size: 0.8em; - margin: 3px 0; +p { + margin-top: 1em; } -div.sidebar ul { - list-style-type: none; - padding: 0; - margin: 0; - line-height: normal !important; - list-style-image: none !important; -} - -div#sidebar ul li { - margin-top: 4px; +ul, ol { + margin-top: 1em; + margin-bottom: 1em; } - -div#sidebar ul li a { - display: block; - width: 230px; + +.center, img[align="center"] { + display: block; + margin: 0 auto !important; } -div#sidebar li img { - border: 0; - height: 16px; - width: 16px; +acronym, abbr, span.caps { + cursor: help; } -/* Layout */ +acronym, abbr { + border-bottom: 1px dashed #999; +} -#wrap { - width: 910px; - margin: 10px auto; - padding: 0; - background-color: white; - background-color: rgba(255, 255, 255, 0.5); - border: 4px solid gray; +pre { + background: #eee; + padding: 10px; + border: 2px solid #c94a29; + overflow: auto; + margin: 15px 0; + font-family: Courier, Monospace; } -#page-body { - margin: 0 30px; - clear: both; - position: relative; +ul pre, ol pre { + margin-left: -3em; } -body.fourm #page-body { - margin: 0 10px 0 25px; - width: 95%; - font-size: 62.5%; +div.autosize { + margin-bottom: 6px !important; } -#phpBB3-page-body { - margin: 4px 0 !important; - clear: both; +ul blockquote, ol blockquote { + position: relative; + left: -3em; + width: 110%; } -/* Content */ - -div#content { - float: right; - width: 555px; /*465*/ /*555*/ +.comment ul, .comment ol { + margin-left: 3em; } -body#day div#page div#content code { - display: block; - border: solid black 1px; - background-color: #FFFF64; - width: 485px; - overflow: visible; +ul div.bquote blockquote, ol div.bquote blockquote { + left: 0; } -div#content h2 { - color: #59770e; - margin: 0px 0px 2px; - border-bottom: 1px dotted #CCCCCC; - letter-spacing: -1px; - font: normal 140%/100% "Trebuchet MS", Tahoma, Arial; - padding-bottom: 3px; +li+br { + display: none; } -/* Random Divs/Spans */ +/* Tables */ -div.cleardiv { - clear: both; -} - -div#footer { - clear: both; - padding: .5em 0 1em 0; - margin-top: .5em; - text-align: center; - font-size: .68em; - border-top: 1px black solid; +table.webmail { + border: 0; + width: 100%; } -div#footer ul.rows li { - display: list-item; +table.webmail, table.webmail td { + border-spacing: 0; } -div#footer ul { - padding: 0; - margin: 0; - list-style-type: none; +table.webmail tr { + background-color: #3CE4ED; } -div#footer ul li { - display: inline; - margin-right: 1em; +table.webmail tr.even { + background-color: #39B7CD; } -div#footer ul li img { - width: 20px; - height: 20px; - vertical-align: top; +table.webmail th { + background-color: #FF9912; + text-align: left; } -div#content ul { - list-style: url(/theme/images/bullet_disk_big.png); +/* Sidebar */ + +div#rightbar { + float: left; + width: 270px; /*210*/ } -div#content a img { - border: solid transparent 1px; +div.sidebar { + width: 250px; /*250*/ /*240*/ /*210*/ + padding: 0 10px; + margin-bottom: 5px; } -div#content a:hover img { - border: dashed gray 1px; +div.sidebar h3 { + font-family: Verdana, Helvetica, Arial, sans-serif; + margin: 5px 0 0 0; + font-weight: bold; + color: #333333; } -div#hatbar.quotes-options ul { - list-style: none; +div.sidebar p { + font-size: 0.8em; + margin: 3px 0; } -div.autosize { - margin-bottom: 6px !important; +div#sidebar ul.hatnav { + list-style-type: none; + padding-left: 24px; + margin-top: 0 !important; + line-height: normal !important; + list-style-image: none !important; } -ul blockquote, ol blockquote { - position: relative; - left: -3em; - width: 110%; +div#sidebar ul { + list-style-type: none; +} + +div#sidebar ul.hatnav li { + text-align: right; + border: 1px gray solid; + padding-top: 2px; + padding-bottom: 2px; + background-color: #111; + color: white; +} + +div#sidebar ul.hatnav li a { + display: block; + width: 230px; + color: white; } -li+br { - display: none; +div#sidebar li img { + border: 0; + height: 16px; + width: 16px; } -.invisible { - display: none; +div#sidebar ul.hatnav li.active { + background-color:#00FF00; + border: none; } -/* Tables */ +div#sidebar ul.hatnav li:hover { + background-color:yellow; + border: none; +} -table.webmail { - border: 0; - width: 100%; +div#sidebar ul li.active a, div#sidebar ul li a:hover { + color: black; } -table.webmail, table.webmail td { - border-spacing: 0; +div.cleardiv { + clear: both; } -table.webmail tr { - background-color: #3CE4ED; +.nobr { + white-space: nowrap; } -table.webmail tr.even { - background-color: #39B7CD; +textarea { + width: 99%; } -table.webmail th { - background-color: #FF9912; - text-align: left; +div#flash { + position: fixed; + left: 0; + top: 0; + width: 100%; + background-color: yellow; + padding: 10px 0; + text-align: center; + border-bottom: 1px solid black; + display: none; + z-index: 9999; } diff --git a/theme/datefinder.tpl b/theme/datefinder.tpl deleted file mode 100755 index e69de29..0000000 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 @@ -

    Hello, my name is Waddle Dee

    - -

    - 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 - the 17'th page I lost this week! -

    - -

    - 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. - Yes, I'm really sorry! He gets really hungry sometimes (all of the time) but we try to keep him fed. -

    - - -

    - Anyway, instead of talking to me, you can: -

    - - - -

    - I'm sure you'll have fun. -

    - -

    - Oh, oh! More info has come in! You may not be able to find the page because of: -

    - -
      -
    1. An out-of-date bookmark/favourite
    2. -
    3. A search engine that has an out-of-date listing for us
    4. -
    5. A mis-typed address
    6. -
    - - - -

    - Oh, oh! More info has come in! -

    - -

    - You did a search on - for "". However, their index appears to be out of date. Because Kirby ate the page, no doubt. -

    - -

    - All is not lost! Why not try one of these links? -

    - - - -

    - I'm sure you'll have fun. -

    - - - -

    - Oh, oh! More info has come in! -

    - -

    - You were referred to this page by: -
    - I guess they didn't know that Kirby ate the page. -

    - - -

    - Wait a minute! That's us! Uh oh! It looks like one of our own links is broken! - I'm really sorry about this, and I'll try to fix it before Hatkirby notices. - Please PM "hatkirby" on The Fourm, or post a topic about it in "Fourscore Improvements". Thanks! -

    - - -

    - Why not try one of these links? -

    - - - -

    - I'm sure you'll have fun. -

    - - -

    - Oh wait, I have to go. Hatkirby's coming and I better have an explation for her this time! -

    +
    +

    Hello, my name is Waddle Dee

    + +

    + 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 + the 17'th page I lost this week! +

    + +

    + 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. + Yes, I'm really sorry! He gets really hungry sometimes (all of the time) but we try to keep him fed. +

    + + +

    + Anyway, instead of talking to me, you can: +

    + + + +

    + I'm sure you'll have fun. +

    + +

    + Oh, oh! More info has come in! You may not be able to find the page because of: +

    + +
      +
    1. An out-of-date bookmark/favourite
    2. +
    3. A search engine that has an out-of-date listing for us
    4. +
    5. A mis-typed address
    6. +
    + + + +

    + Oh, oh! More info has come in! +

    + +

    + You did a search on + for "". However, their index appears to be out of date. Because Kirby ate the page, no doubt. +

    + +

    + All is not lost! Why not try one of these links? +

    + + + +

    + I'm sure you'll have fun. +

    + + + +

    + Oh, oh! More info has come in! +

    + +

    + You were referred to this page by: +
    + I guess they didn't know that Kirby ate the page. +

    + + +

    + Wait a minute! That's us! Uh oh! It looks like one of our own links is broken! + I'm really sorry about this, and I'll try to fix it before Hatkirby notices. + Please PM "hatkirby" on The Fourm, or post a topic about it in "Fourscore Improvements". Thanks! +

    + + +

    + Why not try one of these links? +

    + + + +

    + I'm sure you'll have fun. +

    + + +

    + Oh wait, I have to go. Hatkirby's coming and I better have an explation for her this time! +

    +
    diff --git a/theme/footer.tpl b/theme/footer.tpl old mode 100755 new mode 100644 index eecbdcf..950b16e --- a/theme/footer.tpl +++ b/theme/footer.tpl @@ -1,45 +1,60 @@ - + + + + +
    + + + +
    +

    Popular Posts

    - - - - - - +
      + +
    • + +
    +
    + +
    + +

    + Four Island (r) is by Starla Insigna. + Licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License. + Valid CSS + Valid XHTML + RSS Feed +

    + + + 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 @@ -I know you're waiting. So are we.
    - +I know you're waiting. So are we.
    +
    diff --git a/theme/header.tpl b/theme/header.tpl old mode 100755 new mode 100644 index 2117d3d..64cc902 --- a/theme/header.tpl +++ b/theme/header.tpl @@ -1,95 +1,198 @@ - - - - - <!--EXTRATITLE-->Four Island - - - - - - - - - - - - - - - - > -
    - - -
    -
    - -
    -
    - -
    -
    + + + + + <!--EXTRATITLE-->Four Island + + + + + + + + + + + + + +
    + + + +
    + + +
    + + +
    +
    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 @@ + + + + + + + + + > + + + + + +
    IDDateHolidate
    diff --git a/theme/images/fourisland_header.png b/theme/images/fourisland_header.png deleted file mode 100755 index 35f7886..0000000 Binary files a/theme/images/fourisland_header.png and /dev/null differ diff --git a/theme/images/fourisland_header_night.png b/theme/images/fourisland_header_night.png deleted file mode 100644 index 25502a0..0000000 Binary files a/theme/images/fourisland_header_night.png and /dev/null differ diff --git a/theme/images/header-repeat.png b/theme/images/header-repeat.png new file mode 100644 index 0000000..9de2db8 Binary files /dev/null and b/theme/images/header-repeat.png differ diff --git a/theme/images/header.png b/theme/images/header.png new file mode 100644 index 0000000..835e28d Binary files /dev/null and b/theme/images/header.png differ diff --git a/theme/images/icons/xhtml_valid.png b/theme/images/icons/xhtml_valid.png new file mode 100644 index 0000000..d2e1cfb Binary files /dev/null and b/theme/images/icons/xhtml_valid.png differ diff --git a/theme/images/no-ie6.png b/theme/images/no-ie6.png deleted file mode 100755 index fef317c..0000000 Binary files a/theme/images/no-ie6.png and /dev/null 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 @@ -

    Four Island Login Page

    - -

    - -ERROR:

    - -Welcome to the Four Island Login page!
    -To post feedback on this site, and also to post on the forums, you must be a member.
    -Sadly, currently membership is invitation-only. But hopefully that will change in the near future.
    -HOWEVER, you may request membership by email hatkirby@fourisland.com (link on the right).
    -A 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).

    -

    -
    -
    - - -
    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 @@ -

    Four Island is under maintenance

    +

    Four Island is under maintenance

    -

    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, -so Four Island'll be down for a few minutes. Please try again soon and thanks for your interest in Four Island!

    +

    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, +so Four Island'll be down for a few minutes. Please try again soon and thanks for your interest in Four Island!

    -

    --Starla Insigna

    +

    --Starla Insigna

    diff --git a/theme/msg.tpl b/theme/msg.tpl index 25a4f36..82353fe 100755 --- a/theme/msg.tpl +++ b/theme/msg.tpl @@ -1 +1 @@ -

    Back to +

    Back to

    diff --git a/theme/msg2.tpl b/theme/msg2.tpl index 59c723e..2010226 100755 --- a/theme/msg2.tpl +++ b/theme/msg2.tpl @@ -1 +1 @@ -

    +

    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 @@ +
    +
    + + +
    +
    + + on 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 @@ -
    +
    -
    -
    -
    -
    - - on
    - -
    -
    -
    - Pingbacks -
    +
    + + on
    + +
    + +Pingbacks 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 @@ -

    -

    -

    -

    -

    -
    -
    -
    - - -

    - - vote(s)!
    - - vote(s)!
    - - vote(s)!
    - - vote(s)! -

    -
    -
    - on - - - The results of this poll of the week are pending. Meanwhile, if you haven't voted yet, why not do so? -
    - -
    - -
    - +

    + + + +
    + + + +

    + - vote(s)!
    + - vote(s)!
    + - vote(s)!
    + - vote(s)! +

    +
    + + on + + + The results of this poll of the week are pending. Meanwhile, if you haven't voted yet, why not do so? +
    + 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 @@ -

    Poll of the Week

    -

    -

    -

    -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! -

    - - +

    Poll of the Week

    + + + +

    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!

    + +
    QuestionWeek
    + - > + > -
    QuestionWeek
    + -

    +

    - Previous + Previous - Next + Next -

    +

    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 @@ -
    - +
    + - + -
    +
    - - + + -
    +
    - - + + -
    +
    - - + + -
    +
    - - + + -

    - -

    - +

    + +

    +
    - + - - - - - - - - - - - - - - - - - - - - - - -
    %
    %
    %
    %
    +
    + + + + + + + + + + + + + + + + + + + + + +
    %
    %
    %
    %
    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 @@ -« - » +« + » + + -
    - +
    + -
    -

    - - - -

    +
    +

    + + + + + + +

    - - - + + + - - -  » - + +  » + - - Add Comment » - + + Add Comment » + -
    +
    -
    -
    -
    -
    -
    - +
    + -
    -
    - on + +

    [....] Click here to read the rest of this post.

    + +
    + + on - - +1 - - -1 - -
    -
    -
    + + + +1 + + + -1 + + + + -1 + + + -1 + + +
    +
    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 @@ -

    Four Island Login Page

    - -

    -

    Congradulations, you've logged in!
    - You can now: -
      -
    • Comment on the blog posts
    • -
    • Comment on Projects
    • -
    • Comment on Flash Games
    • -
    • Comment on a whole lot of other things I can't remember right now
    • -
    • Update your userpage
    • -
    • More soon...
    • -
    - Click here to return to the page you were on. -
    -

    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 @@ -
    +
    -

    Contribute

    +

    Contribute

    -

    The quote you have submitted is:

    -

    -

    If this is not the quote you have entered, please contact the administrator and explain your problem. - Also, there is no need to press the submit button again. You're quote has already been sent.

    +

    The quote you have submitted is:

    +

    +

    If this is not the quote you have entered, please contact the administrator and explain your problem. + Also, there is no need to press the submit button again. You're quote has already been sent.

    -
    -
    - - -
    +
    +
    + + +
    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 @@ -
    +
    + + -

    +

    +
      -

      - # - + - () - - - [X] - -
      +

    • +

      + # + + + + () + - + + + + + () + - + + + [X] + + + [X] + + + +

      - -

      +
      +
    • +
    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 @@ -
    +
    -
    - First   - -10   - +
    + First   + -10   + -    +    -    +    -    +    - - +10   - Last   -
    + + +10   + Last   +
    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 @@ -
    +
    -

    Search

    +

    Search

    -
    -   -
    - Sort:   - How many: -
    +
    +   +
    + Sort:   + How many: +
    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 @@ -
    +
    -
    -
    -
    -
    - - by on
    - -
    -
    -
    - Theoretically Related Posts -
    +
    + + by on
    + +
    + +Theoretically Related Posts -- cgit 1.4.1