- 01
 - 02
 - 03
 - 04
 - 05
 - 06
 - 07
 - 08
 - 09
 - 10
 - 11
 - 12
 - 13
 - 14
 - 15
 - 16
 - 17
 - 18
 - 19
 - 20
 - 21
 - 22
 - 23
 - 24
 - 25
 - 26
 - 27
 - 28
 - 29
 - 30
 
                        function bonus($host, $uri, $go_form)
{
    if (is_array($go_form)) {
        $body = "";
        foreach ($go_form as $name => $value) {
            $body .= $go_form[] = $name . '=' . urlencode($value) . "&";
        }
    }
    
    $length = strlen($body);
    
    $socket = fsockopen($host, 80);
    fwrite($socket, "POST {$uri} HTTP/1.0\r\n");
    fwrite($socket, "Host: {$host}\r\n");
    fwrite($socket, "User-Agent: Mozilla/4.0\r\n");
    fwrite($socket, "Content-Type: application/x-www-form-urlencoded\r\n");
    fwrite($socket, "Content-Length: $length\r\n\r\n");
    fwrite($socket, "$body\r\n");
    $fgets = '';
    while (!feof($socket)) {
        $fgets .= fread($socket, 4096);
    }
    
    //print_r($fgets);
    //echo '<br><br>$fgets<br><br>';
    
    fclose($socket);
}
bonus("balans.kz","/bonus/",$go_form = Array( 'pursedest' => 'Rxxxxxxxxx',));