function oAuthRedirect() { $this->Settings["token_secret"] = ""; $admin = new BigTreeAdmin(); $r = $this->callAPI("http://www.flickr.com/services/oauth/request_token", "GET", array("oauth_callback" => $this->ReturnURL)); parse_str($r); if ($oauth_callback_confirmed) { $this->Settings["token"] = $oauth_token; $this->Settings["token_secret"] = $oauth_token_secret; header("Location: http://www.flickr.com/services/oauth/authorize?perms=delete&oauth_token=" . $oauth_token); die; } else { $admin->growl($oauth_problem, "Flickr API", "error"); BigTree::redirect(ADMIN_ROOT . "developer/services/flickr/"); } }