index.php 345 B

12345678910111213141516
  1. <?php
  2. //判断是否已经登录
  3. if(!empty($_COOKIE['key'])){
  4. header("Location:".config('ds_config.h5_site_url'));
  5. exit;
  6. }
  7. include_once('config.php' );
  8. include_once('saetv2.ex.class.php' );
  9. $o = new SaeTOAuthV2( WB_AKEY , WB_SKEY );
  10. $code_url = $o->getAuthorizeURL( WB_CALLBACK_URL );
  11. @header("location:$code_url");
  12. exit;
  13. ?>