<?php
$browsers = array ("MSIE 6.0", "Mozilla/4.0", "Mozilla/5.0", "Opera/9.23", "MSIE 7.0"); $send .= "Host: site.ru\r\n";
$send .= "User-Agent: ".$browsers[rand(0,4)]."\r\n"; $send .= "Pragma: no-cache";
$send .= "Connection: Close\r\n\r\n";
$vote_count = 0;
$error1 = "Proxy ".$proxy." isn't available!\r\n";
$proxy_file = "proxy.txt";
$proxy_file_handle = fopen($proxy_file,"r"); $report_file = "report.txt";
$report_file_handle = fopen($report_file,"a");
fputs($report_file_handle,"Voting successfully started on ".date('l dS \of F Y h:i:s A')."!\r\n");
while(!feof($proxy_file_handle)) {
$proxy = fgets($proxy_file_handle,1024); $proxy_in_parts = explode(":",$proxy); $ip = $proxy_in_parts[0];
$port = $proxy_in_parts[1];
$socket = fsockopen($proxy,$port,&$errno,&$errstr); if (!$socket)
{
fputs($report_file_handle,$error1); continue;
}
else
{
{
$vote_count++;
fputs($report_file_handle,"You've voted ".$vote_count." times\r\n"); $rand_numb=rand(300,600); }
else continue;
};
};
fputs($report_file_handle,"Voting finished on ".date('l dS \of F Y h:i:s A')."!\r\n\r\n------------------------------------------------\r\n\r\n");
?>