From 284226706885e3b40769dea5853a95e2b32efda8 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sat, 22 Nov 2008 18:01:52 -0500 Subject: Created the 6th layout --- pages/quotes.php | 35 ++++------------------------------- 1 file changed, 4 insertions(+), 31 deletions(-) (limited to 'pages/quotes.php') diff --git a/pages/quotes.php b/pages/quotes.php index f208f70..d557ca1 100755 --- a/pages/quotes.php +++ b/pages/quotes.php @@ -25,40 +25,17 @@ require('headerproc.php'); include('includes/functions_quotes.php'); $pageCategory = 'quotes'; +$headtags = ''; if (isset($_GET['id'])) { $quote_num = $_GET['id']; } -if (!isset($_GET['act'])) +if ((!isset($_GET['act'])) || ($_GET['act'] == 'latest')) { - $template = new FITemplate('post'); - $template->adds_block('INTERNAL',array('exi'=>1)); - - $getpost = "SELECT * FROM updates WHERE tag1 = \"quotes\" OR tag2 = \"tag2\" OR tag3 = \"tag3\" ORDER BY id DESC LIMIT 0,1"; - $getpost2 = mysql_query($getpost); - $getpost3 = mysql_fetch_array($getpost2); - - $title = $getpost3['title'] . ' - Blog Archive'; - - $template->adds_block('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'])), - 'MONTH' => date('M',strtotime($getpost3['pubDate'])), - 'DAY' => date('d',strtotime($getpost3['pubDate'])), - 'CODED' => urlencode($getpost3['title']), - 'TITLE' => $getpost3['title'], - 'AUTHOR' => $getpost3['author'], - 'TAG1' => $getpost3['tag1'], - 'TAG2' => $getpost3['tag2'], - 'TAG3' => $getpost3['tag3'], - 'TEXT' => parseBBCode($getpost3['text']))); - - $template->display(); - $page_id = 'updates-' . $getpost3['id']; - - include('includes/comments.php'); + $query = "SELECT id, quote, rating, flag FROM rash_quotes ORDER BY id DESC LIMIT 50"; + quote_generation($query, "Latest", -1); } else if ($_GET['act'] == 'add') { $template = new FITemplate('quotes/add'); @@ -107,10 +84,6 @@ if (!isset($_GET['act'])) } $template->add('BACK','Quote #' . $quote_num); $template->display(); -} elseif ($_GET['act'] == 'latest') -{ - $query = "SELECT id, quote, rating, flag FROM rash_quotes ORDER BY id DESC LIMIT 50"; - quote_generation($query, "Latest", -1); } elseif ($_GET['act'] == 'random') { $query = "SELECT id, quote, rating, flag FROM rash_quotes ORDER BY rand() LIMIT 50"; -- cgit 1.4.1