Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- header("Content-Type: text/html; charset=UTF-8");
- $uid = intval($_GET['id']);
- $name = json_decode(file_get_contents("http://api.vk.com/method/users.get?uid=$uid&fields=first_name_gen,last_name_gen,photo_100,sex,bdate,online,followers_count,screen_name,has_mobile,status"));
- $info = $name->response;
- $info = $info[0];
- echo "<html>
- <head>
- <title>Профиль {$info->first_name_gen} {$info->last_name_gen}</title>
- </head>
- <body>
- <div style=\"padding-top:100px\" align=\"center\">
- <div align=\"left\" style=\"text-align:left;width:400px;min-height:100px;padding:15px;border:3px solid #42aaff;border-radius:10px;\">
- <div style=\"float:right\">
- <img src=\"{$info->photo_100}\" width=\"100px\" alt=\"\" border=\"0\">
- </div>
- <strong>{$info->first_name} {$info->last_name} (" . ($info->online ? "В" : "Не в") . " сети)</strong>
- <hr align=\"left\" style=\"width:280px\">
- <p>
- <b>Статус:</b> " . ($info->status ? $info->status : "Отсутствует") . "
- </p>
- <p>
- <b>Дата рождения:</b> {$info->bdate}
- </p>
- <p>
- <b>Пол:</b> " . ($info->sex == 2 ? "Мужской" : ($info->sex == 1 ? "Женский" : "Не определён")) . "
- </p>
- <p>
- <b>Подписчиков:</b> {$info->followers_count}
- </p>
- <p>
- <b>Указан номер телефона:</b> " . ($info->has_mobile ? "Да" : "Нет") . "
- </p>
- <p>
- <b>Адрес страницы:</b> <a href=\"http://vk.com/{$info->screen_name}\" target=\"_blank\">http://vk.com/{$info->screen_name}</a>
- </p>
- </div>
- </div>
- </body>
- </html>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement