22
OK, it seems like the XoopsPoll is working now, so give it a try (download
from here. But there will be a clean-up later, especially with the translation variables names, as it it right now a little bit messy.
However, I have a question. In the index.php (line 81) there is code:
$voted_polls = (!empty($HTTP_COOKIE_VARS['voted_polls'])) ? $HTTP_COOKIE_VARS['voted_polls'] : array();
I tried to update it with:
$voted_polls = (!empty($_COOKIE['voted_polls'])) ? $_COOKIE['voted_polls'] : array();
but it's not working properly.
This is what is happening:
- I vote in a Poll #1
- I uninstall the XoopsPoll, and install it again.
- I set up the Poll #1
- Even if the poll is empty, XoopsPoll is telling me that I already voted.
I look at the cookies and it seems like they remain there. When I switch back to the original code, everything is OK, i.e. the cookies get cleared.
Any idea?