Hello, is there anyone out on this RageZone which can help me by sending me a FindRetros script due to the fact my current one not working correctly? Thank you!
Hello, is there anyone out on this RageZone which can help me by sending me a FindRetros script due to the fact my current one not working correctly? Thank you!
Just add your information and replace everything todo with my stuff.
Code:<?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=oakhotel&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=oakhotel&api=http://oak-hotel.com/?novote"); exit; } } ?>
Just add it on top of your me.php file so when users login or register they will get sent to the voting page. Make sure you put your return url on retrolist account to your me page.
It works because I use it, it's because you haven't linked it all correctly. Where ever it says 'oak' just change it to your link or you username?
- - - Updated - - -
Note: Give me your link and retrolist account username then ill do it for you.
Last edited by rxnniespo; 07-05-15 at 11:15 PM.
This should work, make sure you put the code just under <!DOCTYPE html>
Code:<?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=utopia&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=utopia&api=http://habbeh.com?novote"); exit; } } ?>
You say I'm doing it incorrect, however - Screenshot by Lightshot and it just turns the page white lol
Works for me, goto (Removed) and check it for yourself?
Note: I've removed the link now, but it works fine for me so I'm not sure why it's not working for you.
- - - Updated - - -
@Matata , this worked fine for me therefore if you've disliked it, could you tell him what it is then?
Last edited by Robot; 07-05-15 at 11:49 PM.
Didn't even notice that I disliked your post, I did it by mistake apparently.
But use this, OP. It's almost the same as Robot's but isn't restricted to RevCMS.
PHP Code:<?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=utopia&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=utopia&api=http://habbeh.com?novote");
exit;
}
}
?>
Issue resolved, somehow fixed it.
Please, close this thread.
Thread closed since issue has been solved. If you need it reopen, just PM me.