forcevote just redirects back to force vote.

Status
Not open for further replies.

olliedean

ollie.cool
Jan 28, 2013
433
107
After changing my domain to https, I've been having the issue of FindRetros voting just redirecting back to voting, making the client inaccessible.
I have decided to disable forcevote until this problem is fixed.

PHP:
<?php
if(isset($_GET['voted'])) {
}
else {
$userip = "{$_SERVER['REMOTE_ADDR']}";
$current_url = substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1);
$url = 'http://votingapi.com/validate.php?user=Lucid&ip=' . $userip;
$context = stream_context_create(array('http' => array('timeout' => 1)));
$data =   @File_get_contents($url, 1, $context);
if(!$data || !is_numeric($data)) {
return "Error";
}
else if ($data == 1 || $data == 2) {
}
else {
header ("Location: http://votingapi.com/vote.php?username=Lucid&api=https:!!lucidhotel.net!client?novote");
exit;
}
}
?>
 
Status
Not open for further replies.

Users who are viewing this thread

Top