Спойлер (Отобразить)
PHP:
скопировать код в буфер обмена
скопировать код в буфер обмена
- <?PHP
- if($_POST["uid"] == "") {
- echo '<div class="alert alert-warning"><center><h4>Заполните форму!</h4></center></div>';
- }else{
- $groups_getMembers = api("groups.getMembers", "group_id=" . $uid);
- $count = $groups_getMembers ["response"] ["count"];
- $groups_getById = api("groups.getById", "group_id=" . $uid . "&fields=photo_50,status,verified");
- $name = $groups_getById ["response"] ["0"] ["name"];
- $screen_name = $groups_getById ["response"] ["0"] ["screen_name"];
- $photo_50 = $groups_getById ["response"] ["0"] ["photo_50"];
- $status = $groups_getById ["response"] ["0"] ["status"];
- $type = $groups_getById ["response"] ["0"] ["type"];
- $verified = $groups_getById ["response"] ["0"] ["verified"];
- if($cs == "http://vk.com") {
- $img = "https://".$vk_com."";
- } else {
- }
- if($verified == "1"){
- $ver = "Присутствует";
- }
- else{
- $ver = "Отсутствует";
- }
- if($count){
- echo '<div class="alert alert-info">
- <img style="float:right;" src="'.$img.'">
- '.$name.'<br><br>
- Верификация: '.$ver.'<br>
- Тип группы: '.$type.'<br>
- Статус: '.$status.'<br>
- Домен: vk.com/'.$screen_name.'</div>';
- }else{
- echo '<div class="alert alert-warning"><center><h4>Ошибка</h4></center></div>';
- }
- }
- }
- function api($method, $parameter) {
- $return = curl("https://api.vk.com/method/" . $method . "?" . $parameter);
- }
- function curl($url, $post = null) {
- curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417
- Firefox/3.0.3');
- if ($post) {
- }
- return $response;
- }
- ?>