Setting up FindRetros voting?

Status
Not open for further replies.

Four

Go away lol.
Mar 14, 2014
35
2
I'm not quite sure how to setup force voting via the client, nor am I even aware that the posting I made on FindRetros is on the rankings. I just need help setting up either voting before they reach the domain or forced/checking vote via the client. If you could help with this just give me a hoot, thanks.
 

Jerry

not rly active lol
Jul 8, 2013
1,957
522
Code:
<?php include_once ("forcevote.php");
?>
Then make a file called "forcevote.php" and add this in it:
Code:
<?php

if(isset($_GET['voted'])) {

}
else {

$userip = "{$_SERVER['REMOTE_ADDR']}";
$current_url = substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1);
$url = ' ' . $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: ");
exit;
}

}

?>
 

Four

Go away lol.
Mar 14, 2014
35
2
Thanks for this but, could you be more detailed about where I should put this? I'm using a custom RevCMS so I may not have some of the folders you think I do.
 

Jerry

not rly active lol
Jul 8, 2013
1,957
522
Well, Create a file called "forcevote.php" and add this code in this file;
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=THEHABBOSNAME&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=THEHABBOSNAME&api=http:!!HOTELURL!index?novote");
exit;
}
}
?>

Then put this on the top of your client.php file;
PHP:
<?php include_once ("forcevote.php");
 

Panamaflow507

New Member
Apr 7, 2012
21
0
what i need to replace on the code?

<?phpif(isset($_GET['voted'])) {
}
else {$userip = "{$_SERVER['REMOTE_ADDR']}";$current_url = substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1);$url = ' ' . $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: ");
exit;
}
}?>

where do i put my findretros username?
 

Fetron

I like to do giveaways :3
Mar 24, 2014
198
43
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>{hotelName} - Client</title>

<link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/client.css" type="text/css">

<script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/swfobject.js"></script>
<script type="text/javascript">
var BaseUrl = "{swf_folder}";
var flashvars =
{
"client.starting" : "Please wait, {hotelName} is loading",
"client.allow.cross.domain" : "1",
"client.notify.cross.domain" : "0",
"connection.info.host" : "hidden",
"connection.info.port" : "hidden",
"site.url" : "{url}",
"url.prefix" : "{url}",
"client.reload.url" : "{url}/client",
"client.fatal.error.url" : "{url}/me",
"client.connection.failed.url" : "{url}/me",
"external.variables.txt" : "{external_vars}",
"external.texts.txt" : "{external_texts}",
"productdata.load.url" : "{product_data}",
"furnidata.load.url" : "{furni_data}",
"use.sso.ticket" : "1",
"sso.ticket" : "{sso}",
"processlog.enabled" : "0",
"flash.client.url" : BaseUrl,
"flash.client.origin" : "popup"
};
var params =
{
"base" : BaseUrl + "/r63",
"allowScriptAccess" : "always",
"menu" : "false"
};
swfobject.embedSWF(BaseUrl + "/Habbo.swf", "client", "100%", "100%", "10.0.0", "{swf_folder}/expressInstall.swf", flashvars, params, null);

<?phpif(isset($_GET['voted'])) {
}
else {$userip = "{$_SERVER['REMOTE_ADDR']}";$current_url = substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1);$url = ' ' . $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: ");
exit;
}
}?>

</script>
</head>

<body>

<div id="client"></div>

</body>
</html>


Try that.
 

Nicholas

Just another user:)
Mar 18, 2015
58
9
LMAO WHAT?!
Why are people re-opening threads from 2 years ago. This DOES work, however, some people will get the redirect loop.
Please read cause i never said it did not work, it is just not secure. Get your facts right before you come at me.
 
Status
Not open for further replies.

Users who are viewing this thread

Top