Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
BrainCMS Findretros Voting?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="NotoriousJameson" data-source="post: 407145" data-attributes="member: 65480"><p>I have seen people solve this but ours is not solved.</p><p>We've used the redirect to ("forcevote.php")</p><p>But it goes straight from the voting page straight to the client instead of them actually voting.</p><p>Our find retro link/html <a href="http://prntscr.com/exnypa" target="_blank">http://prntscr.com/exnypa</a></p><p>[PHP]</p><p><?php</p><p> staffCheck();</p><p> Game::sso('client'); </p><p> Game::homeRoom(); </p><p>?></p><p><html></p><p></body></p><p><head></p><p> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/></p><p> <title><?= $config['hotelName'] ?> - Game</title></p><p> <script src="/templates/brain/client/js/jquery-latest.js" type="text/javascript"></script></p><p> <script src="/templates/brain/client/js/jquery-ui.js" type="text/javascript"></script></p><p> <script src="/templates/brain/client/js/flashclient.js"></script></p><p> <script src="/templates/brain/client/js/flash_detect_min.js"></script></p><p> <script src="/templates/brain/client/js/client.js" type="text/javascript"></script></p><p> <link rel="stylesheet" href="/templates/brain/client/css/client.css?v=5" type="text/css"></p><p></head></p><p><body></p><p> <?php</p><p> if($hotel['onlineCounter'] == true)</p><p> {</p><p> ?></p><p> <script type="text/javascript"></p><p> $(document).ready(function(e) {</p><p> $.ajaxSetup({</p><p> cache:true</p><p> });</p><p> setInterval(function() {</p><p> $('#onlinecount').load('/onlinecountclient');</p><p> }, 8000);</p><p> $( "#onlinecount").click(function() {</p><p> $('#onlinecount').load('/onlinecountclient');</p><p> });</p><p> });</p><p> </script></p><p> </p><p> <div class="clientOnlineBox"></p><p> <div class="clientOnlineBoxTxt" id="onlinecount"><small><b><?= Game::usersOnline() ?></b> <?= $config['hotelName'] ?>'s online</small></div></p><p> <img src="/templates/brain/client/images/onlineiconclient.png" style="width:29px;height:28px;ht; */position: absolute;margin-left: 130px;margin-top: -19px;"></p><p> </div></p><p> <?php</p><p> }</p><p> ?></p><p> <center></p><p> <div id="client-ui"></p><p> <div class="client" id="client"></div></p><p> </div></p><p> <script></p><p> var Client = new SWFObject("<?= $hotel['swfFolderSwf'] ?>", "client", "100%", "100%", "10.0.0");</p><p> Client.addVariable("client.allow.cross.domain", "0");</p><p> Client.addVariable("client.notify.cross.domain", "1");</p><p> Client.addVariable("connection.info.host", "<?= $hotel['emuHost'] ?>");</p><p> Client.addVariable("connection.info.port", "<?= $hotel['emuPort'] ?>");</p><p> Client.addVariable("site.url", "<?= $config['hotelUrl'] ?>");</p><p> Client.addVariable("url.prefix", "<?= $config['hotelUrl'] ?>");</p><p> Client.addVariable("client.reload.url", "<?= $config['hotelUrl'] ?>/me");</p><p> Client.addVariable("client.fatal.error.url", "<?= $config['hotelUrl'] ?>/me");</p><p> Client.addVariable("client.connection.failed.url", "<?= $config['hotelUrl'] ?>/me");</p><p> Client.addVariable("external.override.texts.txt", "<?= $hotel['external_Texts_Override'] ?>");</p><p> Client.addVariable("external.override.variables.txt", "<?= $hotel['external_Variables_Override'] ?>"); </p><p> Client.addVariable("external.variables.txt", "<?= $hotel['external_Variables'] ?>");</p><p> Client.addVariable("external.texts.txt", "<?= $hotel['external_Texts'] ?>");</p><p> Client.addVariable("external.figurepartlist.txt", "<?= $hotel['figuredata'] ?>");</p><p> Client.addVariable("flash.dynamic.avatar.download.configuration", "<?= $hotel['figuremap'] ?>");</p><p> Client.addVariable("productdata.load.url", "<?= $hotel['productdata'] ?>");</p><p> Client.addVariable("furnidata.load.url", "<?= $hotel['furnidata'] ?>");</p><p> Client.addVariable("use.sso.ticket", "1");</p><p> Client.addVariable("sso.ticket", "<?= User::userData('auth_ticket') ?>");</p><p> Client.addVariable("processlog.enabled", "0");</p><p> Client.addVariable("client.starting", "<?= $config['hotelName'] ?> is loading...");</p><p> Client.addVariable("flash.client.url", "<?= $hotel['swfFolder'] ?>/");</p><p> Client.addVariable("flash.client.origin", "popup");</p><p> Client.addVariable("ads.domain", "");</p><p> Client.addVariable("diamonds.enabled", '<?= $hotel['diamonds.enabled'] ?>');</p><p> Client.addParam('base', '<?= $hotel['swfFolder'] ?>/');</p><p> Client.addParam('allowScriptAccess', 'always');</p><p> Client.addParam('wmode', "opaque");</p><p> Client.write('client');</p><p> FlashExternalInterface.signoutUrl = "<?= $config['hotelUrl'] ?>/logout";</p><p> </script></p><p> </center></p><p></body></p><p></html></p><p></center></p><p></div></p><p><script></p><p> //no flash?!</p><p> if(!FlashDetect.installed){</p><p> window.location.href = "<?= $config['hotelUrl'] ?>/noflash.php"; </p><p> }</p><p></script></p><p></head>[/PHP]</p><p></p><p>Our forcevote.php:</p><p>[PHP]<?php</p><p>if(isset($_GET['voted'])) {</p><p>}</p><p>else {</p><p>$userip = "{$_SERVER['REMOTE_ADDR']}";</p><p>$current_url = substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1);</p><p>$url = 'https://votingapi.com/validate.php?user=hablurehotel&ip=' . $userip;</p><p>$context = stream_context_create(array('http' => array('timeout' => 1)));</p><p>$data = @file_get_contents($url, 1, $context);</p><p>if(!$data || !is_numeric($data)) {</p><p>return "Error";</p><p>}</p><p>else if ($data == 1 || $data == 2) {</p><p>}</p><p>else {</p><p>header ("Location: https://votingapi.com/vote.php?username=hablurehotel&api=http:!!playhablure.xyz!client?vote");</p><p>exit;</p><p>}</p><p>}</p><p>?>[/PHP]</p><p>I also tried without https:// but it just directs to "findretros.com" directly</p></blockquote><p></p>
[QUOTE="NotoriousJameson, post: 407145, member: 65480"] I have seen people solve this but ours is not solved. We've used the redirect to ("forcevote.php") But it goes straight from the voting page straight to the client instead of them actually voting. Our find retro link/html [URL]http://prntscr.com/exnypa[/URL] [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> <script> //no flash?! if(!FlashDetect.installed){ window.location.href = "<?= $config['hotelUrl'] ?>/noflash.php"; } </script> </head>[/PHP] Our forcevote.php: [PHP]<?php if(isset($_GET['voted'])) { } else { $userip = "{$_SERVER['REMOTE_ADDR']}"; $current_url = substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1); $url = 'https://votingapi.com/validate.php?user=hablurehotel&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: https://votingapi.com/vote.php?username=hablurehotel&api=http:!!playhablure.xyz!client?vote"); exit; } } ?>[/PHP] I also tried without https:// but it just directs to "findretros.com" directly [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
BrainCMS Findretros Voting?
Top