From dce71eebff258965dcf4d24f88a8e7db32c90812 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Wed, 22 Sep 2010 22:59:09 -0400 Subject: Removed POTW from sidebar --- pages/poll.php | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'pages/poll.php') diff --git a/pages/poll.php b/pages/poll.php index e228712..c7cc909 100755 --- a/pages/poll.php +++ b/pages/poll.php @@ -28,14 +28,7 @@ if (!isset($_GET['id'])) { $template = new FITemplate('pollIndex'); - if (isset($_GET['start'])) - { - $start = $_GET['start'] * 10; - } else { - $start = 0; - } - - $getpolls = "SELECT * FROM polloftheweek ORDER BY id DESC LIMIT " . $start . ",10"; + $getpolls = "SELECT * FROM polloftheweek ORDER BY id DESC"; $getpolls2 = mysql_query($getpolls); $i=0; while ($getpolls3[$i] = mysql_fetch_array($getpolls2)) @@ -59,18 +52,6 @@ if (!isset($_GET['id'])) $i++; } - if ($i==0) - { - generateError('404'); - exit; - } - - $start /= 10; - if ($start > 0) - { - $template->adds_block('PREVIOUS', array('ID' => ($start-1))); - } - $cntpolls = "SELECT COUNT(*) FROM polloftheweek"; $cntpolls2 = mysql_query($cntpolls); $cntpolls3 = mysql_fetch_array($cntpolls2); @@ -79,7 +60,6 @@ if (!isset($_GET['id'])) $template->adds_block('NEXT', array('ID' => ($start+1))); } - $template->add('POTW', getPollOfTheWeek()); $template->display(); } else { $template = new FITemplate('poll'); -- cgit 1.4.1