Find Retros problem

Status
Not open for further replies.

olliedean

ollie.cool
Jan 28, 2013
433
107
Return URL is:

Have it on my client.php:
Code:
<?php include_once ("forcevote.php");
?>

in forcevote.php:
Code:
<?php
if(isset($_GET['voted'])) {
}
else {
$userip = "{$_SERVER['HTTP_CF_CONNECTING_IP']}";
$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.pw!client?novote");
exit;
}
}

When I try enter the client, it shows this.
lO-V7ynIQPeecI_9vvQ6vw.png
 

JynX

Posting Freak
Feb 6, 2016
710
438
Use the actual vote validator that was created by Josh especially for FindRetros.

Link:


Here's something that you may find useful for your usage.
Code:
if(!isset($_GET['voted'])) {
  require_once 'findretros_config.php';
  require_once 'findretros.php';
  $FindRetros = new FindRetros();
  if(!$FindRetros->hasClientVoted()) {
    $FindRetros->redirectClientToVote();
  }
}

Also why are you checking for a GET variable called "voted" and then returning with a GET variable of "novote'?
 

Weasel

👄 I'd intercept me
Nov 25, 2011
4,135
2,461
As @JynX stated, you should use the official package provided by FindRetros. If you choose to use otherwise (your own code), please open up a thread in Habbo Help & Support.

Thread closed.
 
Status
Not open for further replies.

Users who are viewing this thread

Top