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 | |
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')
-rwxr-xr-x | pages/poll-results.php | 49 | ||||
-rwxr-xr-x | pages/poll.php | 104 | ||||
-rwxr-xr-x | pages/polloftheweek.php | 56 |
3 files changed, 0 insertions, 209 deletions
diff --git a/pages/poll-results.php b/pages/poll-results.php deleted file mode 100755 index e2fe154..0000000 --- a/pages/poll-results.php +++ /dev/null | |||
@@ -1,49 +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-results.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 | if ((isset($_GET['id'])) && (is_numeric($_GET['id'])) && ($_GET['id'] >= 1) && ($_GET['id'] <= 4)) | ||
26 | { | ||
27 | $getip = "SELECT * FROM didpollalready WHERE ip = \"" . $_SERVER['REMOTE_ADDR'] . "\""; | ||
28 | $getip2 = mysql_query($getip); | ||
29 | $getip3 = mysql_fetch_array($getip2); | ||
30 | |||
31 | if ($getip3['ip'] != $_SERVER['REMOTE_ADDR']) | ||
32 | { | ||
33 | $setip = "INSERT INTO didpollalready SET ip = \"" . $_SERVER['REMOTE_ADDR'] . "\""; | ||
34 | $setip2 = mysql_query($setip); | ||
35 | $getpoll = "SELECT * FROM polloftheweek ORDER BY id DESC LIMIT 0,1"; | ||
36 | $getpoll2 = mysql_query($getpoll); | ||
37 | $getpoll3 = mysql_fetch_array($getpoll2); | ||
38 | $setpoll = "UPDATE polloftheweek SET clicks" . $_GET['id'] . " = " . ($getpoll3['clicks' . $_GET['id']]+1) . " WHERE id = " . $getpoll3['id']; | ||
39 | $setpoll2 = mysql_query($setpoll); | ||
40 | |||
41 | die(getPollOfTheWeek()); | ||
42 | } else { | ||
43 | generateError('404'); | ||
44 | } | ||
45 | } else { | ||
46 | generateError('404'); | ||
47 | } | ||
48 | |||
49 | ?> | ||
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 | ?> | ||
diff --git a/pages/polloftheweek.php b/pages/polloftheweek.php deleted file mode 100755 index 0410151..0000000 --- a/pages/polloftheweek.php +++ /dev/null | |||
@@ -1,56 +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/polloftheweek.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 | if (!isset($forceDisplay)) | ||
26 | { | ||
27 | $getpoll = "SELECT * FROM polloftheweek ORDER BY id DESC LIMIT 0,1"; | ||
28 | } else { | ||
29 | $getpoll = "SELECT * FROM polloftheweek WHERE id = " . $forceDisplay; | ||
30 | } | ||
31 | $getpoll2 = mysql_query($getpoll); | ||
32 | $getpoll3 = mysql_fetch_array($getpoll2); | ||
33 | |||
34 | $template->add('QUESTION', $getpoll3['question']); | ||
35 | $template->add('OPTION1', $getpoll3['option1']); | ||
36 | $template->add('OPTION2', $getpoll3['option2']); | ||
37 | $template->add('OPTION3', $getpoll3['option3']); | ||
38 | $template->add('OPTION4', $getpoll3['option4']); | ||
39 | |||
40 | $getip = "SELECT * FROM didpollalready WHERE ip = \"" . $_SERVER['REMOTE_ADDR'] . "\""; | ||
41 | $getip2 = mysql_query($getip); | ||
42 | $getip3 = mysql_fetch_array($getip2); | ||
43 | |||
44 | if (($getip3['ip'] != $_SERVER['REMOTE_ADDR']) && (!isset($forceDisplay))) | ||
45 | { | ||
46 | $template->adds_block('FORM',array('exi'=>1)); | ||
47 | } else { | ||
48 | $template->adds_block('DISPLAY',array('exi'=>1)); | ||
49 | |||
50 | $template->add('PERCENT1', getpercent($getpoll3,'1')); | ||
51 | $template->add('PERCENT2', getpercent($getpoll3,'2')); | ||
52 | $template->add('PERCENT3', getpercent($getpoll3,'3')); | ||
53 | $template->add('PERCENT4', getpercent($getpoll3,'4')); | ||
54 | } | ||
55 | |||
56 | ?> | ||