<?php | |
/* | |
ВСЕ ТОПЧЕГ, ГРУППА VANS | SITE http://vkfix.ml | Слил Martin | |
*/ | |
$access_token = ''; // | |
// ДО ДР | |
$месяц = '9'; | |
$день = '14'; | |
$год = '2016'; | |
$birthday = ceil((mktime(0,0,0, $месяц, $день, $год) - time())/86400); | |
// Лайки | |
$getLikes = curl('https://api.vk.com/method/photos.get?album_id=profile&rev=1&extended=1&count=1&access_token='.$access_token.'&v=3.0'); | |
$getLikesJson = json_decode($getLikes,1); | |
$likes = $getLikesJson['response']['0']['likes']['count']; | |
#Рандом сердечьки | |
$smiles = array("❤", "💚", "💜","💟","💛","💙" ); | |
$rand = rand(0,count($smiles) - 1); | |
$hurt = $smiles[$rand]; | |
#Рандом сердечьки | |
$smiles = array("✉", "📩 ", "📨","📨","📩","✉" ); | |
$rand = rand(0,count($smiles) - 1); | |
$hurt1 = $smiles[$rand]; | |
// Цифры смайлами,не трогать!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
$smi3 = " > На аватаре: $likes$hurt || До моего ДР осталось $birthday дней🎉 < "; | |
$smi = array('1', '2', '3', '4', '5', '6', '7', '8', '9', '0'); | |
$smi2 = array('1⃣', '2⃣', '3⃣', '4⃣', '5⃣', '6⃣', '7⃣', '8⃣', '9⃣', '🅾'); // Часы и дата | |
// Вывод статуса | |
$status = ''.str_replace($smi, $smi2, $smi3).' '; | |
$statusSet = curl('https://api.vk.com/method/status.set?text='.urlencode($status).'&access_token='.$access_token); | |
function curl( $url ){ | |
$ch = curl_init( $url ); | |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); | |
curl_setopt( $ch, CURLOPT_SSL_VERIFYHOST, false ); | |
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); | |
$response = curl_exec( $ch ); | |
curl_close( $ch ); | |
return $response; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment