index.php 496 B

1234567891011121314
  1. <?php
  2. //判断是否已经登录
  3. if(session('slast_key'))
  4. {
  5. @header("Location:".HOME_SITE_URL);
  6. exit;
  7. }
  8. include_once(PLUGINS_PATH .DIRECTORY_SEPARATOR. 'login'.DIRECTORY_SEPARATOR. 'sina'.DIRECTORY_SEPARATOR.'config.php' );
  9. include_once(PLUGINS_PATH .DIRECTORY_SEPARATOR. 'login'.DIRECTORY_SEPARATOR. 'sina'.DIRECTORY_SEPARATOR.'saetv2.ex.class.php' );
  10. $o = new SaeTOAuthV2(WB_AKEY,WB_SKEY);
  11. $code_url = $o->getAuthorizeURL(WB_CALLBACK_URL);
  12. @header("location:$code_url");
  13. exit;
  14. ?>