Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- require "Auth_Vk.php";
- $o= New Auth_Vk();
- if(!$_GET['code']) {
- $query = "client_id=".APP_ID."&scope=offline&redirect_uri=".REDIRECT_URI."&response+type=code";
- $o->redirect(URL_AUTH."?".$query);
- }
- if($_GET['code']) {
- //echo $_GET['code'];
- $o->set_code($_GET['code']);
- }
- if($_GET['error']) {
- exit($_GET['error_description']);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment