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
Findretros voting error?
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="lilramsy" data-source="post: 429879" data-attributes="member: 79631"><p>I haven't seen this posted anywhere, but I seem to get these issues whenever I try to go to my findretros.php:</p><p><a href="https://gyazo.com/68d66c56964ed08d07fcd2b99be9aa30" target="_blank">https://gyazo.com/68d66c56964ed08d07fcd2b99be9aa30</a></p><p></p><p>The code I use is:</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=blink&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=blink&api=http:!!blinkhotel.co.uk!index?novote");</p><p>exit;</p><p>}</p><p>}</p><p>?>[/PHP]</p><p></p><p>whenever I use my username "blink" (not login) I get a white page, but if I were to use any other username, like spark, or even blinkhotel, it works. I even made a new server for testing and did the same there. Didn't work. Am I missing something?</p></blockquote><p></p>
[QUOTE="lilramsy, post: 429879, member: 79631"] I haven't seen this posted anywhere, but I seem to get these issues whenever I try to go to my findretros.php: [URL]https://gyazo.com/68d66c56964ed08d07fcd2b99be9aa30[/URL] The code I use is: [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=blink&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=blink&api=http:!!blinkhotel.co.uk!index?novote"); exit; } } ?>[/PHP] whenever I use my username "blink" (not login) I get a white page, but if I were to use any other username, like spark, or even blinkhotel, it works. I even made a new server for testing and did the same there. Didn't work. Am I missing something? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Findretros voting error?
Top