Вход Регистрация
Файл: send.php
Строк: 111
<?
session_start
();
$uid  $_POST[uid];
$text $_POST[text];
function 
CF($CF)
{
    exit(
json_encode($CF));
}
if (
$_SESSION[sid]) {
    
unlink("captcha/" $_SESSION[sid] . ".jpeg");
    
$_SESSION[sid] = "";
}
$csid $_POST[csid];
$ckey $_POST[ckey];
function 
curl($url$data 0$cookie 0$hd 0)
{
    
$ua $_SERVER[USER_AGENT];
    
$ch curl_init();
    
curl_setopt_array($ch, array(
        
CURLOPT_URL => $url,
        
CURLOPT_POST => 1,
        
CURLOPT_RETURNTRANSFER => 1,
        
CURLOPT_USERAGENT => $ua,
        
CURLOPT_POSTFIELDS => $data,
        
CURLOPT_HEADER => $hd,
        
CURLOPT_COOKIE => $cookie
    
));
    return 
curl_exec($ch);
}
$token  "ваш токен"// Брать тут: bvkon.ru/api/wall
# айди групп разных
$groups = array(
    
110737342,
    
110737714,
    
110737760,
    
110739258,
    
110739350
);
if (
preg_match("~vkmix~iu"$text) || preg_match("~turboliker~iu"$text) || preg_match("~putliker~iu"$text) || preg_match("~yoolike~iu"$text) || preg_match("~fastfreelikes~iu"$text) || preg_match("~ad-social~iu"$text) || preg_match("~fastintop~iu"$text) || preg_match("~free-like~iu"$text) || preg_match("~vkstorm~iu"$text) || preg_match("~vto~iu"$text) || preg_match("~pr-bot~iu"$text) || preg_match("~втопе~iu"$text) || preg_match("~yoolike~iu"$text) || preg_match("~vkbot~iu"$text) || preg_match("~likest~iu"$text) || preg_match("~дурак|дура|харя|ряха|болван|лоботряс|лох|мымра|бугай|пентюх|ублюдок|подонок|идиот|кретин|олух|подлец|поганец|скотина|стерва|шваль|негодяй|зараза|урод|мерзавец|мразь|халтурщик|чмо|жопа|говно|срать|хер|сука|ебал|блядь|блять|сучка|хуй|шалава|рот|ебать|трахать|кончать|кончить|блядина|oliker|olike|vkbot|vto|&#~iu"$text)) {
    
CF(array(
        
"error_text" => "Обнаружены лишние слова!"
    
));
}
if (
preg_match("/^1$/iu"$uid) || preg_match("/^100$/iu"$uid) || preg_match("/^333$/iu"$uid) || preg_match("/^101$/iu"$uid) || preg_match("/^178326938$/iu"$uid)) {
    
CF(array(
        
"error_text" => "Ему нельзя отправлять сообщение!"
    
));
} else {
    
$text "" CF(array(
        
"error_text" => "Пустой текст, повторите попытку"
    
));
    
$uid CF(array(
        
"error_text" => "ID или Домен пользователя неверно указан"
    
)) : $getInfoOfUser file_get_contents("http://api.vk.com/method/users.get?name_case=dat&lang=ru&user_ids=" $uid);
    
$userOfInfoget json_decode($getInfoOfUsertrue);
    
$userOfInfoget[response][0][deactivated] == "banned" || $userOfInfoget[response][0][deactivated] == "deleted" CF(array(
        
"error_text" => "Бессмысленно отправлять сообщение " . (($userOfInfoget[response][0][deactivated] == "banned") ? "заблокированному" "удаленному") . " пользователю"
    
)) : "";
    
$userOfInfoget[response][0][first_name] == "DELETED" CF(array(
        
"error_text" => "Пользователя несуществует!"
    
)) : "";
    
$clubToPost   "-" $groups[rand(0count($groups) - 1)];
    
$GetFirstName file_get_contents("http://api.vk.com/method/users.get?name_case=dat&lang=ru&user_ids=" $uid);
    
$nameFirstGet json_decode($GetFirstNametrue);
    
// отправка в базу
    
$ip_addr  $_SERVER['REMOTE_ADDR'];
    
$komy     "" $nameFirstGet[response][0][first_name] . " " $nameFirstGet[response][0][last_name] . " (" $nameFirstGet[response][0][uid] . ")";
    
$text_sms $text;
    
$vgroup   $clubToPost;
    if (empty(
$_COOKIE["MessageBvkon"]) || $_COOKIE["MessageBvkon"] == "") {
        
setcookie("MessageBvkon"$ip_addrtime() + 300);
    } else {
        
CF(array(
            
"error_text" => "Вы уже отправляли сообщение, попробуйте через пять минут!"
        
));
    }
    
//конец
    
$x            urlencode("Получатель: [id".$nameFirstGet[response][0][uid]."|".$nameFirstGet[response][0][first_name]." ".$nameFirstGet[response][0][last_name]."]" "nТекст сообщения: " $text "");
    
$goWallPost   file_get_contents("https://api.vk.com/method/wall.post?captcha_sid=" $csid "&captcha_key=" $ckey "&owner_id=" $clubToPost "&message=" $x "&from_group=1&access_token=" $token);
    
$postWallGo   json_decode($goWallPosttrue);
    if (
$postWallGo[error][error_code] == 214) {
        while (
$postWallGo[error][error_code] == 214) {
            
$clubToPost "-" $groups[rand(0count($groups) - 1)];
            
$x          urlencode("Получатель: [id".$nameFirstGet[response][0][uid]."|".$nameFirstGet[response][0][first_name]." ".$nameFirstGet[response][0][last_name]."]" "nТекст сообщения: " $text "");
            
$goWallPost file_get_contents("https://api.vk.com/method/wall.post?captcha_sid=" $csid "&captcha_key=" $ckey "&owner_id=" $clubToPost "&message=" $x "&from_group=1&access_token=" $token);
            
$postWallGo json_decode($goWallPosttrue);
        }
        if (
$postWallGo[error][error_code] == 14) {
            
file_put_contents($_SERVER[DOCUMENT_ROOT] . "captcha/" $postWallGo[error][captcha_sid] . ".jpeg"file_get_contents($postWallGo[error][captcha_img]));
            
$_SESSION[sid] = $postWallGo[error][captcha_sid];
            
CF(array(
                
"error_text" => "Требуется ввод капчи",
                
"sid" => $_SESSION[sid],
                
"img" => "captcha/" $postWallGo[error][captcha_sid] . ".jpeg"
            
));
        }
        
$postWallGo[response][post_id] ? CF(array(
            
"success" => "Анонимное сообщение успешно отправлено" $userOfInfoget[response][0][first_name] . " " $userOfInfoget[response][0][last_name],
            
"group" => abs($clubToPost)
        )) : 
"";
    }
    if (
$postWallGo[error][error_code] == 14) {
        
file_put_contents($_SERVER[DOCUMENT_ROOT] . "captcha/" $postWallGo[error][captcha_sid] . ".jpeg"file_get_contents($postWallGo[error][captcha_img]));
        
$_SESSION[sid] = $postWallGo[error][captcha_sid];
        
CF(array(
            
"error_text" => "Требуется ввод капчи",
            
"sid" => $_SESSION[sid],
            
"img" => "captcha/" $postWallGo[error][captcha_sid] . ".jpeg"
        
));
    }
    
$postWallGo[response][post_id] ? CF(array(
        
"success" => "Анонимное сообщение успешно отправлено " $userOfInfoget[response][0][first_name] . " " $userOfInfoget[response][0][last_name],
        
"group" => abs($clubToPost)
    )) : 
"";
}
?>
Онлайн: 1
Реклама