Callback Guide

On March 1st Ultimate Private Servers will become Eleet Space, the first evert gaming toplist/community hosting platform! Eleet Space also supports non hosted communities so join today and be appart of the toplist revolution!

The Postback Function

Our goal is to make it easy and secure for your users to vote for and support your website and receive incentives such as credits. The system we have in place is quite simple and takes little programming knowledge to impliment.

The Basics

What happens is a user on your site is given a special voting link with their username or userid added to it. When this user votes we then take this username/userid and send it back to your server as a POST to your specified script to process and credit the user for voting. It is really that simple and you just need to enter URL to the script in your user control panel, implement the example script found below, and you are ready to go.

Example Voting Url
You can simply switch out the url in your existing voting code from us as found in your control panel

Example Script


#Example PHP Postback Script

// Your Database Connection Details
$host = 'localhost';
$db_name = '';
$db_user = ''; 
$db_password = '';

mysql_connect($host, $db_user, $db_password);

function _VoteReward($userId, $valid) {

    if($valid == 1) {

        // Make userid safe to use in query
        $userId = mysql_real_escape_string($userId);
        // Check if that user voted already
        // Adjust this query to match your table, column names etc
        $voted = mysql_fetch_array(mysql_query("SELECT voted FROM vote_list WHERE user = '$userId'"));
        if(!$voted[0]) {
            // User has not voted, grant him reward, for example points
            mysql_query("UPDATE votepoints SET points = points + 1 WHERE user = '$userId'");
        else {
            // Do whatever you want if he voted already. Maybe a log of false votes



//-------------------------- Don't change anything below this! ----------------------------- //

$ipsWhitelist = array('');	

$userId = isset($_POST['userid']) ? $_POST['userid'] : null;
$valid = isset($_POST['voted']) ? $_POST['voted'] : null;

$result = false;
if (!empty($userId) && !empty($valid)) {

    if (in_array($_SERVER['REMOTE_ADDR'], $ipsWhitelist)) {
        $result = true;
        _VoteReward($userId, $valid);


if ($result) {
    echo 'OK';

//Close Connection


The extern IP check function

If you quickly want to see if a user voted already simply visit this url

As you can see this looks like a normal vote link, but will NOT do any vote, instead it only executes a database query and then returns either 0 or 1 (can be used with cUrl etc.) A 0 returned means the user did not vote on that day when the check was called, 1 means the user voted already.


    eXTReMe Tracker Protection Status