Find Retros problem

Status
Not open for further replies.

Zent

itspower.net
Messages
393
Likes
97
#1
Return URL is: [ To view this link you must register here. ]

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.
 

JynX

pathetic.site
Messages
699
Likes
410
#2
Use the actual vote validator that was created by Josh especially for FindRetros.

Link:
[ To view this link you must register here. ]

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'?
 

Wess

BYPASSING OVERRIDE
Staff member
FindRetros Moderator
Messages
3,715
Likes
1,944
#3
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 (Users: 0, Guests: 1)

Top