Я-Вконтакте.at.ua » Для Вконтакте.ру » Скрипты для ВК |
Создание множества альбомов Вконтакте
Code <? set_time_limit(0); $mail='ящик@мэил.ru'; //эмеил $pass='пароль'; //пароль $id='22671298'; //id $cookie='remixmid='.$id.'; remixemail='.$mail.'; remixpass='.md5($pass).'; remixlang=3; remixchk=5; '.$cookie_hash; function connect($link, $cookie){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$link); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_TIMEOUT, 0); curl_setopt($ch, CURLOPT_GET, 1); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_COOKIE, $cookie); $otvet = curl_exec($ch); curl_close($ch); return $otvet; } for($i=0;$i<12345;$i){ $link = "http://vkontakte.ru/photos.php?act=new"; $result=connect($link, $cookie); // print $result; $begin = 'hash" value="'; $begin = strpos($result, $begin) + strlen($begin); $end = '"'; $end = strpos($result, $end, $begin); $hash = substr($result, $begin, $end - $begin); $qwe=$i++; $name=urlencode("Album #".$qwe." by (c) Le][ ^_^"); $link='http://vkontakte.ru/photos.php?act=create&hash='.$hash.'&name='.$name.'&desc=zxc&visible=1'; //////////Подтверждаем заявку $otvet=connect($link, $cookie); flush(); print $qwe."\n"; flush(); $ban=substr_count($otvet, "blank.php"); if ($ban==1){ $i=$qwe; print "####### Ban\n"; sleep(1); } } ?> | |