
17.09.2009, 15:57
|
|
Banned
Регистрация: 27.06.2009
Сообщений: 200
Провел на форуме: 944465
Репутация:
68
|
|
nikfcsm,
PHP код:
<?
set_time_limit(0);
$fileacc = 'accs.txt';//файл с аками rnj добавляет (мыло:пароль)
$url = 'http://login.vk.com/?act=login';
$apps_invite = '3377207'; // ваш ид
$apps_id ='3377207';//id
$fp = file($fileacc);
$count = count($fp);
for($i = 0;$i < $count;$i++)
{
$fp = file($fileacc);
$str = trim($fp[$i]);
$str2 = explode(':', $str);
$mail = $str2[0];
$pass = $str2[1];
$login = 'http://vkontakte.ru/login.php?act=login&success_url=&fail_url=&try_to_login=1&to=&vk=&email='.$mail.'&pass='.$pass;
echo $login ;
$cookie = 'sid=-1;';
# $post = 'site=2&id=0&fccode=0&fcsid=0&login=force&email='.$mail.'&pass='.$pass;
$post = 'http://login.vk.com/?act=login&success_url=&fail_url=&try_to_login=1&to=&vk=&email='.$mail.'&pass='.$pass;
# if($ct = curl_init($url))
# {
# curl_setopt($ct, CURLOPT_RETURNTRANSFER, 1);
# curl_setopt($ct, CURLOPT_HEADER, 1);
# curl_setopt($ct, CURLOPT_REFERER, 'http://vkontakte.ru/login.php');
# curl_setopt($ct, CURLOPT_USERAGENT, 'User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; ru; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3');
# curl_setopt($ct, CURLOPT_COOKIE, $cookie);
# curl_setopt($ct, CURLOPT_POST, 1);
# curl_setopt($ct, CURLOPT_POSTFIELDS, $post);
# $cont = curl_exec($ct) or curl_error($ct);
# echo $cont;
# curl_close($ct);
# flush();
$ct = curl_init($login);
if(strpos($cont, 'sid=-1') === false || strpos($cont, 'sid=-2') === false || strpos($cont, 'sid=-4') === false)
{
$id = (preg_match('#Set-Cookie: remixmid=(.*?);#', $cont, $idi)) ? $idi[1] : '' ;
$rsid = (preg_match('#Set-Cookie: remixpassword=(.*?);#', $cont, $rsidi)) ? $rsidi[1] : '' ;
if(!empty($id))
{
$cook = 'remixsid='.$rsid.';remixchk=5;remixlang=0;remixem ail='.$mail.';remixpass='.md5($pass).';remixmid='. $id;
###############################
### $urli = 'http://vkontakte.ru/friends_ajax.php?act=accept_friend&fid='.$apps_id.'&hash='.$hash[1].'&cats=&verbose=1&message=';
$urli1 = 'http://vkontakte.ru/friends_ajax.php?act=request_form&fid='.$apps_id;
$urli2 = 'http://vkontakte.ru/friends_ajax.php?act=accept_friend&fid='.$apps_id.'&hash='.$hash[1].'&verbose=1';
$cp = curl_init($urli1);
$cp = curl_init($urli2);
curl_setopt($cp, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($cp, CURLOPT_HEADER, 1);
curl_setopt($cp, CURLOPT_REFERER, 'http://vkontakte.ru/'.$apps_invite);
curl_setopt($cp, CURLOPT_USERAGENT, 'User-Agent: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en; rv:1.8.1.11) Gecko/20071127 Firefox/3.0.0.3');
curl_setopt($cp, CURLOPT_COOKIE, $cook);
$rcont = curl_exec($cp);
curl_close($cp);
}
}
#echo $mail." added<br>";
# echo $cont;
}
sleep(3);
flush();
# }
?>
Вот как то так через хитрожопую жопу оно и должно работать...
PS не проверял, просто контакт изменил логин сайт, теперь vk.com
++++++++++++++++++++++++++++++++++++++++
Подскажите как сделать с помощью аякса чтоб поверх картинки было было время(текст) и обновлялся в режиме реального времени
PS в аяксе полный ноль
|
|
|