getGUID(); insert_data("INSERT INTO {$CONFIG->dbprefix}koolielu_polls_answers (user_guid, user_ip, poll_id, answer_id) VALUES ($user, '$user_ip', $poll_id, $answer)"); } else { insert_data("INSERT INTO {$CONFIG->dbprefix}koolielu_polls_answers (user_ip, poll_id, answer_id) VALUES ('$user_ip', $poll_id, $answer)"); } $expire = time() + 60*60*24*14; setcookie('koolielu_poll', $poll_id, $expire, '/'); } if ($view_button) { forward($CONFIG->wwwroot.'pg/koolielu/polls'); } forward($_SERVER['HTTP_REFERER']); ?>