oauth-proxy.php 300 B

1234567891011
  1. <?php
  2. if (empty($_GET['service']))
  3. return;
  4. $endpoint = (is_ssl()?'https':'http').'//duoshuo.com/login-callback/' . strtolower(trim($_GET['service'])) . '/';
  5. unset($_GET['service']);
  6. $callbackUrl = $endpoint . '?' . http_build_query($_GET, null, '&');
  7. header('Location: ' . $callbackUrl, true);