Guest User

auth_vk

a guest
Apr 24th, 2014
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. <?
  2. class Auth_VK {
  3.  
  4. private $code;
  5. private $token;
  6. private $uid;
  7.  
  8. public_function__construct() {
  9. require "config.php";
  10. }
  11. public_function set_code($code) {
  12. $this->code =$code;
  13. }
  14. public_function set_token($token) {
  15. $this->token =$token;
  16. }
  17. public_function set_uid($id) {
  18. $this-uid =$id;
  19. }
  20.  
  21. public_function redirect($url) {
  22. header("Location".$url);
  23. exir();
  24. }
  25. }
  26. ?>
Advertisement
Add Comment
Please, Sign In to add comment