" . md5($app_id . $uid . $secret_key); if($hash == md5($app_id . $uid . $secret_key)) { $ok = "Welcome!!"; $_SESSION["login"] = $uid; $_SESSION["fio"] = $_GET["first_name"] . " " . $_GET["last_name"]; header("Refresh: 2; url=secret/secret.html"); } } ?> VK API

Авторизация

$error
_OUT; else if(isset($ok)) echo <<<_OUT
$ok
_OUT; ?>