Find Retros

opinionswrest

Member
Jan 6, 2020
117
5
Hi

This has probably been answered but I cant find it for the life of me

I am using brain cms and the vote validator code found on find retros.

The issue im having is it isnt redirecting to ask the person to vote it is just saying in client you have already voted. Even though they havent

Any fix to this?
Or is there a working find retros code for brain I had the code working on rev but seems to of stopped now.
 

opinionswrest

Member
Jan 6, 2020
117
5
<?php
require_once 'findretros_config.php';
require_once 'findretros.php';
$FindRetros = new FindRetros();
if($FindRetros->hasClientVoted()) {
echo 'You have voted!';
}else{
// echo 'You have yet to vote!';
$FindRetros->redirectClientToVote();
}



?>
<?php include_once('habboflashstyle.php'); ?>
<?php
staffCheck();
Game::sso('client');
Game::homeRoom();
?>
<html>
</body>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title><?= $config['hotelName'] ?> - Game</title>
<script src="/templates/brain/client/js/jquery-latest.js" type="text/javascript"></script>
<script src="/templates/brain/client/js/jquery-ui.js" type="text/javascript"></script>
<script src="/templates/brain/client/js/flashclient.js"></script>
<script src="/templates/brain/client/js/flash_detect_min.js"></script>
<script src="/templates/brain/client/js/client.js" type="text/javascript"></script>
<link rel="stylesheet" href="/templates/brain/client/css/client.css?v=5" type="text/css">
</head>
<body>
<?php
if($hotel['onlineCounter'] == true)
{
?>
<script type="text/javascript">
$(document).ready(function(e) {
$.ajaxSetup({
cache:true
});
setInterval(function() {
$('#onlinecount').load('/onlinecountclient');
}, 8000);
$( "#onlinecount").click(function() {
$('#onlinecount').load('/onlinecountclient');
});
});
</script>
<div class="clientOnlineBox">
<div class="clientOnlineBoxTxt" id="onlinecount"><small><b><?= Game::usersOnline() ?></b> <?= $config['hotelName'] ?>'s online</small></div>
<img src="/templates/brain/client/images/onlineiconclient.png" style="width:29px;height:28px;ht; */position: absolute;margin-left: 130px;margin-top: -19px;">
</div>
<?php
}
?>
<center>
<div id="client-ui">
<div class="client" id="client"></div>
</div>
<script>
var Client = new SWFObject("<?= $hotel['swfFolderSwf'] ?>", "client", "100%", "100%", "10.0.0");
Client.addVariable("client.allow.cross.domain", "0");
Client.addVariable("client.notify.cross.domain", "1");
Client.addVariable("connection.info.host", "<?= $hotel['emuHost'] ?>");
Client.addVariable("connection.info.port", "<?= $hotel['emuPort'] ?>");
Client.addVariable("site.url", "<?= $config['hotelUrl'] ?>");
Client.addVariable("url.prefix", "<?= $config['hotelUrl'] ?>");
Client.addVariable("client.reload.url", "<?= $config['hotelUrl'] ?>/me");
Client.addVariable("client.fatal.error.url", "<?= $config['hotelUrl'] ?>/me");
Client.addVariable("client.connection.failed.url", "<?= $config['hotelUrl'] ?>/me");
Client.addVariable("external.override.texts.txt", "<?= $hotel['external_Texts_Override'] ?>");
Client.addVariable("external.override.variables.txt", "<?= $hotel['external_Variables_Override'] ?>");
Client.addVariable("external.variables.txt", "<?= $hotel['external_Variables'] ?>");
Client.addVariable("external.texts.txt", "<?= $hotel['external_Texts'] ?>");
Client.addVariable("external.figurepartlist.txt", "<?= $hotel['figuredata'] ?>");
Client.addVariable("flash.dynamic.avatar.download.configuration", "<?= $hotel['figuremap'] ?>");
Client.addVariable("productdata.load.url", "<?= $hotel['productdata'] ?>");
Client.addVariable("furnidata.load.url", "<?= $hotel['furnidata'] ?>");
Client.addVariable("use.sso.ticket", "1");
Client.addVariable("sso.ticket", "<?= User::userData('auth_ticket') ?>");
Client.addVariable("processlog.enabled", "0");
Client.addVariable("client.starting", "<?= $config['hotelName'] ?> is loading...");
Client.addVariable("flash.client.url", "<?= $hotel['swfFolder'] ?>/");
Client.addVariable("flash.client.origin", "popup");
Client.addVariable("ads.domain", "");
Client.addVariable("diamonds.enabled", '<?= $hotel['diamonds.enabled'] ?>');
Client.addParam('base', '<?= $hotel['swfFolder'] ?>/');
Client.addParam('allowScriptAccess', 'always');
Client.addParam('wmode', "opaque");
Client.write('client');
FlashExternalInterface.signoutUrl = "<?= $config['hotelUrl'] ?>/logout";
</script>
</center>
</body>
</html>
</center>
</div>
</head>

<?php
$_CONFIG = array(
/* What is "username" of your page on FindRetros? */

'pagename' => 'cloudhotelnew',
/* How many seconds should it take to try and reach FindRetros if it's down? */
'timeout' => 2,
/* Are you using CloudFlare? If so, set this to true. */
'cloudflare' => true,
/* Incase FindRetros.com has a new domain, change it below. */
'api' => ' '
);
Post automatically merged:

