0) { $BBC = new BasicBlobCrypter(); $crypter = new BasicBlobCrypter(srand($BBC->MASTER_KEY_MIN_LEN)); $clientState = new OAuthCallbackState($crypter, $cs); $url = $clientState->getRealCallbackUrl(); $callbackUrl = "http://" . $_SERVER['HTTP_HOST'] . "/gadgets/oauthcallback"; if ($url = $callbackUrl) { unset($_GET['cs']); header('Location: '.$callbackUrl.'?'.http_build_query($_GET)); exit; } } else if (strlen($token) > 0 && strlen($cs) == 0 ) { $this->setCacheTime(3600); echo "" . "" . "
" . "