<?php
$token = 'ЦЕНЗУРА';
curl('https://api.vk.com/method/account.setOnline?access_token='.$token.'&v=5.107');
$group = array('196154843','196079784');
$d[0] = 'Re';
$d[1] = 'ghdsf';
$d[2] = 'hgdffh';
$d = $d[rand(0, count($d)-1)];
$atch[0] = 'photo-110296726_457455314';
$atch[1] = 'photo-110296726_457455314';
$atch[2] = 'photo-110296726_457455314';
$atch = $atch[rand(0, count($atch)-1)];
for($i = 0; $i < count($group); $i++) {
$att =
curl('https://api.vk.com/method/wall.post?owner_id=-'.$group[$i].'&message='.urlencode($d).'&attachments='.$atch.'&access_token='.$token.'&v=5.107');
};
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;
}
?>
if from_id in admin:
if reply["from_id"] in admin: