Posted by Rafal
2013-11-02

If someone have that problem when ip-block.txt works but voting doesn't work - as Tom said - disable magic quotes BUT if you have problem with .htaccess or php.ini you can add few lines in ajax-poll.php, that worked for me:

if (get_magic_quotes_gpc ()) {

function stripslashes_deep($value) {
$value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value);
return $value;
}

$_POST = (isset($_POST) && !empty($_POST)) ? array_map('stripslashes_deep', $_POST) : array();
$_GET = (isset($_GET) && !empty($_GET)) ? array_map('stripslashes_deep', $_GET) : array();
$_COOKIE = (isset($_COOKIE) && !empty($_COOKIE)) ? array_map('stripslashes_deep', $_COOKIE) : array();
$_REQUEST = (isset($_REQUEST) && !empty($_REQUEST)) ? array_map('stripslashes_deep', $_REQUEST) : array();
}

Cheers!
Posted by Tom
2013-11-03

Thanks for the code!