// Ekleyeceğimiz sitenin bilgileri
|
$yazi_url = 'http://www.kodaman.org';
|
$yazi_etiket = 'kod, kodaman, code, cod';
|
$yazi_baslik ='Kodaman Programcılar';
|
$yazi_aciklama = 'Mesleği kod yazmak olanların günah keçisi';
|
$resim = 'http://arsiv.pilli.com/logo.jpg'; // burada konun yada haberin resmi varsa onun yolunu belirtiyoruz.
|
|
// Kullanıcı bilgilerimiz
|
$us = 'kullanici_adi';
|
$pas = 'sifre***';
|
|
// cURL ile siteye bağlanıp verileri kaydediyoruz
|
|
//Siteye giriş yapıyoruz
|
$ch3 = curl_init();
|
curl_setopt($ch3, CURLOPT_URL, 'https://secure.faves.com/signIn');
|
curl_setopt($ch3, CURLOPT_POSTFIELDS,'rUsername='.$us.'&rPassword='.$pass.'&rememberMe=1&action=Sign+In');
|
curl_setopt($ch3, CURLOPT_POST, 1);
|
curl_setopt($ch3, CURLOPT_HEADER, 0);
|
curl_setopt($ch3, CURLOPT_FOLLOWLOCATION, 1);
|
curl_setopt($ch3, CURLOPT_SSL_VERIFYPEER, false);
|
curl_setopt($ch3, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3");
|
curl_setopt($ch3, CURLOPT_COOKIEJAR, "cookie.txt");
|
curl_setopt($ch3, CURLOPT_REFERER, 'http://faves.com/CreateDot.aspx');
|
curl_setopt($ch3, CURLOPT_COOKIEFILE, "cookie.txt");
|
curl_setopt($ch3, CURLOPT_RETURNTRANSFER, 1);
|
curl_exec($ch3);
|
$finish = curl_exec($ch3);
|
curl_close($ch3);
|
|
// Yukarı daki değişkenlerin değerlerini siteye post ediyoruz.
|
$ch2 = curl_init();
|
curl_setopt($ch2, CURLOPT_URL, 'http://faves.com/CreateDot.aspx');
|
curl_setopt($ch2, CURLOPT_POSTFIELDS, '__VIEWSTATE=%2FwEPDwULLTE2NjI5NTcxMDcPZBYCAgkPZBYEAgUPZBYCAgEPZBYG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Y3w%3D%3D&dotType=dfa&imageUrl='.$resim.'&imageWidth=134&imageHeight=112&rateSelect=5¬eText='.$yazi_baslik.'&urlText='.$yazi_url.'&subjectText='.$yazi_baslik.'&tagsText='.$tags.'&shareSelect=Public&addFriendsText=&__EVENTVALIDATION=%2FwEWEwKDtrq2CwLcgJzuBQLn6uHPBgLDg9HXCAKj9tP5BQLPncqXDQLQncqXDQLRncqXDQLSncqXDQLTncqXDQLUncqXDQKA8%2B6lBwL2h%2Fb8BAKAt%2F6FCwLDubaGBQLF5a6aAQLK%2Fsi7DALpp%2B3RCgL0mdueAu8XVhwFt%2FOxZbxCHgG0IBOMhNSB');
|
curl_setopt($ch2, CURLOPT_POST, 1);
|
curl_setopt($ch2, CURLOPT_HEADER, 0);
|
curl_setopt($ch2, CURLOPT_FOLLOWLOCATION, 1);
|
curl_setopt($ch2, CURLOPT_SSL_VERIFYPEER, false);
|
curl_setopt($ch2, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3");
|
curl_setopt($ch2, CURLOPT_COOKIEJAR, "cookie.txt");
|
curl_setopt($ch2, CURLOPT_REFERER, "http://faves.com/users/'.$us.'/friends/dots");
|
curl_setopt($ch2, CURLOPT_COOKIEFILE, "cookie.txt");
|
curl_setopt($ch2, CURLOPT_RETURNTRANSFER, 1);
|
curl_exec($ch2);
|
$son = curl_exec($ch2);
|
curl_close($ch2); |