Guest User

auth

a guest
Apr 24th, 2014
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. <?
  2. require "Auth_Vk.php";
  3.  
  4. $o= New Auth_Vk();
  5.  
  6. if(!$_GET['code']) {
  7.  
  8. $query = "client_id=".APP_ID."&scope=offline&redirect_uri=".REDIRECT_URI."&response+type=code";
  9.  
  10. $o->redirect(URL_AUTH."?".$query);
  11. }
  12. if($_GET['code']) {
  13. //echo $_GET['code'];
  14. $o->set_code($_GET['code']);
  15. }
  16. if($_GET['error']) {
  17. exit($_GET['error_description']);
  18. }
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment