diff options
| author | Starla Insigna <starla4444@gmail.com> | 2011-01-30 14:10:39 -0500 |
|---|---|---|
| committer | Starla Insigna <starla4444@gmail.com> | 2011-01-30 14:10:39 -0500 |
| commit | a4976f966f0de5abc11235e8decb760ad79ecad1 (patch) | |
| tree | 1c1ec1c5fd31a66b543bd9f092a1295de5bbdd42 /pages/poll.php | |
| parent | 74db7a24d9c2230b104979f4e4981c57ff73de71 (diff) | |
| download | fourisland-a4976f966f0de5abc11235e8decb760ad79ecad1.tar.gz fourisland-a4976f966f0de5abc11235e8decb760ad79ecad1.tar.bz2 fourisland-a4976f966f0de5abc11235e8decb760ad79ecad1.zip | |
Removed deleted files from previous commit
Wow, that took a long time to notice.
Diffstat (limited to 'pages/poll.php')
| -rwxr-xr-x | pages/poll.php | 104 |
1 files changed, 0 insertions, 104 deletions
| diff --git a/pages/poll.php b/pages/poll.php deleted file mode 100755 index c7cc909..0000000 --- a/pages/poll.php +++ /dev/null | |||
| @@ -1,104 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | /* | ||
| 3 | 444444444 | ||
| 4 | 4::::::::4 | ||
| 5 | 4:::::::::4 | ||
| 6 | 4::::44::::4 | ||
| 7 | 4::::4 4::::4 Four Island | ||
| 8 | 4::::4 4::::4 | ||
| 9 | 4::::4 4::::4 Written and maintained by Starla Insigna | ||
| 10 | 4::::444444::::444 | ||
| 11 | 4::::::::::::::::4 pages/poll.php | ||
| 12 | 4444444444:::::444 | ||
| 13 | 4::::4 Please do not use, reproduce or steal the | ||
| 14 | 4::::4 contents of this file without explicit | ||
| 15 | 4::::4 permission from Hatkirby. | ||
| 16 | 44::::::44 | ||
| 17 | 4::::::::4 | ||
| 18 | 4444444444 | ||
| 19 | */ | ||
| 20 | |||
| 21 | if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);} | ||
| 22 | |||
| 23 | require('headerproc.php'); | ||
| 24 | |||
| 25 | $pageCategory = 'poll'; | ||
| 26 | |||
| 27 | if (!isset($_GET['id'])) | ||
| 28 | { | ||
| 29 | $template = new FITemplate('pollIndex'); | ||
| 30 | |||
| 31 | $getpolls = "SELECT * FROM polloftheweek ORDER BY id DESC"; | ||
| 32 | $getpolls2 = mysql_query($getpolls); | ||
| 33 | $i=0; | ||
| 34 | while ($getpolls3[$i] = mysql_fetch_array($getpolls2)) | ||
| 35 | { | ||
| 36 | $question = strip_tags($getpolls3[$i]['question']); | ||
| 37 | if (strlen($question) > 50) | ||
| 38 | { | ||
| 39 | $question = substr($question, 0, 50); | ||
| 40 | while (substr($question, strlen($question)-1) != ' ') | ||
| 41 | { | ||
| 42 | $question = substr($question, 0, strlen($question)-1); | ||
| 43 | } | ||
| 44 | |||
| 45 | $question = substr($question, 0, strlen($question)-1); | ||
| 46 | $question .= '....'; | ||
| 47 | } | ||
| 48 | $template->adds_block('POLL', array( 'ID' => $getpolls3[$i]['id'], | ||
| 49 | 'QUESTION' => doAprilFoolsDay(htmlentities(stripslashes($question))), | ||
| 50 | 'WEEK' => date('F jS Y', strtotime($getpolls3[$i]['week'])), | ||
| 51 | 'EVEN' => (($i % 2 == 1) ? ' class="even"' : ''))); | ||
| 52 | $i++; | ||
| 53 | } | ||
| 54 | |||
| 55 | $cntpolls = "SELECT COUNT(*) FROM polloftheweek"; | ||
| 56 | $cntpolls2 = mysql_query($cntpolls); | ||
| 57 | $cntpolls3 = mysql_fetch_array($cntpolls2); | ||
| 58 | if ($start < floor($cntpolls3['COUNT(*)'] / 10)) | ||
| 59 | { | ||
| 60 | $template->adds_block('NEXT', array('ID' => ($start+1))); | ||
| 61 | } | ||
| 62 | |||
| 63 | $template->display(); | ||
| 64 | } else { | ||
| 65 | $template = new FITemplate('poll'); | ||
| 66 | |||
| 67 | $getpoll = "SELECT * FROM polloftheweek WHERE id = " . $_GET['id']; | ||
| 68 | $getpoll2 = mysql_query($getpoll); | ||
| 69 | $getpoll3 = mysql_fetch_array($getpoll2); | ||
| 70 | |||
| 71 | if ($getpoll3['id'] == $_GET['id']) | ||
| 72 | { | ||
| 73 | $template->add('QUESTION', htmlentities(stripslashes($getpoll3['question']))); | ||
| 74 | |||
| 75 | if ($getpoll3['text'] != '') | ||
| 76 | { | ||
| 77 | $template->adds_block('COMPLETE', array( 'RSS' => parseText(stripslashes($getpoll3['text'])), | ||
| 78 | 'AUTHOR' => $getrss3['author'], | ||
| 79 | 'DATE' => date("F jS Y \a\\t g:i:s a",strtotime($getpoll3['week'])), | ||
| 80 | 'OPTION1' => doAprilFoolsDay(stripslashes($getpoll3['option1'])), | ||
| 81 | 'OPTION2' => doAprilFoolsDay(stripslashes($getpoll3['option2'])), | ||
| 82 | 'OPTION3' => doAprilFoolsDay(stripslashes($getpoll3['option3'])), | ||
| 83 | 'OPTION4' => doAprilFoolsDay(stripslashes($getpoll3['option4'])), | ||
| 84 | 'CLICKS1' => $getpoll3['clicks1'], | ||
| 85 | 'CLICKS2' => $getpoll3['clicks2'], | ||
| 86 | 'CLICKS3' => $getpoll3['clicks3'], | ||
| 87 | 'CLICKS4' => $getpoll3['clicks4'])); | ||
| 88 | } else { | ||
| 89 | $template->adds_block('INCOMPLETE', array('exi'=>1)); | ||
| 90 | } | ||
| 91 | |||
| 92 | $template->add('POTW', getPollOfTheWeek($_GET['id'])); | ||
| 93 | $template->display(); | ||
| 94 | |||
| 95 | $page_id = 'polloftheweek-' . $getpoll3['id']; | ||
| 96 | include('includes/comments.php'); | ||
| 97 | |||
| 98 | displayRelated($getpoll3['question']); | ||
| 99 | } else { | ||
| 100 | generateError('404'); | ||
| 101 | } | ||
| 102 | } | ||
| 103 | |||
| 104 | ?> | ||
