summary refs log tree commit diff stats
path: root/pages/polloftheweek.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/polloftheweek.php')
-rwxr-xr-xpages/polloftheweek.php56
1 files changed, 0 insertions, 56 deletions
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
104::::444444::::444
114::::::::::::::::4 pages/polloftheweek.php
124444444444:::::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
21if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);}
22
23require('headerproc.php');
24
25if (!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
44if (($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?>