From b5736e3ad3830fa732dcbd1a518ec3dd6ea7b98a Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Thu, 13 Aug 2009 17:46:09 -0400 Subject: Rewrote Admin panel The following database changes must be made: * A TEXT column called "text" must be added to the end of "polloftheweek" * The transferPollRss.php script must be run * The "pollrss" table must be dropped Closes #113 --- pages/quotes.php | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'pages/quotes.php') diff --git a/pages/quotes.php b/pages/quotes.php index 4d0b46e..f1e0d65 100755 --- a/pages/quotes.php +++ b/pages/quotes.php @@ -168,11 +168,19 @@ if (isset($_GET['id']) && !(is_numeric($_GET['id']))) } } else if (is_numeric($_GET['act'])) { - $query = "SELECT * FROM rash_quotes WHERE id = " . $_GET['act']; - quote_generation($query, "#" . $_GET['act'], -1); + $getquote = "SELECT * FROM rash_quotes WHERE id = " . $_GET['act']; + $getquote2 = mysql_query($getquote); + $getquote3 = mysql_fetch_array($getquote2); - $page_id = 'quote-' . $_GET['act']; - include('includes/comments.php'); + if ($getquote3['id'] == $_GET['act']) + { + quote_generation($getquote, "#" . $_GET['act'], -1); + + $page_id = 'quote-' . $_GET['act']; + include('includes/comments.php'); + } else { + generateError('404'); + } } else { generateError('404'); } -- cgit 1.4.1