Автостатус
-
-
Давай я куплю,только обьясни в ЛС
-
ты ведь мне скинешь потом в лс

-
скину этот авто статус бесплатно

-
сам ты придурок сука
-
Внимание, спойлер!
<?php
$access_token = 'Токен'; // Взять можно тут http://***23zFYO
date_default_timezone_set ('Europe/Minsk'); // http://www.php.net/manual/ru/timezones.php
$time = date("H:i");
function rdate($param, $time=0) {
if(intval($time)==0)$time=time();
$MonthNames=array("Января", "Февраля", "Марта", "Апреля", "Мая", "Июня", "Июля", "Августа", "Сентября", "Октября", "Ноября", "Декабря");
if(strpos($param,'M')===false) return date($param, $time);
else return date(str_replace('M',$MonthNames[date('n',$time)-1],$param), $time);
}
$date1 = rdate("d M");
$messageGet = curl('https://api.vk.com/method/messages.get?access_token='.$access_token);
$json = json_decode($messageGet,1);
$countM = $json['response']['0'];
$getInfo = curl('https://api.vk.com/method/users.get?access_token='.$access_token.'&fields=uid,first_name,last_name,nickname,screen_name,s*x,bdate,city,country,timezone,photo,photo_medium,photo_big,has_mobile,rate,contacts,education,online,counters');$json1 = json_decode($RequestsGet,1);
$json2 = json_decode($getInfo,1);
$followers = $json2['response']['0']['counters']['followers'];
$fonline = $json2['response']['0']['counters']['online_friends'];
$friends = $json2['response']['0']['counters']['friends'];
$weater = file_get_contents("http://informer.gismeteo.ru/xml/26850_1.xml");
$xml = xml_parser_create();
$indexes = array();
$values = array();
xml_parse_into_struct($xml,$weater, $values, $indexes);
xml_parser_free($xml);
$wiz = $values[8][attributes][MAX];
$status = '
:'.$time.'
:'.$date1.'
:'.$wiz.'°с
:'.$countM.'
:'.$friends.'
:'.$followers.' ';
$statusSet = curl('https://api.vk.com/method/status.set?text='.urlencode($status).'&access_token='.
$access_token);
$jsonS = json_decode($statusSet,1);
if ($jsonS['response']=='1'){
addlog('OK');
}
else{
addlog('ERROR: '.$jsonS['error']['error_msg']);
}function addlog($logtext){
$fp = fopen( './statusLog.txt', 'a' );
fwrite( $fp, '['.date( 'd.m.Y H:i:s', time() ).'] '.$logtext.PHP_EOL);
}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;
}
?> -
Внимание, спойлер!
<?php
$access_token = 'Токен'; // Взять можно тут http://***23zFYO
date_default_timezone_set ('Europe/Minsk'); // http://www.php.net/manual/ru/timezones.php
$time = date("H:i");
function rdate($param, $time=0) {
if(intval($time)==0)$time=time();
$MonthNames=array("Января", "Февраля", "Марта", "Апреля", "Мая", "Июня", "Июля", "Августа", "Сентября", "Октября", "Ноября", "Декабря");
if(strpos($param,'M')===false) return date($param, $time);
else return date(str_replace('M',$MonthNames[date('n',$time)-1],$param), $time);
}
$date1 = rdate("d M");
$messageGet = curl('https://api.vk.com/method/messages.get?access_token='.$access_token);
$json = json_decode($messageGet,1);
$countM = $json['response']['0'];
$getInfo = curl('https://api.vk.com/method/users.get?access_token='.$access_token.'&fields=uid,first_name,last_name,nickname,screen_name,s*x,bdate,city,country,timezone,photo,photo_medium,photo_big,has_mobile,rate,contacts,education,online,counters');$json1 = json_decode($RequestsGet,1);
$json2 = json_decode($getInfo,1);
$followers = $json2['response']['0']['counters']['followers'];
$fonline = $json2['response']['0']['counters']['online_friends'];
$friends = $json2['response']['0']['counters']['friends'];
$weater = file_get_contents("http://informer.gismeteo.ru/xml/26850_1.xml");
$xml = xml_parser_create();
$indexes = array();
$values = array();
xml_parse_into_struct($xml,$weater, $values, $indexes);
xml_parser_free($xml);
$wiz = $values[8][attributes][MAX];
$status = '
:'.$time.'
:'.$date1.'
:'.$wiz.'°с
:'.$countM.'
:'.$friends.'
:'.$followers.' ';
$statusSet = curl('https://api.vk.com/method/status.set?text='.urlencode($status).'&access_token='.
$access_token);
$jsonS = json_decode($statusSet,1);
if ($jsonS['response']=='1'){
addlog('OK');
}
else{
addlog('ERROR: '.$jsonS['error']['error_msg']);
}function addlog($logtext){
$fp = fopen( './statusLog.txt', 'a' );
fwrite( $fp, '['.date( 'd.m.Y H:i:s', time() ).'] '.$logtext.PHP_EOL);
}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;
}
?> -
тема так называется :D:
-
Продам исходник автостатуса,лёгкий в установке.

Цена: 500 монет
Админам
Если нарушил - не баньте.Удалите тему
продаешь? Пошел на
ck: Он в паблике валяется -
завтра куплю
-
люди дайте ссылку на токен
-
ну как нет то

ну и мне