Paste your client.php
<?php
require_once 'findretros_config.php';
require_once 'findretros.php';
$FindRetros = new FindRetros();
if($FindRetros->hasClientVoted()) {
echo 'You have voted!';
}else{
// echo 'You have yet to vote!';
$FindRetros->redirectClientToVote();
}



?>
<?php include_once('habboflashstyle.php'); ?>
<?php
staffCheck();
Game::sso('client');
Game::homeRoom();
?>
<html>
</body>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title><?= $config['hotelName'] ?> - Game</title>
<script src="/templates/brain/client/js/jquery-latest.js" type="text/javascript"></script>
<script src="/templates/brain/client/js/jquery-ui.js" type="text/javascript"></script>
<script src="/templates/brain/client/js/flashclient.js"></script>
<script src="/templates/brain/client/js/flash_detect_min.js"></script>
<script src="/templates/brain/client/js/client.js" type="text/javascript"></script>
<link rel="stylesheet" href="/templates/brain/client/css/client.css?v=5" type="text/css">
</head>
<body>
<?php
if($hotel['onlineCounter'] == true)
{
?>
<script type="text/javascript">
$(document).ready(function(e) {
$.ajaxSetup({
cache:true
});
setInterval(function() {
$('#onlinecount').load('/onlinecountclient');
}, 8000);
$( "#onlinecount").click(function() {
$('#onlinecount').load('/onlinecountclient');
});
});
</script>
<div class="clientOnlineBox">
<div class="clientOnlineBoxTxt" id="onlinecount"><small><b><?= Game::usersOnline() ?></b> <?= $config['hotelName'] ?>'s online</small></div>
<img src="/templates/brain/client/images/onlineiconclient.png" style="width:29px;height:28px;ht; */position: absolute;margin-left: 130px;margin-top: -19px;">
</div>
<?php
}
?>
<center>
<div id="client-ui">
<div class="client" id="client"></div>
</div>
<script>
var Client = new SWFObject("<?= $hotel['swfFolderSwf'] ?>", "client", "100%", "100%", "10.0.0");
Client.addVariable("client.allow.cross.domain", "0");
Client.addVariable("client.notify.cross.domain", "1");
Client.addVariable("connection.info.host", "<?= $hotel['emuHost'] ?>");
Client.addVariable("connection.info.port", "<?= $hotel['emuPort'] ?>");
Client.addVariable("site.url", "<?= $config['hotelUrl'] ?>");
Client.addVariable("url.prefix", "<?= $config['hotelUrl'] ?>");
Client.addVariable("client.reload.url", "<?= $config['hotelUrl'] ?>/me");
Client.addVariable("client.fatal.error.url", "<?= $config['hotelUrl'] ?>/me");
Client.addVariable("client.connection.failed.url", "<?= $config['hotelUrl'] ?>/me");
Client.addVariable("external.override.texts.txt", "<?= $hotel['external_Texts_Override'] ?>");
Client.addVariable("external.override.variables.txt", "<?= $hotel['external_Variables_Override'] ?>");
Client.addVariable("external.variables.txt", "<?= $hotel['external_Variables'] ?>");
Client.addVariable("external.texts.txt", "<?= $hotel['external_Texts'] ?>");
Client.addVariable("external.figurepartlist.txt", "<?= $hotel['figuredata'] ?>");
Client.addVariable("flash.dynamic.avatar.download.configuration", "<?= $hotel['figuremap'] ?>");
Client.addVariable("productdata.load.url", "<?= $hotel['productdata'] ?>");
Client.addVariable("furnidata.load.url", "<?= $hotel['furnidata'] ?>");
Client.addVariable("use.sso.ticket", "1");
Client.addVariable("sso.ticket", "<?= User::userData('auth_ticket') ?>");
Client.addVariable("processlog.enabled", "0");
Client.addVariable("client.starting", "<?= $config['hotelName'] ?> is loading...");
Client.addVariable("flash.client.url", "<?= $hotel['swfFolder'] ?>/");
Client.addVariable("flash.client.origin", "popup");
Client.addVariable("ads.domain", "");
Client.addVariable("diamonds.enabled", '<?= $hotel['diamonds.enabled'] ?>');
Client.addParam('base', '<?= $hotel['swfFolder'] ?>/');
Client.addParam('allowScriptAccess', 'always');
Client.addParam('wmode', "opaque");
Client.write('client');
FlashExternalInterface.signoutUrl = "<?= $config['hotelUrl'] ?>/logout";
</script>
</center>
</body>
</html>
</center>
</div>
</head>

<?php
$_CONFIG = array(
/* What is "username" of your page on FindRetros? */

'pagename' => 'cloudhotelnew',
/* How many seconds should it take to try and reach FindRetros if it's down? */
'timeout' => 2,
/* Are you using CloudFlare? If so, set this to true. */
'cloudflare' => true,
/* Incase FindRetros.com has a new domain, change it below. */
'api' => ' '
);
 
Last edited:

RastaLulz

fight teh power
Staff member
May 3, 2010
3,934
3,932
@opinionswrest Based on the code you have, I assume it always tells you that you've voted? Are you behind any sort of proxy (e.g. Cloudflare)? The code looks fine, assuming that's the page that you're actually navigating to, and you're not getting errors.
 

Users who are viewing this thread

Top