<?php
require_once './element_options/element_options.php';
if ( ! empty($user['lost_id']))
{
header('Location: /');
exit;
}
if ( ! empty($_GET['code']))
{
header("Location: /start?code={$_GET['code']}");
exit;
}
else
{
header("Location: http://oauth.vk.com/authorize?client_id=".APP_VK_ID."&redirect_uri=".APP_VK_REDIRECT."&response_type=code&display=mobile");
exit;
}