Показать сообщение отдельно

  #12  
Старый 21.04.2009, 17:09
Dumi
Banned
Регистрация: 20.01.2009
Сообщений: 129
С нами: 9108326

Репутация: 303
По умолчанию

Цитата:
Сообщение от nec  
могу скинуть чем тя воены упячки Пячут

Кидай скрипт уверен многим поможет.

Вот нашел два скрипта для чистки групп после "Воинов упчк"

"Удаление всех тем (обсуждения) в группе"
подробности читайте в файле как настроить.txt

Скачать: http://narod.ru/disk/6142585000/group_clear_board.zip.html

Ну и сам скрипт
PHP код:


    <?
    set_time_limit
(0);
    
error_reporting(E_ERROR | E_PARSE);

    
$mail='ящик@мэил.ru'; //эмеил
    
$pass='пароль'; //пароль
    
$id='22671298'; //id ]

    
$group_id='7857703'; //айди группы

    
$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;
    }

    
//////////получаем список тем
    
$link = "http://vkontakte.ru/board.php?act=topics&id=".$group_id;
    
$res=connect($link, $cookie);
    
//////////
    
$c=substr_count($res, 'topicTitle'); ###подсчитываем количество тем

    
while($c!==0){

    for(
$i=0;$i<$c;$i) { ###запускаем цикл

    
$qwe=$i++;
    
###принтим текущую позицию
    
flush();
    print 
$qwe."\n";
    
flush();

    
$end=$end+1;
    
$res= substr($res, $end);

    
$begin = 'topicTitle"><a href="board.php?act=t&tid=';
    
$begin = strpos($res, $begin) + strlen($begin);
    
$end = '"';
    
$end = strpos($res, $end, $begin);
    
$topic_id = substr($res, $begin, $end - $begin);

    
$link='http://vkontakte.ru/board.php?act=do_delete_topic&topic_id='.$topic_id;

    
//////////Подтверждаем заявку
    
$otvet=connect($link, $cookie);
    
//////////

    
sleep(1);

    if (
substr_count($otvet, "blank.php")>=1){
    
$i=$qwe;
    print 
"####### Ban\n";
    
sleep(3);
    }

    }
    
//////////получаем список групп
    
$link = "http://vkontakte.ru/board.php?act=topics&id=".$group_id;
    
$res=connect($link, $cookie);
    
//////////
    
$c=substr_count($res, 'topicTitle'); ###подсчитываем количество тем
    
}

    print 
"\n(c) Le][ 2009\n";

    
?>

"Удаление всех тем (обсуждения) в группе"

PHP код:

Ну и сам скрипт


    <?
    set_time_limit
(0);
    
error_reporting(E_ERROR | E_PARSE);

    
$mail='ящик@мэил.ru'; //эмеил
    
$pass='пароль'; //пароль
    
$id='22671298'; //id ]

    
$group_id='7857703'; //айди группы

    
$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;
    }

    
//////////получаем список тем
    
$link = "http://vkontakte.ru/board.php?act=topics&id=".$group_id;
    
$res=connect($link, $cookie);
    
//////////
    
$c=substr_count($res, 'topicTitle'); ###подсчитываем количество тем

    
while($c!==0){

    for(
$i=0;$i<$c;$i) { ###запускаем цикл

    
$qwe=$i++;
    
###принтим текущую позицию
    
flush();
    print 
$qwe."\n";
    
flush();

    
$end=$end+1;
    
$res= substr($res, $end);

    
$begin = 'topicTitle"><a href="board.php?act=t&tid=';
    
$begin = strpos($res, $begin) + strlen($begin);
    
$end = '"';
    
$end = strpos($res, $end, $begin);
    
$topic_id = substr($res, $begin, $end - $begin);

    
$link='http://vkontakte.ru/board.php?act=do_delete_topic&topic_id='.$topic_id;

    
//////////Подтверждаем заявку
    
$otvet=connect($link, $cookie);
    
//////////

    
sleep(1);

    if (
substr_count($otvet, "blank.php")>=1){
    
$i=$qwe;
    print 
"####### Ban\n";
    
sleep(3);
    }

    }
    
//////////получаем список групп
    
$link = "http://vkontakte.ru/board.php?act=topics&id=".$group_id;
    
$res=connect($link, $cookie);
    
//////////
    
$c=substr_count($res, 'topicTitle'); ###подсчитываем количество тем
    
}

    print 
"\n(c) Le][ 2009\n";

    
?>
Оба скрипта взяты из группы
(c) http://vkontakte.ru/club6968868

Последний раз редактировалось Dumi; 21.04.2009 в 17:18..
 
Ответить с цитированием