Most visitors online was 17251 , on 24 May 2024
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!<?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 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?
Note: Give me your link and retrolist account username then ill do it for you.
<?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;
}
}
?>
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; } } ?>
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.
Matata , this worked fine for me therefore if you've disliked it, could you tell him what it is then?
<?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;
}
}
?>
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:<?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; } } ?>
Ahh I'm sorry for giving you bad rep too, as I thought you were trying to be a tool. But yeah thanks for this