diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2009-08-09 09:14:58 -0400 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2009-08-09 09:14:58 -0400 |
commit | 893957c41481a0cd5eb624096337762ffa54ff28 (patch) | |
tree | 09d2487f8add5a6281e3482a471abf21faa4f819 /pages/poll-results.php | |
parent | d27a3784c81f0c582e43655509e806978b7e65e4 (diff) | |
download | fourisland-893957c41481a0cd5eb624096337762ffa54ff28.tar.gz fourisland-893957c41481a0cd5eb624096337762ffa54ff28.tar.bz2 fourisland-893957c41481a0cd5eb624096337762ffa54ff28.zip |
Created layout 7
The following changes were also made in this revision: * All HTML was changed to XHTML and a !DOCTYPE was included to reflect this * Rewrote quotes tracking system to be much less complicated and actually working * Changed quotes rendering to look more like Chirpy than Rash * Fixed comment textarea bug * Rewrote a ton of CSS so it's not as bloated * Added a JavaScript confirmation when deleting a comment * AJAXified voting on the POTW * AJAXified voting and flagging quotes * AJAXified commenting * AJAXified voting on posts * Added DateFinder back after it was accidentally deleted in Layout 4.5 The following database changes must be performed as soon as possible: * Fix title of NO <!DOCTYPE> post (the < is missing the semicolon) * Restore post Frasty Tha Snaman from a backup * Reset "flag" field of all rows in "rash_quotes" to 0 * Remove the "vote" and "flag" columns of "rash_tracking" * Rename the "quote_id" column of "rash_tracking" to "vote" The following external code changes must also be performed as soon as possible: * Add the following line to the end of the // Four Island block in The Fourm's functions.php: require('/svr/www/hatkirby/fourisland/main/includes/specialdates.php');
Diffstat (limited to 'pages/poll-results.php')
-rw-r--r-- | pages/poll-results.php | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/pages/poll-results.php b/pages/poll-results.php new file mode 100644 index 0000000..e829e53 --- /dev/null +++ b/pages/poll-results.php | |||
@@ -0,0 +1,54 @@ | |||
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 | if (isLoggedIn()) | ||
28 | { | ||
29 | $getip = "SELECT * FROM didpollalready WHERE ip = \"" . $_SERVER['REMOTE_ADDR'] . "\""; | ||
30 | $getip2 = mysql_query($getip); | ||
31 | $getip3 = mysql_fetch_array($getip2); | ||
32 | |||
33 | if ($getip3['ip'] != $_SERVER['REMOTE_ADDR']) | ||
34 | { | ||
35 | $setip = "INSERT INTO didpollalready SET ip = \"" . $_SERVER['REMOTE_ADDR'] . "\""; | ||
36 | $setip2 = mysql_query($setip); | ||
37 | $getpoll = "SELECT * FROM polloftheweek ORDER BY id DESC LIMIT 0,1"; | ||
38 | $getpoll2 = mysql_query($getpoll); | ||
39 | $getpoll3 = mysql_fetch_array($getpoll2); | ||
40 | $setpoll = "UPDATE polloftheweek SET clicks" . $_GET['id'] . " = " . ($getpoll3['clicks' . $_GET['id']]+1) . " WHERE id = " . $getpoll3['id']; | ||
41 | $setpoll2 = mysql_query($setpoll); | ||
42 | |||
43 | die(getPollOfTheWeek()); | ||
44 | } else { | ||
45 | generateError('404'); | ||
46 | } | ||
47 | } else { | ||
48 | generateError('404'); | ||
49 | } | ||
50 | } else { | ||
51 | generateError('404'); | ||
52 | } | ||
53 | |||
54 | ?> | ||