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
how to set up voting api onto r63b?
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="Muff" data-source="post: 358570" data-attributes="member: 61877"><p>alright so just follow this and you should be good, Create a file called "forcevote.php" and add this code in this file;</p><p></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 = 'http://votingapi.com/validate.php?user=THEHABBOSNAME&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: http://votingapi.com/vote.php?username=THEHABBOSNAME&api=http:!!HOTELURL!index?novote");</p><p>exit;</p><p>}</p><p>}</p><p>?>[/PHP]</p><p>Then put this on the top of your client.php file;</p><p></p><p></p><p>[PHP]</p><p><?php include_once ("forcevote.php");</p><p>[/PHP]</p></blockquote><p></p>
[QUOTE="Muff, post: 358570, member: 61877"] alright so just follow this and you should be good, 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; } } ?>[/PHP] Then put this on the top of your client.php file; [PHP] <?php include_once ("forcevote.php"); [/PHP] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
how to set up voting api onto r63b?
Top