Postback

The automatic postback system will send the IP address, user ID (If specified) of the voting user, and the Postback Password, set in your site settings, to your listener.

The script will have a 5 second timeout, if a connection cannot be established within that time no data will be posted to your server.

To set your postback listener URL and Postback Password go to the User Panel.

There are two vote URL options, one is to keep the default voting URL which will only send the user's IP address:
https://mmtop200.com/vote/SITEID

The other option is to modify the voting link to send the user ID as well, as following:
https://mmtop200.com/vote/SITEID/USERID
Replace SITEID with your site ID, and USERID with the user's ID.

WARNING: You have to do all checks on your side to see if the specific IP and/or user ID have voted in the past 12 hours, the postback information will be sent as soon as the correct captcha is entered.

The postback system will send three POST parameters: ip_addr, uid, postback_password

An example code in PHP to capture all three parameters:

<?php
        
// Your postback password
        
$_postback_password "";

        
// Postback password
        
$postback_password $_POST["postback_password"];

        if (
$_postback_password != $postback_password) {
            
// Passwords do not match
            
exit();
        }

        
// User IP Address
        
$user_ip_addr $_POST["ip_addr"];
        
// User ID
        
$user_id $_POST["uid"] ?? "";

        if (
$user_id) {
            
// User ID is not empty.
        
}

        
// Give incentives to your player.
?>